標題: STM32英文版ADC編程思路 [打印本頁]
作者: Cliff 時間: 2018-1-10 21:51
標題: STM32英文版ADC編程思路
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
2018-1-10 21:49 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
1.09 MB, 下載次數: 16, 下載積分: 黑幣 -5
你大可一試的ADC芯片
作者: wyh5360 時間: 2018-1-11 11:50
謝謝分享謝謝分享aaaaaaaaaa
作者: wyh5360 時間: 2018-1-11 11:51
謝謝分享謝謝分享樓主
歡迎光臨 (http://www.zg4o1577.cn/bbs/) |
Powered by Discuz! X3.1 |
主站蜘蛛池模板:
日韩在线小视频
|
在线一区二区三区
|
日韩欧美三级
|
国产免费一区二区
|
国产高清在线精品
|
久热9|
日韩精品av|
国产男女视频网站
|
精品国产免费一区二区三区五区
|
久久精品国产99国产
|
国产亚洲精品综合一区
|
91婷婷韩国欧美一区二区
|
国产a视频
|
久久久久久成人
|
毛片a级毛片免费播放100
|
国产视频久久久
|
精久久久久|
精品国产欧美一区二区三区不卡
|
人人澡人人射
|
91在线观看|
福利视频一区二区
|
国产传媒在线观看
|
中文字幕 视频一区
|
一区二区三区在线观看视频
|
国产精品亚洲片在线播放
|
爱爱无遮挡
|
情侣酒店偷拍一区二区在线播放
|
国产精品色
|
精品麻豆剧传媒av国产九九九
|
欧美成人一区二区
|
国产一区二区影院
|
国产视频在线观看一区二区三区
|
五月婷婷丁香
|
国产伦精品一区二区三区视频金莲
|
日韩三级电影在线看
|
日韩精品一区二区三区
|
国产精品国产a级
|
亚洲一区二区精品
|
97伊人|
日本精品免费在线观看
|
色综合九九|