Rev. 2.50 32 June 22, 2017 Rev. 2.50 33 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
In Circuit Programming – ICP
TheprovisionofFlashtypeProgramMemoryprovidestheuserwithameansofconvenientand
easyupgradesandmodicationstotheirprogramsonthesamedevice.
Asanadditionalconvenience,Holtekhasprovidedameansofprogrammingthemicrocontroller
in-circuitusinga5-pininterface.Thisprovidesmanufacturerswiththepossibilityofmanufacturing
theircircuitboardscompletewithaprogrammedorun-programmedmicrocontroller,andthen
programmingorupgradingtheprogramatalaterstage.Thisenablesproductmanufacturerstoeasily
keeptheirmanufacturedproductssuppliedwiththelatestprogramreleaseswithoutremovaland
re-insertionofthedevice.
MCU Programming Pins Function
PA0
Serial Data Input/Output
PA2 Serial Clock
RES Device Reset
VDD
Power Supply
VSS Ground
TheProgramMemoryandEEPROMdatamemorycanbothbeprogrammedseriallyin-circuitusing
this5-wireinterface.Dataisdownloadedanduploadedseriallyonasinglepinwithanadditional
linefortheclock.Twoadditionallinesarerequiredforthepowersupplyandonelineforthereset.
Thetechnicaldetailsregardingthein-circuitprogrammingofthedevicesarebeyondthescopeof
thisdocumentandwillbesuppliedinsupplementaryliterature.
DuringtheprogrammingprocesstheRESpinwillbeheldlowbytheprogrammerdisablingthe
normaloperationofthemicrocontroller andtakingcontrolofthePA0andPA2I/Opinsfordata
andclockprogrammingpurposes.Theusermusttheretakecaretoensurethatnootheroutputsare
connectedtothesetwopins.
*
* *
Writer_V DD
RES
DATA
CLK
Writer_V SS
DATA
CLK
VSS
RES
VDD
Sig nals
Pins
Note:*mayberesistororcapacitor.Theresistanceof*mustbegreater
than1kΩorthecapacitanceof*mustbelessthan1nF.
Programmer Pin Pins
RES PB0
DATA PA0
CLK PA2
Programmer and MCU Pins