久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2978|回復(fù): 2
打印 上一主題 下一主題
收起左側(cè)

STM32英文版ADC編程思路

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:274548 發(fā)表于 2018-1-10 21:51 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
STM32平臺完成一次ADC芯片的編程的過程對于一個菜鳥來說實在可怕
Power-up;

Delayto allow power supplies to settle and power-up reset to complete (minimum of 50µs);

Configurethe SPI interface of the stm32 to SPI mode 1 (CPOL = 0, CPHA = 1);

Ifthe CS pin is not tied low permanently, configure the stm32 GPIO connected toCS as an

output;

Configurethe stm32 GPIO connected to the DRDY pin as a falling edge triggered interrupt

input;

SetCS to the device low;

Delayfor a minimum of td(CSSC);

Sendthe RESET command (06h) to make sure the device is properly reset afterpower-up;

Delayfor a minimum of 50 µs + 32 · t(CLK);

Writethe respective register configuration with the WREG command (43h, 08h, 04h,10h, and 00h);

Asan optional sanity check, read back all configuration registers with the RREGcommand (23h);

Sendthe START/SYNC command (08h) to start converting in continuous conversion mode;

Delayfor a minimum of td(SCCS);

ClearCS to high (resets the serial interface);

Loop

{

Waitfor DRDY to transition low;

TakeCS low;

Delayfor a minimum of td(CSSC);

Send24 SCLK rising edges to read out conversion data on DOUT/DRDY;

Delayfor a minimum of td(SCCS);

ClearCS to high;

}

TakeCS low;

Delayfor a minimum of td(CSSC);

Sendthe POWERDOWN command (02h) to stop conversions and put the device in power-downmode;

Delayfor a minimum of td(SCCS);

ClearCS to high;
附錄一個菜鳥初次編程的ADC

ads1242.pdf

1.09 MB, 下載次數(shù): 16, 下載積分: 黑幣 -5

你大可一試的ADC芯片

評分

參與人數(shù) 2黑幣 +55 收起 理由
DX3906 + 5 很給力!
admin + 50 共享資料的黑幣獎勵!

查看全部評分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

沙發(fā)
ID:274730 發(fā)表于 2018-1-11 11:50 | 只看該作者
謝謝分享謝謝分享aaaaaaaaaa
回復(fù)

使用道具 舉報

板凳
ID:274730 發(fā)表于 2018-1-11 11:51 | 只看該作者
謝謝分享謝謝分享樓主
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 国产成人tv | 一级片在线观看视频 | 成人羞羞网站 | 午夜精品福利视频 | 国产美女久久 | 国产午夜视频 | 久久久www成人免费精品 | 黄色成人在线 | 国产成人免费在线观看 | 伊人干综合 | 天天操天天干天天操 | 噜噜噜在线| 精品少妇 | 青青av | 精品欧美一区二区精品久久 | 天天爽天天操 | 国产一级免费 | 午夜在线影院 | 免费91| 黄色在线免费观看视频 | 久久不雅视频 | 自拍偷拍欧美 | 久久靖品 | 在线视频h | 一级片免费在线观看 | 日韩久久久久 | 日韩免费高清 | 欧美国产精品一区二区 | 国产精品一级 | 亚洲精品福利视频 | 欧美日韩在线一区二区 | 91在线一区二区 | 精品黑人一区二区三区国语馆 | a级片在线观看 | 国产激情一区二区三区 | 国产一区二区三区在线 | 成人在线网址 | a级片免费在线观看 | 国产三级午夜理伦三级 | 日韩不卡一区 | 日韩在线免费观看视频 |