| Electronic Components Datasheet Search |
|
HT45F3230 Datasheet(PDF) 91 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F3230 Datasheet(HTML) 91 Page - Holtek Semiconductor Inc |
|
91 / 148 page ![]() Rev. 1.00 90 January 13, 2017 Rev. 1.00 91 January 13, 2017 HT45F3230 IR Sensing/Motor Driving Flash MCU HT45F3230 IR Sensing/Motor Driving Flash MCU A/D Conversion Function Asthedevicecontainsa12-bitA/Dconverter,itsfull-scaleconverteddigitisedvalueisequalto FFFH.Sincethefull-scaleanaloginputvalueisequaltotheactualA/Dconverterreferencevoltage, VREF,thisgivesasinglebitanaloginputvalueofVREFdividedby4096. 1LSB=VREF÷4096 TheA/DConverterinputvoltagevaluecanbecalculatedusingthefollowingequation: A/Dinputvoltage=A/Doutputdigitalvalue×(VREF÷4096) Thediagramshowstheidealtransferfunctionbetweentheanaloginputvalueandthedigitised outputvaluefortheA/Dconverter.Exceptforthedigitisedzerovalue,thesubsequentdigitised valueswillchangeatapoint0.5LSBbelowwheretheywouldchangewithouttheoffset,andthe lastfullscaledigitisedvaluewillchangeatapoint1.5LSBbelowtheVREFlevel.Notethatherethe VREFvoltageistheactualA/DconverterreferencevoltagedeterminedbytheSAVRSfield. FFFH FFEH FFDH 03H 02H 01H 0 1 2 3 4093 4094 4095 4096 VREF 4096 Analog Input Voltage A/D Conversion Result 1.5 LSB 0.5 LSB Ideal A/D Transfer Function A/D Conversion Programming Examples ThefollowingtwoprogrammingexamplesillustratehowtosetupandimplementanA/Dconversion. Inthefirstexample,themethodofpollingtheEOCBbitintheSADC0registerisusedtodetect whentheconversioncycleiscomplete,whereasinthesecondexample,theA/Dinterruptisusedto determinewhentheconversioniscomplete. Example: Using an EOCB polling method to detect the end of conversion clr ADE ; disable ADC interrupt mov a,03H mov SADC1,a ;selectfSYS/8asA/Dclock set ENADC mov a,03h ;setupPAPS0toconfigurepinAN0 mov PAPS0,a mov a,20h mov SADC0,a ;enableandconnectAN0channeltoA/Dconverter : start_conversion: clr START ;highpulseonstartbittoinitiateconversion set START ;resetA/D clr START ;startA/D |
|
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 |