| Electronic Components Datasheet Search |
|
UPD17072 Datasheet(PDF) 111 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17072 Datasheet(HTML) 111 Page - NEC |
|
111 / 226 page ![]() µPD17072,17073 111 (3) Program example of binary search START: BANK1 INITFLG NOT ADCCH1, ADCCH0 ; Selects AD0 pin INITFLG P1APLD2 ; Sets pull-down resistor of AD0 pin OFF INITFLG NOT ADCRFSEL3, ADCRFSEL2, ADCRFSEL1, ADRFSEL0 ; Sets compare voltage to 7.5/16 VDD SET1 ADCSTRT ; A/D converter starts operating. NOP ; 2 wait NOP ; SKF1 ADCCMP ; Detects ADCCMP SET1 ADCRFSEL3 ; If 0, adds 7.5/16 VDD and CLR1 ADCRFSEL2 ; subtracts 3.5/16 VDD SET1 ADCSTRT ; A/D converter starts operating. NOP ; 2 wait NOP ; SKF1 ADCCMP ; Detects ADCCMP SET1 ADCRFSEL2 ; If 0, adds 3.5/16 VDD and CLR1 ADCRFSEL1 ; subtracts 1.5/16 VDD SET1 ADCSTRT ; A/D converter starts operating. NOP ; 2 wait NOP ; SKF1 ADCCMP ; Detects ADCCMP SET1 ADCRFSEL1 ; If 0, adds 1.5/16 VDD and CLR1 ADCRFSEL0 ; subtracts 0.5/16 VDD SET1 ADCSTRT ; A/D converter starts operating. NOP ; 2 wait NOP ; SKF1 ADCCMP ; Detects ADCCMP SET1 ADCRFSEL0 ; If 0, adds 0.5/16 VDD END: 13.8 Status at Reset 13.8.1 At power-ON reset The P1A2/AD0 and P1A3/AD1 pins are set in the general-purpose input port mode, and internally pulled down. 13.8.2 On execution of clock stop instruction The P1A2/AD0 and P1A3/AD1 pins are set in the general-purpose input port mode. The previous status of the pull-down resistor is retained. 13.8.3 At CE reset The P1A2/AD0 and P1A3/AD1 pins are set in the general-purpose input port mode. The previous status of the pull-down resistor is retained. |
|
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 |