| Electronic Components Datasheet Search |
|
HT66F005 Datasheet(PDF) 79 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F005 Datasheet(HTML) 79 Page - Holtek Semiconductor Inc |
|
79 / 109 page ![]() Rev. 1.30 �8 ���i� ��� �01� Rev. 1.30 �9 ���i� ��� �01� HT66F005/HT66F006 Cost-Effective A/D Flash MCU with EEPROM HT66F005/HT66F006 Cost-Effective A/D Flash MCU with EEPROM FF EH ( ) A/ D Co nv er si on Re su lt FFFH FF DH 03 H 02 H 01 H 0. 5 LS B 0 12 3 409 3 409 44 09 54 09 6 An al og I npu t V ol t age 1. 5 LS B V DD or V RE F 409 6 Ideal A/D Transfer Function A/D Programming Examples ThefollowingtwoprogrammingexamplesillustratehowtosetupandimplementanA/Dconversion. Inthefirstexample,themethodofpollingtheEOCBbitintheADCR0registerisusedtodetect whentheconversioncycleiscomplete,whereasinthesecondexample,theA/Dinterruptisusedto determinewhentheconversioniscomplete. Example 1: using an EOCB polling method to detect the end of conversion clr ADE ; disable ADC interrupt mov a,03H mov ADCR1,a ;selectfSYS/8asA/Dclockandswitchoff1.25V clr ADOFF mov a,0Fh ;setupACERtoconfigurepinsAN0~AN3 mov ACER,a mov a,00h mov ADCR0,a ;enableandconnectAN0channeltoA/Dconverter : start_conversion: clrSTART ;highpulseonstartbittoinitiateconversion setSTART;resetA/D clrSTART ;startA/D polling_EOC: szEOCB ;polltheADCR0registerEOCBbittodetectend ;ofA/Dconversion jmppolling_EOC ;continuepolling mova,ADRL;readlowbyteconversionresultvalue movADRL_buffer,a;saveresulttouserdefinedregister mova,ADRH;readhighbyteconversionresultvalue movADRH_buffer,a;saveresulttouserdefinedregister : : jmp start_conversion;startnexta/dconversion |
|
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 |