| Electronic Components Datasheet Search |
|
HT46R002 Datasheet(PDF) 56 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R002 Datasheet(HTML) 56 Page - Holtek Semiconductor Inc |
|
56 / 83 page ![]() Rev. 1.21 56 April 11, 2017 Rev. 1.21 57 April 11, 2017 HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU FF EH ( ) A/ D C onv er si on Re su lt FFFH FF DH 03H 02H 01H 0. 5 LS B 0 12 3 409 3 4094 4095 409 6 A nal og In pu t Vo lt age 1. 5 LS B V DD 409 6 Ideal A/D Transfer Function A/D Programming Example ThefollowingtwoprogrammingexamplesillustratehowtosetandimplementanA/Dconversion. Inthefirstexample,themethodofpollingtheEOCBbitintheADCRregisterisusedtodetect whentheconversioncycleiscomplete,whereasinthesecondexample,theA/Dinterruptisusedto determinewhentheconversioniscomplete. Example: using an EOCB polling method to detect the end of conversion clr ADE ; disable ADC interrupt mov a,00000001B mov ACSR,a ; select fSYS/8 as A/D clock and ADONB=0 mov a,00000100B ; set ADCR register to configure Port as A/D inputs mov ADCR,a : : Start_conversion: clr START set START ; reset A/D clr START ; start A/D Polling_EOC: sz EOCB ; poll the ADCR register EOCB bit to detect end of A/D conversion 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 |
|
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 |