EasyManua.ls Logo

Holtek HT66F30 - Programming Considerations

Default Icon
294 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 2.50 178 June 22, 2017 Rev. 2.50 179 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Programming Considerations
DuringmicrocontrolleroperationswheretheA/Dconverterisnotbeingused,theA/Dinternal
circuitrycanbeswitchedofftoreducepowerconsumption,bysettingbitADOFFhighinthe
ADCR0register.Whenthishappens,theinternalA/Dconvertercircuitswillnotconsumepower
irrespectiveofwhatanalogvoltageisappliedtotheirinputlines.IftheA/Dconverterinputlinesare
usedasnormalI/Os,thencaremustbetakenasiftheinputvoltageisnotatavalidlogiclevel,then
thismayleadtosomeincreaseinpowerconsumption.
A/D Transfer Function
Asthedevicescontaina12-bitA/Dconverter,itsfull-scaleconverteddigitisedvalueisequalto
FFFH.Sincethefull-scaleanaloginputvalueisequaltotheV
DD
orV
REF
voltage,thisgivesasingle
bitanaloginputvalueofV
DD
orV
REF
dividedby4096.
1LSB=(V
DD
orV
REF
)÷4096
TheA/DConverterinputvoltagevaluecanbecalculatedusingthefollowingequation:
A/Dinputvoltage=A/Doutputdigitalvalue×(V
DD
orV
REF
)÷4096
Thediagramshowstheidealtransferfunctionbetweentheanaloginputvalueandthedigitised
outputvaluefortheA/Dconverter.Exceptforthedigitisedzerovalue,thesubsequentdigitised
valueswillchangeatapoint0.5LSBbelowwheretheywouldchangewithouttheoffset,andthe
lastfullscaledigitisedvaluewillchangeatapoint1.5LSBbelowtheV
DD
orV
REF
level.


 









  
 





Ideal A/D Transfer Function

Table of Contents

Other manuals for Holtek HT66F30

Related product manuals