Zakładka z wyszukiwarką danych komponentów |
|
HT98R068-1 Arkusz danych(PDF) 63 Page - Holtek Semiconductor Inc |
|
HT98R068-1 Arkusz danych(HTML) 63 Page - Holtek Semiconductor Inc |
63 / 116 page Rev. 1.10 6� �e���a�� 1�� �01� Rev. 1.10 6� �e���a�� 1�� �01� HT98R068-1 Two Way Radio 8-Bit MCU HT98R068-1 Two Way Radio 8-Bit MCU jmp polling_EOC ;continue polling mov a,ADRL ;read low byte conversion result value mov adrl_buffer,a ;save result to user defined register mov a,ADRH ;read high byte conversion result value mov adrh_buffer,a ;save result to user defined register : jmp start_conversion ;start next A/D conversion Note: To power off ADC module, it is necessary to set ADONB as “1”. Example: using the interrupt method to detect the end of conversion clr EADI ;disable ADC interrupt mov a,00000001B mov ACSR,a ;select fSYS/8 as A/D clock and ADONB=0 mov a,0Fh ;setup ANCSR to configure pins AN0~AN3 mov ANCSR0,a mov a, 00h mov ANCSR1,a ; mov a,00000000B ; mov ADCR, a ;select AN0 to be connected to the A/D ;converter : Start_conversion: clr START set START ;reset A/D clr START ;start A/D clr ADF ;clear ADC interrupt request flag set EADI ;enable ADC interrupt set EMI ;enable global interrupt : : ;ADC interrupt service routine ADC_: mov acc_stack,a ;save ACC to user defined memory mov a,STATUS mov status_stack,a ;save STATUS to user defined memory : : mov a,ADRL ;read low byte conversion result value mov adrl_buffer,a ;save result to user defined register mov a,ADRH ;read high byte conversion result value mov adrh_buffer,a ;save result to user defined register : : EXIT_ISR: mov a,status_stack mov STATUS,a ;restore STATUS from user defined memory mov a,acc_stack ;restore ACC from user defined memory clr ADF ;clear ADC interrupt flag reti Note: To power off ADC module, it is necessary to set ADONB as “1”. |
Podobny numer części - HT98R068-1_13 |
|
Podobny opis - HT98R068-1_13 |
|
|
Link URL |
Polityka prywatności |
ALLDATASHEET.PL |
Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Linki | Lista producentów 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 |