| 数据搜索系统,热门电子元器件搜索 |
|
AN1827 数据表(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1827 数据表(HTML) 8 Page - STMicroelectronics |
|
8 / 11 page ![]() 8/11 IMPLEMENTATION OF SIGMA-DELTA ADC WITH ST7FLITE05/09 ld ATRH,a ld a,#$70 ld ATRL,a ld a,#%00010010 ld ATCSR,a rim ;********************************************************************** ;Main loop of the program ;********************************************************************** IDLE: btjf FLAGS0,#Nw_adc,Idle ; waiting for the conversion result bres FLAGS0,#Nw_adc ; new result ; sending the conversion result ; through RS ld a,#$FF ; frame format: call Send_rs ;0FFh,0FFh,Rez_H,Rez_L ld a,#$FF call Send_rs ld a,Rez_h call Send_rs ld a,Rez_l call Send_rs jra IDLE ;********************************************************************** ;Interrupts ;********************************************************************** ; delta/sigma conversion ; sampling of 1 bit with period of 50us ; conversion result- 10 bit word, received every (1024*50us)=51,2ms ;********************************************************************** timoverfl_rt: bres ATCSR,#2 ; cancelling of the interrupt re- ; quest ld a,#00000100 ; adding the amplifier into the A/D ; processing ld ADCCAMP,a ld a,#%01100001 ; voltage measurement at AIN1 ld ADCCSR,a loop_adc: btjf ADCCSR,#7,loop_adc ld a,ADCDR cp a,#$37 ; comparison U_ain1 z 037h jrc set_Dlt bres PBDR,#Dlt_out ; U_ain1>037h inc Adc_l ; increase of the conversion result |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |