User`s guide
Rev. 1.10 18 November 14, 2014 Rev. 1.10 19 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
Progra m Counte r
Stack Level 1
Stack Level 2
Stack Level 3
Stack Level 8
Progra m
Memory
T op of S ta ck
Stack
Poin te r
Bottom o f Stack
Arithmetic and Logic Unit – ALU
Thearithmetic-logicunitorALUisacriticalareaofthemicrocontrollerthatcarriesoutarithmetic
andlogicoperationsoftheinstructionset.Connectedtothemainmicrocontrollerdatabus,theALU
receivesrelatedinstructioncodesandperformstherequiredarithmeticorlogicaloperationsafter
whichtheresultwillbeplacedinthespeciedregister.AstheseALUcalculationoroperationsmay
resultincarry,borroworotherstatuschanges,thestatusregisterwillbecorrespondinglyupdatedto
reectthesechanges.TheALUsupportsthefollowingfunctions:
• Arithmeticoperations:ADD,ADDM,ADC,ADCM,SUB,SUBM,SBC,SBCM,DAA
• Logicoperations:AND,OR,XOR,ANDM,ORM,XORM,CPL,CPLA
• RotationRRA,RR,RRCA,RRC,RLA,RL,RLCA,RLC
• IncrementandDecrementINCA,INC,DECA,DEC
• Branchdecision,JMP,SZ,SZA,SNZ,SIZ,SDZ,SIZA,SDZA,CALL,RET,RETI
Flash Program Memory
TheProgramMemoryisthelocationwheretheusercodeorprogramisstored.Forthisdevicethe
ProgramMemoryisFlashtype,whichmeansitcanbeprogrammedandre-programmedalarge
numberoftimes,allowingtheusertheconvenienceofcodemodificationonthesamedevice.
Byusingtheappropriateprogrammingtools,thisFlashdeviceoffersuserstheflexibilityto
convenientlydebuganddeveloptheirapplicationswhilealsoofferingameansofeldprogramming
andupdating.
Structure
TheProgramMemoryhasacapacityof4K×16bits.TheProgramMemoryisaddressedbythe
ProgramCounterandalsocontainsdata,tableinformationandinterruptentries.Tabledata,which
canbesetupinanylocationwithintheProgramMemory,isaddressedbyaseparatetablepointer
register.
Special Vectors
WithintheProgramMemory,certainlocationsarereservedfortheresetandinterrupts.Thelocation
000Hisreservedforusebythedeviceresetforprograminitialisation.Afteradeviceresetis
initiated,theprogramwilljumptothislocationandbeginexecution.