HT45F12
8-Bit Flash MCU with Op Amps & Comparators
Flash Program Memory
TheꢀProgramꢀMemoryꢀisꢀtheꢀlocationꢀwhereꢀtheꢀuserꢀcodeꢀorꢀprogramꢀisꢀstored.ꢀForꢀthisꢀdeviceꢀtheꢀ
ProgramꢀMemoryꢀisꢀFlashꢀtype,ꢀwhichꢀmeansꢀitꢀcanꢀbeꢀprogrammedꢀandꢀre-programmedꢀaꢀlargeꢀ
numberꢀofꢀtimes,ꢀallowingꢀtheꢀuserꢀtheꢀconvenienceꢀofꢀcodeꢀmodificationꢀonꢀtheꢀsameꢀdevice.ꢀByꢀ
usingꢀtheꢀappropriateꢀprogrammingꢀtools,ꢀtheꢀFlashꢀdeviceꢀoffersꢀusersꢀtheꢀflexibilityꢀtoꢀconvenientlyꢀ
debugꢀandꢀdevelopꢀtheirꢀapplicationsꢀwhileꢀalsoꢀofferingꢀaꢀmeansꢀofꢀfieldꢀprogrammingꢀandꢀ
updating.
Structure
TheꢀProgramꢀMemoryꢀhasꢀaꢀcapacityꢀofꢀ1Kx15ꢀbits.ꢀTheꢀProgramꢀMemoryꢀisꢀaddressedꢀbyꢀtheꢀ
ProgramꢀCounterꢀandꢀalsoꢀcontainsꢀdata,ꢀtableꢀinformationꢀandꢀinterruptsꢀentries.ꢀTableꢀdata,ꢀwhichꢀ
canꢀbeꢀsetupꢀinꢀanyꢀlocationꢀwithinꢀtheꢀProgramꢀMemory,ꢀisꢀaddressedꢀbyꢀaꢀseparateꢀtableꢀpointerꢀ
register.
Special Vectors
WithinꢀtheꢀProgramꢀMemory,ꢀcertainꢀlocationsꢀareꢀreservedꢀforꢀtheꢀresetꢀandꢀinterrupts.ꢀ
•ꢀ Locationꢀ000H
Thisꢀvectorꢀisꢀreservedꢀforꢀuseꢀbyꢀtheꢀdeviceꢀresetꢀforꢀprogramꢀinitialisation.ꢀAfterꢀaꢀdeviceꢀresetꢀ
isꢀinitiated,ꢀtheꢀprogramꢀwillꢀjumpꢀtoꢀthisꢀlocationꢀandꢀbeginꢀexecution.
•ꢀ Locationꢀ004H
Thisꢀvectorꢀisꢀusedꢀbyꢀtheꢀexternalꢀinterruptꢀ0.ꢀIfꢀtheꢀexternalꢀinterruptꢀpinꢀreceivesꢀanꢀactiveꢀ
edge,ꢀtheꢀprogramꢀwillꢀjumpꢀtoꢀthisꢀlocationꢀandꢀbeginꢀexecutionꢀifꢀtheꢀexternalꢀinterruptꢀisꢀ
enabledꢀandꢀtheꢀstackꢀisꢀnotꢀfull.
•ꢀ Locationꢀ008H
Thisꢀvectorꢀisꢀusedꢀbyꢀtheꢀexternalꢀinterruptꢀ1.ꢀꢀIfꢀtheꢀexternalꢀinterruptꢀpinꢀreceivesꢀanꢀactiveꢀ
edge,ꢀtheꢀprogramꢀwillꢀjumpꢀtoꢀthisꢀlocationꢀandꢀbeginꢀexecutionꢀifꢀtheꢀexternalꢀinterruptꢀisꢀ
enabledꢀandꢀtheꢀstackꢀisꢀnotꢀfull.
•ꢀ Locationꢀ00CH
ThisꢀinternalꢀvectorꢀisꢀusedꢀbyꢀtheꢀTimer/EventꢀCounter.ꢀIfꢀaꢀTimer/EventꢀCounterꢀoverflowꢀ
occurs,ꢀtheꢀprogramꢀwillꢀjumpꢀtoꢀthisꢀlocationꢀandꢀbeginꢀexecutionꢀifꢀtheꢀtimer/eventꢀcounterꢀ
interruptꢀisꢀenabledꢀandꢀtheꢀstackꢀisꢀnotꢀfull.
•ꢀ Locationꢀ018H
ThisꢀinternalꢀvectorꢀisꢀusedꢀbyꢀtheꢀMulti-functionꢀInterrupt.ꢀWhenꢀtheꢀTimeꢀBaseꢀoverflows,ꢀaꢀ
Comparatorꢀoutputꢀinterrupt,ꢀanꢀEEPROMꢀWriteꢀorꢀReadꢀcycleꢀendsꢀinterrupt,ꢀtheꢀprogramꢀwillꢀ
jumpꢀtoꢀthisꢀlocationꢀandꢀbeginꢀexecutionꢀifꢀtheꢀrelevantꢀinterruptꢀisꢀenabledꢀandꢀtheꢀstackꢀisꢀnotꢀfull.
Rev. 0.00
19
�eꢀteꢁꢂeꢃ ꢄꢅꢆ ꢄ01ꢄ