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

標題: 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

1.09 MB, 下載次數: 16, 下載積分: 黑幣 -5

你大可一試的ADC芯片


作者: wyh5360    時間: 2018-1-11 11:50
謝謝分享謝謝分享aaaaaaaaaa
作者: wyh5360    時間: 2018-1-11 11:51
謝謝分享謝謝分享樓主




歡迎光臨 (http://m.zg4o1577.cn/bbs/) Powered by Discuz! X3.1
主站蜘蛛池模板: 98久久 | 在线一级片 | a级黄毛片 | 欧美成人综合 | www.桃色av嫩草.com | 97cao| 国产日本在线 | 欧美成人免费视频 | 国产精品美女在线 | 伊人av在线 | 国产一级在线播放 | 免费黄色小说网站 | 天堂8中文 | 国产精品自在线 | 天天插天天 | 免费一级黄色 | 一区二区三区网站 | 免费一区二区视频 | 黄色一级大片在线免费看产 | 成人精品三级av在线看 | 欧美一区视频 | 日韩精品极品视频在线观看免费 | 国产精品视频一区二区三区 | 99精品视频在线观看 | 日韩久久久久久久 | 国产午夜精品一区二区三区四区 | 黄色大片免费在线观看 | 一级毛片在线看 | 日韩在线不卡视频 | 欧美一级在线观看 | 999成人网| 亚洲在线中文字幕 | 欧美黄色一级大片 | 成人精品免费视频 | 久久精选视频 | 欧美视频一区二区 | 成人午夜激情 | 欧美片网站yy | 国产永久在线 | 亚洲免费黄色 | 少妇免费视频 |