| Electronic Components Datasheet Search |
|
HT66F20 Datasheet(PDF) 181 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F20 Datasheet(HTML) 181 Page - Holtek Semiconductor Inc |
|
181 / 298 page ![]() Rev. 1.90 180 �e���a�� 18� �01� Rev. 1.90 181 �e���a�� 18� �01� HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Enhanced A/D Flash Type 8-Bit MCU with EEPROM HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Enhanced A/D Flash Type 8-Bit MCU with EEPROM Example: using the interrupt method to detect the end of conversion clr ADE ; disable ADC interrupt mov a,03H movADCR1,a ;selectfSYS/8asA/Dclockandswitchoff1.25V ClrADOFF mova,0Fh;setupACERLandACERHtoconfigurepinsAN0~AN3 movACERL,a mov a,00h movACERH,00h ;ACERHisonlyforHT66F60 mov a,00h movADCR0,a ;enableandconnectAN0channeltoA/Dconverter Start_conversion: clrSTART;highpulseonSTARTbittoinitiateconversion setSTART;resetA/D clrSTART;startA/D clrADF;clearADCinterruptrequestflag set ADE ; enable ADC interrupt setEMI;enableglobalinterrupt : : ; ADC interrupt service routine ADC_ISR: movacc_stack,a;saveACCtouserdefinedmemory mova,STATUS movstatus_stack,a ;saveSTATUStouserdefinedmemory : : mova,ADRL ;readlowbyteconversionresultvalue movadrl_buffer,a ;saveresulttouserdefinedregister mova,ADRH ;readhighbyteconversionresultvalue movadrh_buffer,a ;saveresulttouserdefinedregister : : EXIT_INT_ISR: mova,status_stack movSTATUS,a ;restoreSTATUSfromuserdefinedmemory mova,acc_stack;restoreACCfromuserdefinedmemory reti |
|
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 |