User`s guide
Rev. 1.10 22 November 14, 2014 Rev. 1.10 23 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
On-Chip Debug Support – OCDS
ThereisanEVchipnamedHT66VW230whichisusedtoemulatetheHT66FW2230device.The
HT66VW230devicealsoprovidesthe“On-ChipDebug”functiontodebugtheHT66FW2230
deviceduringdevelopmentprocess.Thedevice,HT66FW2230,isalmostfunctionalcompatible
exceptthe“On-ChipDebug”functionandpackagetypes.UserscanusetheHT66VW230device
toemulatetheHT66FW2230devicebehaviorsbyconnectingtheOCDSDAandOCDSCKpinsto
theHoltekHT-IDEdevelopmenttools.TheOCDSDApinistheOCDSData/Addressinput/output
pinwhiletheOCDSCKpinistheOCDSclockinputpin.WhenusersusetheHT66VW230EV
chipfordebugging,thecorrespondingpinfunctionssharedwiththeOCDSDAandOCDSCKpins
intheHT66FW2230devicewillhavenoeffectintheHT66VW230EVchip.However,thetwo
OCDSpinswhicharepin-sharedwiththeICPprogrammingpinsarestillusedastheFlashMemory
programmingpinsforICP.FormoredetailedOCDSinformation,refertothecorresponding
documentnamed“Holteke-Linkfor8-bitMCUOCDSUser’sGuide”.
Holtek e-Link Pins EV Chip Pins
MCU Programming
Pins
Pin Description
OCDSDA OCDSDA PA0
On-chip Debug Support Data/Address
input/output
OCDSCK OCDSCK
PA2 On-chip Debug Support Clock input
VDD VDD VDD Power Supply
GND VSS VSS Ground
RAM Data Memory
TheDataMemoryisavolatileareaof8-bitwideRAMinternalmemoryandisthelocationwhere
temporaryinformationisstored.
Structure
Dividedintotwosections,therstoftheseisanareaofRAM,knownastheSpecialFunctionData
Memory.Herearelocatedregisterswhicharenecessaryforcorrectoperationofthedevice.Many
oftheseregisterscanbereadfromandwrittentodirectlyunderprogramcontrol,however,some
remainprotectedfromusermanipulation.ThesecondareaofDataMemoryisknownastheGeneral
PurposeDataMemory,whichisreservedforgeneralpurposeuse.Alllocationswithinthisareaare
readandwriteaccessibleunderprogramcontrol.
TheoverallDataMemoryissubdividedintotwobanks.TheSpecialPurposeDataMemoryregistersare
accessibleinallbanks,withtheexceptionoftheEECregisterataddress40H,whichisonlyaccessiblein
Bank1.SwitchingbetweenthedifferentDataMemorybanksisachievedbysettingtheBankPointerto
thecorrectvalue.ThestartaddressoftheDataMemoryforthedeviceistheaddress00H.
00H
7FH
80H
FFH
Special Purpose
Data Memory
General Purpose
Data Memory
128 Bytes
Data Memory Structure