| Electronic Components Datasheet Search |
|
HT66F4530 Datasheet(PDF) 130 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F4530 Datasheet(HTML) 130 Page - Holtek Semiconductor Inc |
|
130 / 224 page ![]() Rev. 1.00 130 De�e��e� �1� �01� Rev. 1.00 131 De�e��e� �1� �01� HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers A/D Conversion Programming Examples ThefollowingtwoprogrammingexamplesillustratehowtosetupandimplementanA/Dconversion. Inthefirstexample,themethodofpollingtheADBZbitintheSADC0registerisusedtodetect whentheconversioncycleiscomplete,whereasinthesecondexample,theA/Dinterruptisusedto determinewhentheconversioniscomplete. Example: using an ADBZ polling method to detect the end of conversion clr ADE ; disable ADC interrupt mov a,03H mov SADC1,a;selectfSYS/8asA/Dclock set ADCEN mov a,10h;setupPAS1registertoconfigurepinAN0 mov PAS1,a mov a,20h mov SADC0,a;enableandconnectAN0channeltoA/Dconverter : start_conversion: clr START;highpulseonstartbittoinitiateconversion set START;resetA/D clr START ;startA/D polling_EOC: sz ADBZ ;polltheSADC0registerADBZbittodetectendofA/D conversion jmp polling_EOC ;continuepolling mov a,SADOL;readlowbyteconversionresultvalue mov SADOL_buffer,a;saveresulttouserdefinedregister mov a,SADOH;readhighbyteconversionresultvalue mov SADOH_buffer,a;saveresulttouserdefinedregister : : jmp start_conversion;startnextA/D conversion |
|
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 |