Rev. 2.50 176 June 22, 2017 Rev. 2.50 177 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
• Step6
TheanalogtodigitalconversionprocesscannowbeinitialisedbysettingtheSTARTbitin
theADCRregisterfromlowtohighandthenlowagain.Notethatthisbitshouldhavebeen
originallyclearedtozero.
• Step7
Tocheckwhentheanalogtodigitalconversionprocessiscomplete,theEOCBbitintheADCR0
registercanbepolled.Theconversionprocessiscompletewhenthisbitgoeslow.Whenthis
occurstheA/DdataregistersADRLandADRHcanbereadtoobtaintheconversionvalue.Asan
alternativemethod,iftheinterruptsareenabledandthestackisnotfull,theprogramcanwaitfor
anA/Dinterrupttooccur.
Note:Whencheckingfortheendoftheconversionprocess,ifthemethodofpollingtheEOCB
bitintheADCR0registerisused,theinterruptenablestepabovecanbeomitted.
Theaccompanyingdiagramshowsgraphicallythevariousstagesinvolvedinananalogtodigital
conversionprocessanditsassociatedtiming.AfteranA/Dconversionprocesshasbeeninitiated
bytheapplicationprogram,themicrocontrollerinternalhardwarewillbegintocarryoutthe
conversion,duringwhichtimetheprogramcancontinuewithotherfunctions.Thetimetakenforthe
A/Dconversionis16t
ADCK
wheret
ADCK
isequaltotheA/Dclockperiod.
A/D Conversion Timing