共2条
1/1 1 跳转至页
51,EPF10K 如何利用51单片机配置EPF10K?谢谢!怎么连线?
问
答 1:
晕!都玩到这一步了还问别人啊!
答 2:
串行加载,一共5条线,连接到单片机上
cfg,clk,data,done,status
网上有文档,可以找找
先cfg,然后串行写加载程序(clk,data)
判断status和done
答 3: 伪代码char conf_data[] = (100,0,255, ..... this is the data from the TTF .....);
set_low DCLK;
set_low nCONFIG;
set_high nCONFIG; /* reset FLEX device */
delay; /* wait according to app note */
/* before shifting data */
for i=0 to sizeof(conf_data) do
begin
temp = conf_data[i];
for j=0 to 7 do /* shift out data LSB first */
begin
data = temp[j];
set_high DCLK; /* provide data clock pulse */
delay; /* only necessary if clock */
/* high time not met otherwise */
set_low DCLK;
if nSTATUS == low then
/* optional error capture routine */
end
end
if conf_done == high then
/* configuration succesfull */
else
/* provide 10 further clocks, if CONF_DONE */
cfg,clk,data,done,status
网上有文档,可以找找
先cfg,然后串行写加载程序(clk,data)
判断status和done
答 3: 伪代码char conf_data[] = (100,0,255, ..... this is the data from the TTF .....);
set_low DCLK;
set_low nCONFIG;
set_high nCONFIG; /* reset FLEX device */
delay; /* wait according to app note */
/* before shifting data */
for i=0 to sizeof(conf_data) do
begin
temp = conf_data[i];
for j=0 to 7 do /* shift out data LSB first */
begin
data = temp[j];
set_high DCLK; /* provide data clock pulse */
delay; /* only necessary if clock */
/* high time not met otherwise */
set_low DCLK;
if nSTATUS == low then
/* optional error capture routine */
end
end
if conf_done == high then
/* configuration succesfull */
else
/* provide 10 further clocks, if CONF_DONE */
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
【有奖活动】震撼来袭!这场直播将直击工程师的心灵! | |
“我想要一部加热台”活动,不花钱赢取开发好工具!活动开始了哦 | |
【有奖活动】伙伴们:您的“需求”解决了吗? | |
抽奖了,抽奖了,金升阳医疗电源 |
打赏帖 | |
---|---|
【换取手持数字示波器】+与同事对定时器输出相位可调PWM移相全桥控制分享被打赏50分 | |
【换取手持数字示波器】+LP-MSPM0L1306开发板试用体验+串口被打赏40分 | |
CC-RL编译器相关问题求助被打赏10分 | |
【换取手持数字示波器】+与同事对ESP-12开发调试经验分享被打赏50分 | |
【换取手持数字示波器】+同事tek示波器调试spi解析被打赏50分 | |
【换取手持数字示波器】+2.6寸墨水屏调试经验被打赏50分 | |
换取手持数字示波器+个人开关电源的设计经验被打赏50分 | |
【换取手持数字示波器】+【APT32F173测评】+URAT被打赏20分 | |
【换取手持数字示波器】CH32X035的定时器以及外部中断体验被打赏50分 | |
【换取手持数字示波器】CH32X035搭建开发环境(RISC-V)被打赏50分 |