| Electronic Components Datasheet Search |
|
UPD17072 Datasheet(PDF) 108 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17072 Datasheet(HTML) 108 Page - NEC |
|
108 / 226 page ![]() µPD17072,17073 108 13.7 Using A/D Converter 13.7.1 Comparing one reference voltage The following shows a program example. Example To compare voltage input to AD0 pin, VADCIN against reference voltage VREF (8.5/16 VDD). If VADCIN >VREF, execution branches to AAA; if VADCIN < VREF, execution branches to BBB. BANK1 SET1 ADCON ; A/D converter ON INITFLG NOT ADCCH1, ADCCH0 ; P1A2/AD0 pin used as A/D converter pin INITFLG ADCRFSEL3, NOT ADCRFSEL2, NOT ADCRFSEL1, NOT ADCRFSEL0 ; Sets compare voltage VREF to 8.5/16 × VDD SET1 ADCSTRT ; A/D operation starts NOP ; Comparison in progress NOP ; Comparison in progress SKT1 ADCCMP ; Detects ADCCMP flag and, BR AAA ; Branches to AAA if False (0) BR BBB ; Branches to BBB if True (1) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |