MagnaChip HMS39C7092 User manual

HMS39C7092
32BitEmbeddedFlashMCU
UserísManual
Version1.2

FlashMCU(HMS39C7092)
2
Released:February.2001
April9,2002
RevisionHistory:
October9,2001 Version1.05
PMU Software-ResetregisterisWrite-Only
Timer PWMModeduty0%hasatleast1clockduty.
Capturemodedelay
Buscontroller8-bitDataAccessmodeisunstable
ExternalWaitInputSupportsLow-Activeonly
nRDoutputhasbeenrevisedtobenegatedattheendofeachunit
accessinsuccessiveexternalmemoryaccess
January8,2002Preliminaryrelease6
ADC/P7 GPIOfunctionatADCportisdeleted(ADCinputOnly)
April29,2003 Version1.0
Documentminorchange
Nov14,2003Version1.1
ARMistrademarkofAdvancedRISCMachineLtd.
ARM7TDMIisdesignedbyARMLtd.
Theinformationcontainedhereinissubjecttochangewithoutnotice.
Theinformationcontainedhereinispresentedonlyasaguidefortheapplicationsofourproducts.No
responsibilityisassumedbyMagnachipforanyinfringementsofpatentsorotherrightsofthethird
partieswhichmayresultfromitsuse.Nolicenseisgrantedbyimplicationorotherwiseunderanypatent
orpatentrightsofMagnachiporothers.
TheseMagnachipproductsareintendedforusageingeneralelectronicequipment(officeequipment,
communicationequipment,measuringequipment,domesticelectrification,etc.).
PleasemakesurethatyouconsultwithusbeforeyouusetheseMagnachipproductsinequipment
whichrequirehighqualityand/orreliability,andinequipmentwhichcouldhavemajorimpacttothe
welfareofhumanlife(atomicenergycontrol,airplane,spaceship,trafficsignal,combustioncontrol,all
typesofsafetydevices,etc.).Magnachipcannotacceptliabilitytoanydamagewhichmayoccurincase
theseMagnachipproductswereusedinthementionedequipmentwithoutpriorconsultationwith
Magnachip.
Copyright2000MagnachipSemiconductor,Inc.
AllRightsReserved

FlashMCU(HMS39C7092)
3
Contents
Chapter1 .....................................................................................................................................13
Introduction ..........................................................................................................................13
1.1 GeneralDescription ......................................................................................14
1.2 Feature..........................................................................................................15
1.3 PinDescriptions ............................................................................................16
1.4 OperationModedescription..........................................................................21
1.5 MemoryMap .................................................................................................25
Chapter2 .....................................................................................................................................27
ARM7TDMICore.................................................................................................................. 27
2.1 GeneralDescription ......................................................................................28
2.2 Feature..........................................................................................................28
2.3 CoreBlockDiagram......................................................................................29
2.4 InstructionSet ...............................................................................................30
2.4.1 ARMInstruction..................................................................................... 30
2.4.2 THUMBInstruction ................................................................................ 33
2.4.3 TheProgramStatusRegisters .............................................................. 36
2.4.3.1 Theconditioncodeflags................................................................ 37
2.4.3.2 Thecontrolbits ..............................................................................37
2.4.4 ARMInstructions ...................................................................................39
Chapter3 .....................................................................................................................................41
BUSController .....................................................................................................................41
3.1 Overview ....................................................................................................... 42
3.1.1 Features ................................................................................................42
3.1.2 PinConfiguration................................................................................... 43
3.2 BusControllerRegisters ...............................................................................44
3.2.1 ConfigurationRegisters......................................................................... 45
3.3 Operation ...................................................................................................... 46
3.3.1 AreaDivision .........................................................................................46
3.3.2 AreaDivision .........................................................................................47
3.3.3 ChipSelectSignals ...............................................................................47
3.4 BasicBusInterface .......................................................................................48
3.4.1 Overview ............................................................................................... 48
3.4.2 ByteLaneWriteControl ........................................................................48
3.4.3 BasicBusControlSignalTiming ........................................................... 50
3.4.4 WaitControl........................................................................................... 56
3.4.5 BusArbiter.............................................................................................57
Chapter4 .....................................................................................................................................59
MCUController .................................................................................................................... 59
4.1 GeneralDescription ......................................................................................60
4.2 PinFunctionDescription ...............................................................................60
4.3 RegisterDescription....................................................................................61
4.3.1 RegisterMemoryMap ........................................................................... 61
4.3.2 PINMUXRegister ..................................................................................62
4.3.3 MCUDeviceCodeRegister(0x0900_002CReadOnly) ...................66
Chapter5 .....................................................................................................................................67

FlashMCU(HMS39C7092)
4
PowerManagementUnit .....................................................................................................67
5.1 GeneralDescription ......................................................................................68
5.2 OperationModes ..........................................................................................69
5.2.1 Introduction............................................................................................69
5.2.2 ResetandOperationModes .................................................................69
5.3 PowerManagementUnitRegisterMap ........................................................71
5.4 RegisterDescription...................................................................................... 72
5.5 SignalTimingDiagram..................................................................................75
5.5.1 PoweronReset.....................................................................................75
5.5.2 WatchDogTimerOverflow ...................................................................75
5.5.3 Soft-Reset .............................................................................................76
Chapter6 .....................................................................................................................................77
TheInterruptController........................................................................................................ 77
6.1 AbouttheInterruptcontroller ........................................................................ 78
6.1.1 Interruptsources ...................................................................................79
6.1.2 InterruptControl ....................................................................................79
6.2 InterruptControllerRegisters........................................................................ 81
Chapter7 .....................................................................................................................................85
WatchdogTimer ...................................................................................................................85
7.1 GeneralDescription ......................................................................................86
7.2 WatchdogTimerIntroduction ........................................................................87
7.3 WatchdogTimerOperation ........................................................................... 88
7.3.1 TimingofSettingandClearingtheOverflowFlag................................. 89
7.4 WatchdogTimerMemoryMap......................................................................90
7.5 WatchdogTimerRegisterDescriptions.........................................................91
7.6 ExamplesofRegisterSetting........................................................................ 94
7.6.1 IntervalTimerMode............................................................................. 94
7.6.2 WatchdogTimerModewithInternalResetDisable ..............................95
7.6.3 WatchdogTimerModewithPower-onReset........................................96
7.6.4 WatchdogTimerModewithManualReset ...........................................97
Chapter8 .....................................................................................................................................99
TheGeneralPurposeTimer.................................................................................................99
8.1 AbouttheGeneralPurposeTimerUnit....................................................... 100
8.1.1 GeneralPurposeTimerUnitIntroduction............................................101
8.2 GeneralPurposeTimerUnitMemoryMap .................................................102
8.2.1 RegisterAssignment ........................................................................... 102
8.2.2 GeneralPurposeTimerUnitRegisterDescriptions ............................103
8.2.2.1 TimerGlobalControlRegisters ...................................................103
8.2.2.2 TimerChannelControlRegisters ................................................104
8.3 GeneralPurposeTimerUnitOperation ......................................................108
8.3.1 FreeRunningMode.............................................................................109
8.3.2 CompareMatchMode......................................................................... 111
8.3.3 InputCaptureMode............................................................................. 113
8.3.4 SynchronizedClearandWriteMode .................................................. 114
8.3.5 PWMMode.......................................................................................... 115
8.3.5.1 PWMModeOperation ................................................................. 115
Chapter9 ................................................................................................................................... 119
UART(UniversalAsynchronousReceiver/Transmitter)..................................................... 119
9.1 GeneralDescription ....................................................................................120

FlashMCU(HMS39C7092)
5
9.2 Features ......................................................................................................121
9.3 SignalDescription ....................................................................................... 121
9.4 InternalBlockDiagram................................................................................122
9.5 RegistersDescription..................................................................................123
9.6 UARTOperations........................................................................................134
9.6.1 FIFOInterruptModeOperation...........................................................134
9.6.2 FIFOPolledModeOperation ..............................................................135
9.7 RegisterSummary ......................................................................................136
Chapter10. ................................................................................................................................137
GPIO(GeneralPurposeInputOutput)...............................................................................137
10.1 GeneralDescription ....................................................................................138
10.2 GPIORegisters ...........................................................................................139
10.2.1 RegisterMemoryMap ......................................................................... 139
10.3.1 RegisterDescription ............................................................................ 140
10.3 FunctionalDescription ................................................................................141
Chapter11 .................................................................................................................................143
On-ChipSRAM ..................................................................................................................143
11.1 GeneralDescription ....................................................................................144
11.2 FunctionDescription ...................................................................................144
Chapter12 .................................................................................................................................145
On-chipFlashMemory.......................................................................................................145
12.1 GeneralDescription ....................................................................................146
12.2 Features ......................................................................................................146
12.3 BlockDiagram.............................................................................................148
12.4 FlashMemoryRegisterDescription............................................................ 150
12.5 On-BoardProgrammingMode....................................................................155
12.5.1BootMode.............................................................................................155
12.5.2UserProgramMode.............................................................................. 158
12.6 FlashMemoryProgramming/Erasing ......................................................... 160
12.6.1 Program&Program-VerifyMode ........................................................160
12.6.2Pre-program&Pre-programVerifyMode .............................................162
12.6.3Erase&EraseVerifyMode...................................................................164
12.6.4EraseAlgorithm.....................................................................................166
12.7 FlashMemoryPROMMode .......................................................................167
12.7.1PROMModeSetting .............................................................................167
12.7.2MemoryMap .........................................................................................168
12.7.3PROMModeOperation ........................................................................168
12.7.4TimingDiagramandAC/DCCharacteristics.........................................169
Chapter13 .................................................................................................................................173
A/DConverter .................................................................................................................... 173
13.1 Overview ..................................................................................................... 174
13.1.1 Features .............................................................................................. 174
13.1.2 PinConfiguration.................................................................................175
13.2 A/DConverterRegisters ............................................................................. 176
13.2.1 RegisterDescriptions ..........................................................................176
13.3 Operation .................................................................................................... 179
13.4 Interrupts .....................................................................................................180
13.5 UsageNotes ...............................................................................................181
13.6 Example ......................................................................................................184

FlashMCU(HMS39C7092)
6
Chapter14 .................................................................................................................................186
ElectricalCharacteristics....................................................................................................186
14.1 AbsoluteMaximumRatings ........................................................................187
14.2 RecommendedOperatingConditions:........................................................187
14.3 DCCharacteristics ......................................................................................188
14.4 ACCharacteristics ......................................................................................189
14.4 ADConversioncharacteristics....................................................................191
14.5 OperationalTiming......................................................................................192
14.5.1ClockTiming ............................................................................................192
14.5.2ResetTiming............................................................................................192
14.5.3BusTiming ............................................................................................... 193
Appendix
A-1PackageDimension

FlashMCU(HMS39C7092)
7
Figures
Figure1.1PackageOutline...............................................................................................14
Figure1.2HMS39C7092BlockDiagram ..........................................................................15
Figure1.3HMS39C7092MemoryMap.............................................................................25
Figure1.4MemoryMapofMode3 ...................................................................................25
Figure1.5MemoryMapofwhenMode4andMode5 .....................................................26
Figure1.6MemoryMapofMode6andMode7 ...............................................................26
Figure2.1ARM7TDMICoreBlockDiagram .....................................................................29
Figure2.2ARMinstructionsetformats............................................................................. 30
Figure2.3RegisterOrganizationinARMstate.................................................................32
Figure2.4THUMBinstructionsetformats ........................................................................33
Figure2.5RegisterOrganizationinTHUMBstate ............................................................ 35
Figure2.6MappingofTHUMBstateregistersontoARMstateregisters. ........................ 35
Figure2.7Programstatusregisterformat.........................................................................36
Figure3.1BlockDiagramoftheBusController................................................................42
Figure3.2AccessAreaMapforEachOperatingMode.................................................... 46
Figure3.3AccessSizeandDataAlignmentControl(8-BitAccessArea).........................48
Figure3.4AccessSizeandDataAlignmentControl(16-BitAccessArea).......................49
Figure3.5BusControlSignalWriteTimingfor16-Bit,1-Wait(WordAccess)..................50
Figure3.6BusControlSignalReadTimingfor16-Bit,1-Wait(WordAccess)..................50
Figure3.7BusControlSignalWriteTimingfor16-Bit,1-Wait(Half-wordAccess)...........51
Figure3.8BusControlSignalReadTimingfor16-Bit,1-Wait(Half-wordAccess)........... 51
Figure3.9BusControlSignalWriteTimingfor16-Bit,1-Wait(ByteAccess) ...................52
Figure3.10BusControlSignalReadTimingfor16-Bit,1-Wait(ByteAccess)................. 52
Figure3.11BusControlSignalWriteTimingfor16-Bit,2-Wait(WordAccess) ................ 53
Figure3.12BusControlSignalReadTimingfor16-Bit,2-Wait(WordAccess) ...............53
Figure3.13BusControlSignalWriteTimingfor16-Bit,2-Wait(Half-WordAccess) ........54
Figure3.14BusControlSignalReadTimingfor16-Bit,2-Wait(Half-WordAccess)........54
Figure3.15BusControlSignalWriteTimingfor16-Bit,2-Wait(ByteAccess) ................. 55
Figure3.16BusControlSignalReadTimingfor16-Bit,2-Wait(ByteAccess)................. 55
Figure3.17ExampleofWaitStateInsertionTiming. ........................................................56
Figure3.18ExampleofExternalBusMasterOperation...................................................58
Figure5.1PMUBlockDiagram.........................................................................................68
Figure5.2ResetandPowerManagementStateMachine................................................70
Figure5.3PoweronResetTimingDiagram .....................................................................75
Figure5.4WatchDogTimerOverflowTimingDiagram....................................................75
Figure5.5SoftReset(fromWDT)TimingDiagram ..........................................................76
Figure5.6SoftReset(fromPMU)TimingDiagram ..........................................................76
Figure6.1InterruptControlFlowDiagram ........................................................................78
Figure7.1WatchdogTimerModuleBlockDiagram..........................................................86
Figure7.2OperationintheWatchdogTimerMode ..........................................................88
Figure7.3OperationintheIntervalTimerMode............................................................... 89
Figure7.4InterruptClearintheIntervalTimerMode .......................................................94
Figure7.5InterruptClearintheWatchdogTimerModewithResetDisable ....................95
Figure7.6InterruptClearintheWatchdogTimerModewithPower-onReset................. 96
Figure7.7InterruptClearintheWatchdogTimerModewithManualReset ....................97
Figure8.1General-purposeTimerUnitModuleBlockDiagram .....................................100

FlashMCU(HMS39C7092)
8
Figure8.2Free-RunningCounterOperation ..................................................................109
Figure8.3PeriodicCounterOperation............................................................................ 110
Figure8.4Exampleof0Output/1Output ....................................................................... 111
Figure8.5ExampleofToggleOutput.............................................................................. 112
Figure8.6CompareMatchSignalOutputTiming ........................................................... 112
Figure8.7InputCaptureOperation................................................................................. 113
Figure8.8SynchronizedOperationExample ................................................................. 114
Figure8.9PWMModeOperationExample1 ................................................................. 115
Figure8.10PWMModeOperationExample2 ............................................................... 116
Figure8.11Reset-SynchronizedPWMModeOperationExample ................................. 117
Figure9.1TOPBLOCKDiagram ....................................................................................120
Figure9.2InternalUARTDiagram .................................................................................. 122
Figure10.1GPIOBlockDiagramandPADSConnections(exampleforPortAandPortB)
....................................................................................................................................138
Figure12.1BlockDiagramofFlashMemory..................................................................148
Figure12.2SystemConfigurationWhenUsingOn-BoardBootMode........................... 155
Figure12.3BootModeExecutionProcedure .................................................................156
Figure12.4UserModeExecutionProcedure .................................................................158
Figure12.5FlashProgram&ProgramVerifySequence ................................................161
Figure12.6FlashPre-program&Pre-programVerifySequence ...................................163
Figure12.7FlashErase&EraseVerifySequence......................................................... 165
Figure12.8FlashEraseAlgorithm .................................................................................. 166
Figure12.9TimingDiagramofRead ..............................................................................169
Figure12.10TimingDiagramofPre-Program/Program .................................................170
Figure12.11TimingDiagramofErase............................................................................ 170
Figure12.12TimingDiagramofPre-Program/ProgramVerify .......................................171
Figure12.13TimingDiagramofEraseVerify .................................................................171
Figure13.1BlockDiagramofA/DConverter .................................................................. 174
Figure13.2A/DconverterOperation ..............................................................................179
Figure13.3ExampleofAnalogInputCircuit...................................................................182
Figure13.4A/DConverterAccuracyDefinitions(1) .......................................................182
Figure13.5A/DConverterAccuracyDefinitions(2) .......................................................183
Figure14.1Thesettlingtimeofthecrystaloscillator ......................................................192
Figure14.2ResetInputTiming .......................................................................................192
Figure14.3TheWriteTimingDiagramoftheBusController .........................................193
Figure14.4TheReadTimingDiagramoftheBusController .........................................193
Figure14.5BasicBusCyclewithExternalWaitState ....................................................194
Figure14.6BusReleaseModeTiming ...........................................................................194

FlashMCU(HMS39C7092)
9
Tables
Table1.1PinDescriptions.................................................................................................16
Table1.1PinDescriptions(Continued) ............................................................................. 17
Table1.1PinDescriptions(Continued) ............................................................................. 18
Table1.1PinDescriptions(Continued) ............................................................................. 19
Table1.1PinDescriptions(Continued) ............................................................................. 20
Table1.2HMS39C7092Operationmodes .......................................................................21
Table1.3Pinassignmentbymode ...................................................................................22
Table1.3Pinassignmentbymode(continued) ................................................................23
Table1.3Pinassignmentbymode(continued) ................................................................24
Table2.1TheARMInstructionset ....................................................................................31
Table2.2THUMBinstructionsetopcodes ........................................................................34
Table2.3Conditioncodesummary................................................................................... 36
Table2.4PSRmodebitvalues .........................................................................................38
Table3.1BusControllerPins ............................................................................................ 43
Table3.2BUSControllerRegisterMap ............................................................................44
Table3.3ByteLaneconditionbyA0 .................................................................................49
Table4.1PinFunctionDescriptions ..................................................................................60
Table4.2MemorymapoftheMCUController..................................................................61
Table4.3MCUControllerInitialvaluesineachmode ......................................................61
Table5.1RegisterMapofthePMU ..................................................................................71
Table6.1InterruptControllerDefaultSettingValue ..........................................................79
Table6.2MemoryMapoftheInterruptController.............................................................81
Table6.3InterruptSourceTriggerMode........................................................................... 82
Table7.1MemoryMapoftheWatchdogTimerAPBPeripheral ....................................... 90
Table7.2InternalCounterClockSources.........................................................................92
Table8.1TimerGlobalControlRegisterMap .................................................................102
Table8.2TimerChannelControlRegisterMap .............................................................. 102
Table8.3TimerChannelStartingAddress ......................................................................102
Table9.1SignalDescriptions ..........................................................................................121
Table9.2UARTRegisterAddressMap(0x1500inUART1)...........................................123
Table9.3UARTRegisterResetValues........................................................................... 123
Table9.4aDivisorValuesforeachBaudrate(CLK=33MHz) .........................................127
Table9.4bDivisorValuesforeachBaudrate(CLK=36.864MHz) ..................................127
Table9.4cDivisorValuesforeachBaudrate(CLK=50MHz) .........................................127
Table9.5InterruptControlFunctions ..............................................................................132
Table9.6SummaryofRegisters .....................................................................................136
Table10.1GPIORegisterMemoryMap .........................................................................139
Table12.1Operatingmode ............................................................................................. 147
Table12.2SignaldescriptionofFigure12.1(BUSInterface) ..........................................149
Table12.3FlashMemoryRegisters................................................................................ 150
Table12.4ControlRegister.............................................................................................152
Table12.5EraseSectorRegister...................................................................................153
Table12.6FMPR(Status&PowerRegister) .................................................................. 154
Table12.7FR_SELValueforaccesstointernalRegister ..............................................167
Table12.8SettingforRegisterread/write .......................................................................167
Table12.9EraseSectorRegister....................................................................................168

FlashMCU(HMS39C7092)
10
Table12.10SettingforFlashPROMread/write..............................................................169
Table12.11DCCharacteristics ....................................................................................... 172
Table12.12ACCharacteristics ....................................................................................... 172
Table13.1A/DConverterPins ........................................................................................175
Table13.2SummarizestheA/Dconverterísregisters. ...................................................176
Table14.1AbsoluteMaximumRatings ........................................................................... 187
Table14.2RecommendedOperatingConditions ...........................................................187
Table14.3DCCharacteristics.........................................................................................188
Table14.4IOCircuitswithpull-ups .................................................................................188
Table14.5IOCircuitswithpull-downs ............................................................................188
Table14.6ClockTiming ..................................................................................................189
Table14.7ControlSignalTiming..................................................................................... 189
Table14.8BusTiming (units:ns)........................................................190
Table14.9OperatingConditionsoftheADConversion..................................................191
Table14.10ElectricalcharacteristicsoftheADconverter ..............................................191

FlashMCU(HMS39C7092)
11

FlashMCU(HMS39C7092)
12

FlashMCU(HMS39C7092) Introduction
13
Chapter1
Introduction

Introduction FlashMCU(HMS39C7092)
14
1.1GeneralDescription
The16bitMCUwithembeddedflashmemoryforopticalstorageisthefirstmember
ofMagnachipSemiconductor16/32bitMCUFamilyofhighperformance
microcontrollerunits(MCUs).Thisfamilyincludesaseriesofperipheralsfromwhich
numerousMCUsareassembled.ThisMCUcontainsextensiveperipherals:
192Kbytesflashmemory,4KbytesSRAM,6channel16bitTimer,WatchDogTimer,
2channelUART,ProgrammablePriorityInterruptController,75bitsGPIO,BUS
ControllerincludingChipselectlogic,whichisOn-ChipModularArchitecture(AMBA).
Figure1.1PackageOutline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
HMS39C7092
2001.02
A13/P25
A12/P24
A11/P23
A10/P22
A9/P21
A8/P20
VSS
A7/P17
A6/P16
A5/P15
A4/P14
A3/P13
A2/P12
A1/P11
A0/P10
VDD
D15/P37
D14/P36
D13/P35
D12/P34
D11/P33
D10/P32
D9/P31
D8/P30
D7/P47
VDD
nCS7/TIOCA3/PB0
nCS6/TIOCB3/PB1
nCS5/TIOCA4/PB2
nCS4/TIOCB4/PB3
TMS/PB4
TDO/PB5
TDI/PB6
TCK/PB7
FVPPD
VSS
TxD0/P90
RxD0/P91
TxD1/P92
RxD1/P93
nIRQ4/P94
nIRQ5/P95
D0/P40
D0/P40
D2/P42
D3/P43
VSS
D4/P44
D5/P45
D6/P46
A14/P26
A15/P27
A16/P50
A17/P51
A18/P52
A19/P53
VSS
nWAIT/P60
nBREQ/P61
nBACK/P62
CLKO/P67
nSTBY
nRES
nTRST/P97
VSS
XTALOUT
XTALIN
VDD
nAS/P63
nRD/P64
nHWR/P65
nLWR/P66
MODE0
MODE1
MODE2
AVDD
AVREF
AN0
AN1
AN2
AN3
AN4
VSS
TIOCA5/nIRQ6/P76
TIOCB5/nIRQ7/P77
P75
nIRQ0/P80
nCS3/nIRQ1/P81
nCS2/nIRQ2/P82
nCS1/nIRQ3/P83
nCS0/P84
VSS
TCLKA/PA0
TCLKB/PA1
TCLKC/TCIOA0/PA2
TCLKD/TCIOB0/PA3
A23/TIOCA1/PA4
A22/TIOCB1/PA5
A21/TIOCA2/PA6
A20/TIOCB2/PA7

FlashMCU(HMS39C7092) Introduction
15
1.2Feature
•On-ChipModularArchitecture(usingAMBA)
•UtilizestheARM7TDMI32/16bitRISCFamily
•192Kbytes(96Kx16-bit)flashmemory
•4KbytesinternalSRAM
•8/16-bitexternalDataBus
•EightProgrammableChipSelectOutputswithexternalwaitinput
•LowPowerConsumptionatNormalOperation
•Fullystaticoperation:Max.50MHz
•ProgrammablePriorityInterruptController(8externalsources)
•Six16bitMultifunctionTimer/PW MsforGeneralPurposeApplications
•One8bitWatchDogTimer(WDT)
•TwoUARTs(UniversalAsynchronousReceiverTransmitter)compatiblewith
16C550UART
•ProgrammableInput/Outputports(75-bit)
•10-bit5-channelADC
•100TQFPPackage
ARM7TDMI
32bitRISCCore
16bitTimer/PWMx6
BUSController
WDT
UARTx2
PowerManagement
Unit
Clock
Oscillator
GPIO
10bitADC5ch
PORT1PORT2PORT3PORT4
PORT7PORT8PORT6PORT5
PORT9PORTBPORTA
JTAG
PINMUX
APB
Bridge
FlashROM
(192KB)
RAM
(4KB)
A
S
B
A
P
B
InterruptController
Figure1.2HMS39C7092BlockDiagram

Introduction FlashMCU(HMS39C7092)
16
1.3PinDescriptions
Table1.1PinDescriptions
PINSYMBOLDIRDESCRIPTION
1VDD-PowerSupply3.3V
nCS7OExternalChipSelectionNumber7
TCIOA3I/OPWMoutput,ComparematchoutputofReg.AandsignalcaptureinputofTimerCh3
2
PB0I/OGeneralpurposeinputoutputofportBbit0
nCS6OExternalChipSelectionNumber6
TCIOB3I/OPWMoutput,ComparematchoutputofReg.BandsignalcaptureinputofTimerCh3
3
PB1I/OGeneralpurposeinputoutputofportBbit1
nCS5OExternalChipSelectionNumber5
TIOCA4I/OPWMoutput,ComparematchoutputofReg.AandsignalcaptureinputofTimerCh4
4
PB2I/OGeneralpurposeinputoutputofportBbit2
nCS4OExternalChipSelectionNumber4
TIOCB4I/OPWMoutput,ComparematchoutputofReg.BandsignalcaptureinputofTimerCh4
5
PB3I/OGeneralpurposeinputoutputofportBbit3
TMSIJTAGTestModeSelection
6
PB4I/OGeneralpurposeinputoutputofportBbit4
TDOOJTAGTestDataOutput
7
PB5I/OGeneralpurposeinputoutputofportBbit5
TDIIJTAGTestDataInput
8
PB6I/OGeneralpurposeinputoutputofportBbit6
TCKIJTAGTestClock
9
PB7I/OGeneralpurposeinputoutputofportBbit7
10VPPDI5VinputfortheuseofProgrammingandErasingoftheFlashMemory
11VSS-Powerground
TxD0OTransmitDataofUARTCh0
12
P90I/OGeneralpurposeinputoutputofport9bit0
RxD0OReceiveDataofUARTCh0
13
P91I/OGeneralpurposeinputoutputofport9bit1
TxD1OTransmitDataofUARTCh1
14
P92I/OGeneralpurposeinputoutputofport9bit2
RxD1OReceiveDataofUARTCh1
15
P93I/OGeneralpurposeinputoutputofport9bit3
nIRQ4IExternalInterruptRequestnumber4
16
P94I/OGeneralpurposeinputoutputofport9bit4
nIRQ5IExternalInterruptRequestnumber5
17
P95I/OGeneralpurposeinputoutputofport9bit5
D0I/OExternalDataBusbit0
18
P40I/OGeneralpurposeinputoutputorport4bit0
D1I/OExternalDataBusbit1
19
P41I/OGeneralpurposeinputoutputorport4bit1
D2I/OExternalDataBusbit2
20
P42I/OGeneralpurposeinputoutputorport4bit2
D3I/OExternalDataBusbit3
21
P43I/OGeneralpurposeinputoutputorport4bit3

FlashMCU(HMS39C7092) Introduction
17
Table1.1PinDescriptions(Continued)
PINSYMBOLDIRDESCRIPTION
22VSS-Powerground
D4I/OExternalDataBusbit4
23
P44I/OGeneralpurposeinputoutputorport4bit4
D5I/OExternalDataBusbit5
24
P45I/OGeneralpurposeinputoutputorport4bit5
D6I/OExternalDataBusbit6
25
P46I/OGeneralpurposeinputoutputorport4bit6
D7I/OExternalDataBusbit7
26
P47I/OGeneralpurposeinputoutputorport4bit7
D8I/OExternalDataBusbit8
27
P30I/OGeneralpurposeinputoutputorport3bit0
D9I/OExternalDataBusbit9
28
P31I/OGeneralpurposeinputoutputorport3bit1
D10I/OExternalDataBusbit10
29
P32I/OGeneralpurposeinputoutputorport3bit2
D11I/OExternalDataBusbit11
30
P33I/OGeneralpurposeinputoutputorport3bit3
D12I/OExternalDataBusbit12
31
P34I/OGeneralpurposeinputoutputorport3bit4
D13I/OExternalDataBusbit13
32
P35I/OGeneralpurposeinputoutputorport3bit5
D14I/OExternalDataBusbit14
33
P36I/OGeneralpurposeinputoutputorport3bit6
D15I/OExternalDataBusbit15
34
P37I/OGeneralpurposeinputoutputorport3bit7
35VDD-PowerSupply3.3V
A0OExternalAddressBusbit0
36
P10I/OGeneralpurposeinputoutputorport1bit0
A1OExternalAddressBusbit1
37
P11I/OGeneralpurposeinputoutputorport1bit1
A2OExternalAddressBusbit2
38
P12I/OGeneralpurposeinputoutputorport1bit2
A3OExternalAddressBusbit3
39
P13I/OGeneralpurposeinputoutputorport1bit3
A4OExternalAddressBusbit4
40
P14I/OGeneralpurposeinputoutputorport1bit4
A5OExternalAddressBusbit5
41
P15I/OGeneralpurposeinputoutputorport1bit5
A6OExternalAddressBusbit6
42
P16I/OGeneralpurposeinputoutputorport1bit6
A7OExternalAddressBusbit7
43
P17I/OGeneralpurposeinputoutputorport1bit7
44VSS-Powerground
A8OExternalAddressBusbit8
45
P20I/OGeneralpurposeinputoutputorport2bit0
A9OExternalAddressBusbit9
46
P21I/OGeneralpurposeinputoutputorport2bit1
A10OExternalAddressBusbit10
47
P22I/OGeneralpurposeinputoutputorport2bit2

Introduction FlashMCU(HMS39C7092)
18
Table1.1PinDescriptions(Continued)
PINSYMBOLDIRDESCRIPTION
A11OExternalAddressBusbit11
48
P23I/OGeneralpurposeinputoutputorport2bit3
A12OExternalAddressBusbit12
49
P24I/OGeneralpurposeinputoutputorport2bit4
A13OExternalAddressBusbit13
50
P25I/OGeneralpurposeinputoutputorport2bit5
A14OExternalAddressBusbit14
51
P26I/OGeneralpurposeinputoutputorport2bit6
A15OExternalAddressBusbit15
52
P27I/OGeneralpurposeinputoutputorport2bit7
A16OExternalAddressBusbit16
53
P50I/OGeneralpurposeinputoutputofport5bit0
A17OExternalAddressBusbit17
54
P51I/OGeneralpurposeinputoutputofport5bit1
A18IExternalAddressBusbit18
55
P52I/OGeneralpurposeinputoutputofport5bit2
A19OExternalAddressBusbit19
56
P53I/OGeneralpurposeinputoutputofport5bit3
57VSS-Powerground
nWAIT IExternalBUScyclewaitsignal
58
P60I/OGeneralpurposeinputoutputofport6bit0
nBREQIExternalBUSRequest
59
P61I/OGeneralpurposeinputoutputofport6bit1
nBACKIExternalBUSAcknowledge
60
P62I/OGeneralpurposeinputoutputofport6bit2
CLKOOBUSClockOutput
61
P67I/OGeneralpurposeinputoutputofport6bit7
62nSTBYOStandbymodesignal.PowerDownmodeindicating
63nRESIExternalResetinput
nTRST IJTAGTestResetinput(pull-down)
64
P97I/OGeneralpurposeinputoutputofport9bit7(pull-down)
65VSS-Powerground
66XTALOUT OCrystalfeedbackoutput
67XTALINICrystalorExternalOscillatorinput
68VDD-PowerSupply3.3V
nASOExternalAddressBusstrobe
69
P63I/OGeneralpurposeinputoutputofport6bit3
nRDOExternalBusRead
70
P64I/OGeneralpurposeinputoutputofport6bit4
nHWROExternalupper8bitdatabuswrite
71
P65I/OGeneralpurposeinputoutputofport6bit5
nLWROExternallower8bitdatabuswrite
72
P66I/OGeneralpurposeinputoutputofport6bit6
73MODE0IMODEbit0
74MODE1IMODEbit1
75MODE2IMODEbit2
76AVDD-AnalogPowerSupply3.3V
77AVREF-ADCReferenceVoltage

FlashMCU(HMS39C7092) Introduction
19
Table1.1PinDescriptions(Continued)
PINSYMBOLDIRDESCRIPTION
78AN0IADCChannel0input
79AN1IADCChannel1input
80AN2IADCChannel2input
81AN3IADCChannel3input
82AN4IADCChannel4input
83VSS-Powerground(internallyassociatewithAVSS)
TIOCA5I/OPWMoutput,ComparematchoutputofReg.AandsignalcaptureinputofTimerCh5
nIRQ6IExternalInterruptRequestnumber6
84
P76I/OGeneralpurposeinputoutputofport7bit6
TIOCB5I/OPWMoutput,ComparematchoutputofReg.BandsignalcaptureinputofTimerCh5
nIRQ7IExternalInterruptRequestnumber7
85
P77I/OGeneralpurposeinputoutputofport7bit7
86P75I/OGeneralpurposeinputoutputofport7bit5
nIRQ0IExternalInterruptRequestnumber0
87
P80I/OGeneralpurposeinputoutputofport8bit0
nCS3OExternalChipSelectionNumber3
nIRQ1IExternalInterruptRequestnumber1
88
P81I/OGeneralpurposeinputoutputofport8bit1
nCS2OExternalChipSelectionNumber2
nIRQ2IExternalInterruptRequestnumber2
89
P82I/OGeneralpurposeinputoutputofport8bit2
nCS1OExternalChipSelectionNumber1
nIRQ3IExternalInterruptRequestnumber3
90
P83I/OGeneralpurposeinputoutputofport8bit3
nCS0OExternalChipSelectionNumber0
91
P84I/OGeneralpurposeinputoutputofport8bit4
92VSS-Powerground
TCLKAIExternaltimerinputclockA
93
PA0I/OGeneralpurposeinputoutputofportAbit0
TCLKBIExternaltimerinputclockB
94
PA1I/OGeneralpurposeinputoutputofportAbit1
TCLKCIExternaltimerinputclockC
TIOCA0I/OPWMoutput,ComparematchoutputofReg.AandsignalcaptureinputofTimerCh0
95
PA2I/OGeneralpurposeinputoutputofportAbit2
TCLKDIExternaltimerinputclockD
TIOCB0I/OPWMoutput,ComparematchoutputofReg.BandsignalcaptureinputofTimerCh0
96
PA3I/OGeneralpurposeinputoutputofportAbit3
A23OExternalAddressBusbit23
TIOCA1I/OPWMoutput,ComparematchoutputofReg.AandsignalcaptureinputofTimerCh1
97
PA4I/OGeneralpurposeinputoutputofportAbit4

Introduction FlashMCU(HMS39C7092)
20
Table1.1PinDescriptions(Continued)
PINSYMBOLDIRDESCRIPTION
A22OExternalAddressBusbit22
TIOCB1I/OPWMoutput,ComparematchoutputofReg.BandsignalcaptureinputofTimerCh1
98
PA5I/OGeneralpurposeinputoutputofportAbit5
A21OExternalAddressBusbit21
TIOCA2I/OPWMoutput,ComparematchoutputofReg.AandsignalcaptureinputofTimerCh2
99
PA6I/OGeneralpurposeinputoutputofportAbit6
A20OExternalAddressBusbit20
TIOCB2I/OPWMoutput,ComparematchoutputofReg.BandsignalcaptureinputofTimerCh2
100
PA7I/OGeneralpurposeinputoutputofportAbit7
Table of contents