Fujitsu MB91460 SERIES FR60 Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel Fujitsu MB91460 SERIES FR60. FUJITSU MB91460 SERIES FR60 User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 103
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
FUJITSU SEMICONDUCTOR
CONTROLLER MANUAL
FR60
32-BIT MICROCONTROLLER
MB91460 Series
User’s Manual
Version 1.00
2006-10-22
- PRELIMINARY -
CM71-xxxxx-1E
Vue de la page 0
1 2 3 4 5 6 ... 102 103

Résumé du contenu

Page 1 - - PRELIMINARY

FUJITSU SEMICONDUCTORCONTROLLER MANUALFR6032-BIT MICROCONTROLLERMB91460 SeriesUser’s ManualVersion 1.002006-10-22- PRELIMINARY -CM71-xxxxx-1E

Page 2 - FUJITSU LIMITED

vi4. Register ... 3895. Ope

Page 3

84Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsB15 67 53 P21_5 - SOT1 ^ - TP00_0 U/D CH / A Stop - 4mAC16 66 54 P21_4 - SIN1 ^ - TP00_0

Page 4

984Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM2.Check for Boot ConditionsFlow Chart of checking boot conditions on MB91V460*1) Boot-Security-Vector

Page 5

985Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM2.Check for Boot Conditions2.2 Flash devices of MB91460 series (MB91F46x)After the chip initializati

Page 6

986Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM2.Check for Boot Conditionsthe internal bootloader is entered. Otherwise Boot ROM is left and applica

Page 7

987Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM2.Check for Boot Conditions2.3 Internal Bootloader DescriptionIf a valid boot condition for entering

Page 8

988Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM3.Registers modified by Boot ROM3. Registers modified by Boot ROMThe Boot ROM initializes the chip an

Page 9

989Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM4.Flash Access Mode Switching4. Flash Access Mode SwitchingOn MB91460 series flash devices it is poss

Page 10

990Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM5.Bootloader Update Strategy5. Bootloader Update StrategySome applications require the possibility o

Page 11

991Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM5.Bootloader Update StrategyBy use of this bootloader the application as well as user bootloader 2 ca

Page 12

992Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM5.Bootloader Update Strategy

Page 13

993Chapter 54 Flash Memory1.OverviewChapter 54 Flash MemoryThis chapter describes the use of the built-in flash memory.1. OverviewThe MB91F46x devic

Page 14

85Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsJ4 666 557 P26_0 - SMC1P2 AN24 - TP05_0 - CH / A Stop SMC / AN 30mAH3 667 556 P27_7 - SMC

Page 15

994Chapter 54 Flash Memory3.Configuration3. ConfigurationFigure 3-1 Block Diagram (32bit flash)Figure 3-2 Block Diagram (64bit flash)FLASH memory Con

Page 16

995Chapter 54 Flash Memory3.Configuration3.1 Address conversion from CPU Mode to Flash Programming ModeFlash memory's address mapping is differe

Page 17 - Chapter 1 Introduction

996Chapter 54 Flash Memory4.Registers4. RegistersFor the description of the Flash related registers, refer to Chapter 11 Memory Controller (Page No

Page 18 - 1.How to Handle the Device

997Chapter 54 Flash Memory6.Flash Access Mode Switching6. Flash Access Mode SwitchingOn MB91460 series flash devices it is possible to switch between

Page 19 - 2. Instruction for Users

998Chapter 54 Flash Memory6.Flash Access Mode Switching6.1 Flash Memory ModeResetting after setting the MD2, MD1 and MD0 pins to “1”, “1” and “1” wi

Page 20 - ■ Watchdog timer function

999Chapter 54 Flash Memory7.Auto Algorithms7. Auto AlgorithmsWrites and erases to Flash memory are performed by launching the Flash memory's ow

Page 21 - 2.Instruction for Users

1000Chapter 54 Flash Memory7.Auto Algorithms7.2 Auto Algorithm Commands Read/reset commandIssue a Read/reset command sequence to recover to read m

Page 22 - ■ Operand break

1001Chapter 54 Flash Memory7.Auto Algorithms Chip eraseChip erase (erase all sectors at once) is performed via six accesses. First, there are two “u

Page 23 - 4. How to Use This Document

1002Chapter 54 Flash Memory7.Auto Algorithmshas halted, by entering the address of an erased sector, and monitoring the values read from bits 6 and 7

Page 24

1003Chapter 54 Flash Memory7.Auto Algorithms7.3 Hardware Sequence FlagThis Flash memory performs the write/erase sequence via Auto Algorithms. It th

Page 25 - Reserved

86Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsU2 624 522 P32_5 - SEG29 SOT15 - TP06_0 - CH / A Stop LCD COM/SEG 4mAT3 623 521 P32_4 - S

Page 26 - 4.How to Use This Document

1004Chapter 54 Flash Memory7.Auto Algorithms7.4 FLCR: Hardware Sequence Flag• FLCR: Address. Any address in Flash memory. (Access: Byte or half-wor

Page 27 - 2.2 Instruction Cache

1005Chapter 54 Flash Memory7.Auto Algorithms• bit 4: Undefined:The read value is indeterminate.• bit 3: Sector erase timer (SETIMR)• During sector er

Page 28 - 2.Features

1006Chapter 54 Flash Memory7.Auto Algorithms7.5 Sample Use of Hardware Sequence FlagIt is possible to determine the state of the Flash memory’s inte

Page 29

1007Chapter 54 Flash Memory8.Caution8. Caution• Please review the MBM29LV400TC data sheet in conjunction with this document.• CPU modeWhen in CPU mo

Page 30 - 2.10 Peripheral Function

1008Chapter 54 Flash Memory8.Caution

Page 31

1009Chapter 55 Flash Security1.OverviewChapter 55 Flash Security1. Overview• Module for controlling the read and write access protection to the embe

Page 32

1010Chapter 55 Flash Security3.Flash Security Vectors3. Flash Security Vectors3.1 Vector addressesTwo Flash Security Vectors (FSV1, FSV2) are locat

Page 33

1011Chapter 55 Flash Security3.Flash Security Vectors FSV1 (bits 15 to 0)The setting of the Flash Security Vector FSV1 bits [15:0] is responsible fo

Page 34

1012Chapter 55 Flash Security3.Flash Security Vectors3.3 Security Vector FSV2The setting of the Flash Security Vector FSV2 bits [31:0] is responsibl

Page 35

1013Chapter 55 Flash Security4.Register4. Register4.1 Flash Security Control Register FSCR0: Address 7100h (Access: Byte (write), Word (read))(See

Page 36

87Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsAG1 567 471 ICLK - - - - TE22_0 - C no Tool 8mAAH1 565 469 ICD_3 - - - - TE21_0 - C no To

Page 37 - 4. Block Diagram

1014Chapter 55 Flash Security4.RegisterRemark: The Flash Security Vector Re-Fetch sequence is especially intented to be used after a chip erasecomman

Page 38 - 4.Block Diagram

1015Chapter 55 Flash Security4.Register• Bit31-25: Reserved bit. The read value is always “0”.• Bit24: RDY: CRC32 Sequence Ready• Bit23-20: Reserved

Page 39 - 1. Memory Map

1016Chapter 55 Flash Security4.Register

Page 40 - 2. I/O Map

1017Chapter 56 Electrical SpecificationChapter 56 Electrical SpecificationSee the appropriate data sheet for the electrical specification of each devi

Page 41

1018Chapter 56 Electrical Specification

Page 42 - +0 +1 +2 +3

FR60MB91460 Series Hardware ManualEuropean Microcontroller Design CentreAuthor : MBo

Page 44

CM71-xxxxx-1EFUJITSU SEMICONDUCTOR • CONTROLLER MANUALFR6032-BIT MICROCONTROLLERMB91460 SeriesUser's ManualJan 2005 the zero editionPublished FUJ

Page 46

88Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsAV5 502 417 TDT_56 - - - - TE20_0 - C no Tool 4mAAU7 501 420 TDT_55 - - - - TE20_0 - C no

Page 47

89Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsAR18 439 367 TDT_11 - - - - TE20_0 - C no Tool 4mAAV18 438 366 TDT_10 - - - - TE20_0 - C

Page 48

90Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsAR29 381 316 EEA_0 - - - - TE10_0 - - no Tool 4mAAT29 380 315 EED_31 - - - - TE20_0 - C n

Page 49

91Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsAK37 316 263 FLASH_FRSTX - - - - TE10_0 - - no Tool 4mA0.0 637 531 VDD5 - - - - TS02_0 -

Page 50

92Chapter 3 MB91460 Series Basic Information6.Pin Definitions0.0 659 549 HVDD5 - - - - TS02_0 - - - VDD 5V -B2 686 574 HVSS5 - - - - TS00_0 - - - VSS

Page 51

93Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsAP20 427 355 VSS3 - - - - TS00_0 - - - VSS -AP24 405 337 VSS3 - - - - TS00_0 - - - VSS -A

Page 52

viiChapter 34 CAN Controller... 6911. Overview...

Page 53

94Chapter 3 MB91460 Series Basic Information7.I/O Circuit Type7. I/O Circuit TypeThe table below describes the circuit types which are used on the e

Page 54

95Chapter 3 MB91460 Series Basic Information7.I/O Circuit TypeTE11_0 - - no Tool 8 mATE20_0 - C no Tool 4 mATE21_0 Dn (ctrl) C no Tool 4 mATE22_0 - C

Page 55

96Chapter 3 MB91460 Series Basic Information8.Pin State Table8. Pin State TableExplanation of the meaning of words and phrases used in the pin state

Page 56

97Chapter 3 MB91460 Series Basic Information8.Pin State TableAD35 282 234 P03_7 D7 D7 - -Output Hi-Z,InputenabledOutput Hi-Z,InputenabledState holdOu

Page 57

98Chapter 3 MB91460 Series Basic Information8.Pin State TableJ37 212 175 P08_7 RDY RDY - -Output Hi-Z,InputenabledOutput Hi-Z,InputenabledState holdO

Page 58

99Chapter 3 MB91460 Series Basic Information8.Pin State TableD34 165 137 P12_7 DEOP3 DEOP3 - -Output Hi-Z,InputenabledOutput Hi-Z,InputenabledState h

Page 59

100Chapter 3 MB91460 Series Basic Information8.Pin State TableA25 110 92 P17_7 - PPG7 - -Output Hi-Z,InputenabledOutput Hi-Z,InputenabledState holdOu

Page 60

101Chapter 3 MB91460 Series Basic Information8.Pin State TableA13 58 47 P22_7 - SCL1 - -Output Hi-Z,InputenabledOutput Hi-Z,InputenabledState holdOut

Page 61

102Chapter 3 MB91460 Series Basic Information8.Pin State TableA9 36 29 P24_7 - INT7 - SCL3Output Hi-Z,InputenabledOutput Hi-Z,InputenabledState holdO

Page 62

103Chapter 3 MB91460 Series Basic Information8.Pin State TableB4 5 4 P29_7 - AN7 - -Output Hi-Z,InputenabledOutput Hi-Z,InputenabledState holdOutput:

Page 63

viii2. Features... 7953. Co

Page 64

104Chapter 3 MB91460 Series Basic Information8.Pin State TableW1 607 506 P34_7 - SEG15 - -Output Hi-Z,InputenabledOutput Hi-Z,InputenabledState holdO

Page 65

105Chapter 4 CPU Architecture1.OverviewChapter 4 CPU ArchitectureThis chapter describes the architecture of FR60 family CPU.1. OverviewThe CPUs of t

Page 66

106Chapter 4 CPU Architecture2.Features2. Features Features of internal architecture• RISC architecture• Base instruction: 1 instruction/1 cycle• 3

Page 67

107Chapter 4 CPU Architecture3.CPU3. CPUThe CPU realizes the compact implementation of a 32-bit RISC FR architecture.It employs a 5-stage instructio

Page 68

108Chapter 4 CPU Architecture6.Instruction Overview6. Instruction OverviewThe FR60 family supports logic operation, bit operation and direct address

Page 69

109Chapter 4 CPU Architecture7.Data Structure7. Data StructureFR60 has two data allocations as follows. Bit OrderingFR60 uses little endian as bit

Page 70

110Chapter 4 CPU Architecture8.Word Alignment8. Word AlignmentSince instructions and data are accessed by byte, allocated addresses vary by instruct

Page 71

111Chapter 4 CPU Architecture9.Addressing9. AddressingAddress space is 32-bit linear. MapFigure 9-1 MapFR60’s logical address space is 4GB (232 ad

Page 72

112Chapter 4 CPU Architecture9.Addressing

Page 73

113Chapter 5 CPU Registers1.General-purpose RegistersChapter 5 CPU Registers1. General-purpose RegistersRegisters R0 through R15 are general-purpose

Page 74

ix4. Registers... 9115. Oper

Page 75

114Chapter 5 CPU Registers2.Dedicated Registers2.1 PC: Program CounterProgram Counter (PC) consists of 32 bits.Figure 2-2 Bit Structure of Program

Page 76

115Chapter 5 CPU Registers2.Dedicated RegistersThis bit becomes “0” by reset.• [Bit 3] N: Negative flagThis bit indicates the sign when operation res

Page 77

116Chapter 5 CPU Registers2.Dedicated Registersprogram. ILM: Interrupt Level Mask RegisterFigure 2-6 Register Structure of Interrupt Level Mask Reg

Page 78

117Chapter 5 CPU Registers2.Dedicated Registers Caution: PS RegisterSince some instructions have already processed PS register in advance, the follo

Page 79

118Chapter 5 CPU Registers2.Dedicated Registers2.3 TBR: Table-base RegisterTable-base register (TBR) consists of 32 bits.Figure 2-7 Bit Structure o

Page 80

119Chapter 5 CPU Registers2.Dedicated Registers2.6 USP: User Stack PointerUser Stack Pointer (USP) consists of 32 bits.Figure 2-10 Bit Structure of

Page 81

120Chapter 5 CPU Registers2.Dedicated Registers2.7 MDH, MDL: Multiply & Divide RegisterMultiply & Divide register (MDH/MDL) consists of 32

Page 82

121Chapter 6 EIT: Exceptions, Interrupts and Traps1.OverviewChapter 6 EIT: Exceptions, Interrupts and Traps1. OverviewEIT means that some events int

Page 83

122Chapter 6 EIT: Exceptions, Interrupts and Traps5.EIT Interrupt Level5. EIT Interrupt LevelInterrupt level is between 0 and 31, and controlled wit

Page 84

123Chapter 6 EIT: Exceptions, Interrupts and Traps7.Multiple EIT Processing7. Multiple EIT ProcessingIf multiple EITs are generated at the same time

Page 85

x6. Application Note... 973Chapter 51 L

Page 86

124Chapter 6 EIT: Exceptions, Interrupts and Traps7.Multiple EIT ProcessingFigure 7-1 Multiple EITs ProcessPriority(High) Generation of NMI(Middle)

Page 87

125Chapter 6 EIT: Exceptions, Interrupts and Traps8.Operation8. OperationIn the following sections, note that source “PC” means instruction address

Page 88

126Chapter 6 EIT: Exceptions, Interrupts and Traps8.Operation8.2 Operation of INT InstructionINT No. u8 instruction is operated as follows.Branches

Page 89 - 3. Interrupt Vector Table

127Chapter 6 EIT: Exceptions, Interrupts and Traps8.Operation8.4 Operation of Step Trace TrapIf you set T flag at SCR within PS and enable step trac

Page 90

128Chapter 6 EIT: Exceptions, Interrupts and Traps9.Caution8.6 Coprocessor Absent TrapIf you execute coprocessor instruction for unmounted coprocess

Page 91

129Chapter 7 Branch Instruction1.Branch Instruction with Delay SlotChapter 7 Branch InstructionFR60 can instruct the operation with and without delay

Page 92

130Chapter 7 Branch Instruction3.Actual Example (with Delay Slot)3. Actual Example (with Delay Slot)3.1 JMP:D @Ri / CALL:D @Ri InstructionRi referr

Page 93

131Chapter 7 Branch Instruction4.Restrictions on Branch Instruction with Delay Slot4. Restrictions on Branch Instruction with Delay Slot4.1 Availab

Page 94 - 4. Package

132Chapter 7 Branch Instruction5.Branch Instruction without Delay Slot5. Branch Instruction without Delay Slot• Branch instruction without delay slo

Page 95 - 5. Pin Assignment Diagram

133Chapter 8 Device State Transition1.OverviewChapter 8 Device State Transition1. Overview MB91460 basically has devices state and flow as shown be

Page 97

134Chapter 8 Device State Transition3.State Transition Diagram3. State Transition DiagramThis section describes state transition.Figure 3-1 State T

Page 98

135Chapter 8 Device State Transition3.State Transition Diagram3.1 RUN (Normal Operation)This is the state where program is executed with all clocks

Page 99

136Chapter 8 Device State Transition3.State Transition Diagram3.5 Oscillation-stabilization-wait ResetThis is the state where the device is stopped.

Page 100 - 6.Pin Definitions

137Chapter 8 Device State Transition3.State Transition Diagram

Page 101

138Chapter 8 Device State Transition3.State Transition Diagram

Page 102

139Chapter 9 Reset1.OverviewChapter 9 Reset1. OverviewWhen a reset is triggered, the device halts the program and all hardware operation, and then i

Page 103

140Chapter 9 Reset3.Configuration• A settings initialization reset (INIT) is followed by an operation reset (RST) after the oscillationstabilization t

Page 104

141Chapter 9 Reset4.Registers4. Registers4.1 RSRR: Reset Cause RegisterStores the cause of the previous reset, and sets the period and activation c

Page 105

142Chapter 9 Reset4.RegistersIndicates whether a software reset has been triggered by writing to the software reset bit (STCR.SRST).The software rese

Page 106

143Chapter 9 Reset4.Registers4.2 STCR: Standby Control RegisterThis register is used for software reset control (changing to standby mode, pin contr

Page 108

144Chapter 9 Reset4.Registers4.3 MOD: Mode PinsThese pins specify the location of the mode vector and reset vector that are read after the MCU isres

Page 109

145Chapter 9 Reset4.RegistersInitial value to load into PC.4.6 Device Mode OverviewThe following table gives an overview about supported device mode

Page 110 - 7. I/O Circuit Type

146Chapter 9 Reset5.INIT Pin Input (INIT: Settings Initialization Reset)5. INIT Pin Input (INIT: Settings Initialization Reset)5.1 TriggerThe pin i

Page 111

147Chapter 9 Reset5.INIT Pin Input (INIT: Settings Initialization Reset)5.6 Reset Cancellation SequenceAfter the cancellation (removal) of the setti

Page 112 - 8. Pin State Table

148Chapter 9 Reset6.Watchdog Reset (INIT: Settings Initialization Reset)6. Watchdog Reset (INIT: Settings Initialization Reset)6.1 TriggerWriting t

Page 113 - 8.Pin State Table

149Chapter 9 Reset7.Software Reset (RST: Operation Initialization Reset)7. Software Reset (RST: Operation Initialization Reset)7.1 TriggerWriting

Page 114

150Chapter 9 Reset8.Reset Operation Modes8. Reset Operation ModesThe following two different modes can be used for an operation reset (RST):• Normal

Page 115

151Chapter 9 Reset9.MCU Operation Mode9. MCU Operation ModeAfter release of a reset, the MCU starts operation in the mode specified by the mode pins

Page 116

152Chapter 9 Reset10.Caution10. Caution• INIT pin inputEnsure that a settings initialization reset (INIT) is applied to this pin when the power is t

Page 117

153Chapter 9 Reset10.Caution

Page 118

1Chapter 1 Introduction1.How to Handle the DeviceChapter 1 Introduction1. How to Handle the Device Device Handling InstructionsThis chapter describ

Page 119

154Chapter 9 Reset10.Caution

Page 120

155Chapter 10 Standby1.OverviewChapter 10 Standby1. OverviewTwo standby modes (low power consumption modes) are available.• Sleep mode: Stops the

Page 121 - Chapter 4 CPU Architecture

156Chapter 10 Standby3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 Register ListState transition control circuitSleep si

Page 122 - 2. Features

157Chapter 10 Standby4.Registers4. Registers4.1 STCR: Standby Control RegisterUsed to control transition to the stop and sleep standby modes, and t

Page 123 - Chapter 4 CPU Architecture

158Chapter 10 Standby4.Registers• Bit0: Main clock oscillation halt4.2 TBCR: Timebase timer control registerThis register controls the timebase timer

Page 124 - 6. Instruction Overview

159Chapter 10 Standby5.Operation5. Operation5.1 Sleep Mode Entering sleep modeWriting “1” to the sleep mode bit (STCR.SLEEP) changes to sleep mode

Page 125 - 7. Data Structure

160Chapter 10 Standby5.Operation5.2 Stop mode Entering stop modeWriting “1” to the stop mode bit (STCR.STOP) changes to stop mode.The device remain

Page 126 - 8. Word Alignment

161Chapter 10 Standby6.Settings6. Settings *:For the setting procedure, refer to the section indicated by the number.*: For the setting procedure, r

Page 127 - 9. Addressing

162Chapter 10 Standby7.Q&A7.2 How do I change to stop mode?• When operating on the main PLL clock, the operating clock must be set to the main c

Page 128 - 9.Addressing

163Chapter 10 Standby7.Q&A7.6 How do I recover from stop mode?The following events end stop mode:• The following four interrupts change the devi

Page 129 - Chapter 5 CPU Registers

2Chapter 1 Introduction1.How to Handle the Device● Caution: during the PLL clock operationEven if oscillator is disconnected or input is stopped whil

Page 130 - 2.1 PC: Program Counter

164Chapter 10 Standby7.Q&A

Page 131 - D1 D0 T XX0

165Chapter 10 Standby8.Caution8. Caution• Points to note when changing to sleep modeWhen changing to sleep mode, set the synchronous standby operati

Page 132 - ILM3 ILM2 ILM1 ILM0

166Chapter 10 Standby8.Caution

Page 133 - ■ Caution: PS Register

167Chapter 11 Memory Controller1.OverviewChapter 11 Memory Controller1. OverviewThis module combines the interfaces to the F-Bus memory resources, F

Page 134 - 2.4 RP: Return Pointer

168Chapter 11 Memory Controller7.Registers• Reset vector address: 0x000ffffc; return 0x00030000 at RAM execution mode (jump to test pro-gram) or retu

Page 135 - 2.6 USP: User Stack Pointer

169Chapter 11 Memory Controller8.Explanations of Registers8. Explanations of Registers● FLASH Interface Control RegisterFLASH Memory Control and Sta

Page 136 - ■ At the executing division

170Chapter 11 Memory Controller8.Explanations of Registers• BIT[29]: BIRE - Burn-In ROM EnableThe BIRE bit is a reserved bit and should not be used.•

Page 137 - 4. Return from EIT

171Chapter 11 Memory Controller8.Explanations of RegistersImportant remark: To maintain data consistency it is strongly recommended to disable the in

Page 138 - 6. EIT Vector Table

172Chapter 11 Memory Controller8.Explanations of Registers• BIT[17]: PF2I - Prefetch 32 bit (2 instructions) onlyWhen switching on 64 bit read mode

Page 139 - 7. Multiple EIT Processing

173Chapter 11 Memory Controller8.Explanations of Registers• BIT[7]: FLUSH - Flush instruction cache entriesThis bit is set after reset.If the FLUSH b

Page 140 - 7.Multiple EIT Processing

3Chapter 1 Introduction2.Instruction for Users2. Instruction for Users Clock ControlsBy inputting “L” to INIT, ensure clock oscillation stabilizati

Page 141 - 8.1 User Interrupt operation

174Chapter 11 Memory Controller8.Explanations of Registers• BIT[4]: PFMC - Prefetch Miss Cache enableThis bit is cleared after reset. The prefetch mi

Page 142 - ■ Operation

175Chapter 11 Memory Controller8.Explanations of Registers• BIT[1:0]: SZ[1:0] - Cache size configurationThe cache size is set to ’11’ after reset.The

Page 143

176Chapter 11 Memory Controller8.Explanations of RegistersWTP controls the wait timing of the FLASH access in case of page hit for Page Mode FLASH. T

Page 144 - 9. Caution

177Chapter 11 Memory Controller8.Explanations of RegistersFLASH access cycle waveformFigure 8-1 shows the example of a FLASH access cycle. In the FMW

Page 145 - Chapter 7 Branch Instruction

178Chapter 11 Memory Controller8.Explanations of Registers● FLASH Memory Adddress Check register (FMAC)This register captures the address at the begi

Page 146 - 3.4 CALL:D Instruction

179Chapter 12 Instruction Cache1.General descriptionChapter 12 Instruction CacheThis chapter describes the instruction cache memory included in MB914

Page 147 - 4.3 Interrupt

180Chapter 12 Instruction Cache2.Main body structureFigure 2-2 Instruction Cache Tag[Bits 31 to 9] Address tagThis area stores the upper 23 bits of

Page 148

181Chapter 12 Instruction Cache2.Main body structureFLUSHbit is set to "0" when the cache is flushed.)[Bit 1] LRU bit (way 1 only)This bit

Page 149

182Chapter 12 Instruction Cache2.Main body structure[Bit 7] RAM: RAM ModeSetting this bit to "1" causes the cache to operate in RAM mode. B

Page 150 - 3. State Transition Diagram

183Chapter 12 Instruction Cache2.Main body structureFigure 2-3 I-Cache Address Map

Page 151 - 3.3 STOP

FUJITSU LIMITED

Page 152

4Chapter 1 Introduction2.Instruction for Users Caution: PS registerBecause some commands previously proceed PS register, interrupt processing routin

Page 153 - 3.State Transition Diagram

184Chapter 12 Instruction Cache2.Main body structureFigure 2-4 I-Cacheable Area

Page 154

185Chapter 12 Instruction Cache3.Operating mode conditions3. Operating mode conditions● Cache status in various operating modesThe table below indic

Page 155 - Chapter 9 Reset

186Chapter 12 Instruction Cache4.Cacheable areas in the instruction cache● Cache Entry UpdateCache entries are updated as shown in the following tabl

Page 156

187Chapter 12 Instruction Cache5.Settings for handling the I-CacheTo disable the I-Cache, set the ENAB bit to 0.Idi #0x000003e7,r0 // I-Cache control

Page 157

188Chapter 12 Instruction Cache5.Settings for handling the I-CacheOnly lock information is released; locked instructions are replaced sequentially wi

Page 158

189Chapter 13 Clock Control1.OverviewChapter 13 Clock Control1. OverviewThe clock control circuit consists of the source oscillator, base clock gene

Page 159

190Chapter 13 Clock Control3.Configuration• External bus clock (CLKT): F/1, /2, /3, /4, /5, /6, /7, /8, ..., /16The clock used by the external bus exp

Page 160 - 4.5 Reset Vector

191Chapter 13 Clock Control4.Registers4. Registers4.1 CLKR: Clock Source Control RegisterSelects the clock source for the base clock used to run th

Page 161 - 4.6 Device Mode Overview

192Chapter 13 Clock Control4.Registers• After setting “11B” (subclock), insert one or more NOP instructions.• Selecting the subclock as the clock sou

Page 162 - Chapter 9 Reset

193Chapter 13 Clock Control4.Registers4.2 DIV0R: Clock Division Setting Register 0Sets the division ratio for the clocks used for internal device op

Page 163

5Chapter 1 Introduction2.Instruction for Users Caution: writing to registers which include a status flagWriting to a register including a status fla

Page 164

194Chapter 13 Clock Control4.Registers• Sets the clock division ratio for the clock used by the peripheral circuits and peripheral bus (CLKP).The 16

Page 165

195Chapter 13 Clock Control4.Registers4.3 DIV1R: Clock Division Setting Register 1Sets the division ratio for the clocks used for internal device op

Page 166 - 8. Reset Operation Modes

196Chapter 13 Clock Control4.Registers4.4 CSCFG: Clock Source Configuration RegisterThis register controls the main clock oscillation in subclock mod

Page 167 - 9. MCU Operation Mode

197Chapter 13 Clock Control4.Registers-1-- Subclock Calibration is sourced by RC Oscillation0--- LCD Controller is sourced by Sub Oscillation1--- LCD

Page 168 - 10. Caution

198Chapter 13 Clock Control4.Registers4.5 OSCCR: Oscillation Control RegisterThis register controls the main clock oscillation in subclock mode• OSC

Page 169 - 10.Caution

199Chapter 13 Clock Control5.Operation5. OperationThis section describes how to setup and switch between clocks.5.1 Clock Setup Sequence (Example)5

Page 170

200Chapter 13 Clock Control5.Operation5.3 Notes Main PLL controlAfter initialization, the main PLL oscillation is halted. While halted, the output

Page 171 - Chapter 10 Standby

201Chapter 13 Clock Control6.Settings6. Settings*: For the setting procedure, refer to the section indicated by the number.*: For the setting proced

Page 172

202Chapter 13 Clock Control7.Q & A7. Q & A7.1 How do I enable or disable clock operation?• There is no operation enable bit for the main cl

Page 173

203Chapter 13 Clock Control7.Q & A7.4 How do I set the operation clock division ratios?• CPU clock settingThe CPU clock setting is set using the

Page 174

6Chapter 1 Introduction3.Caution: debug-related matters3. Caution: debug-related matters Stepwise execution of RETI commandUnder the circumstances

Page 175 - 5.1 Sleep Mode

204Chapter 13 Clock Control7.Q & A7.5 How do I halt the main clock in sub clock mode?Set using the “halt main clock oscillation in subclock mode

Page 176 - 5.2 Stop mode

205Chapter 13 Clock Control8.Caution8. Caution• Operation is not guaranteed if the clock source selection, main PLL multiplier setting, and division

Page 177 - 7. Q&A

206Chapter 13 Clock Control8.Caution

Page 178

207Chapter 14 PLL Interface1.OverviewChapter 14 PLL Interface1. Overview• This blockdiagram (simplified) shows the integration of the PLL and the PL

Page 179 - Chapter 10 Standby

208Chapter 14 PLL Interface4.Registers4. Registers4.1 PLL Control RegistersControls the PLL multiplier ratio (divide-by-M and divide-by-N) and the

Page 180

209Chapter 14 PLL Interface4.Registers(See “Meaning of Bit Attribute Symbols (Page No.10)” for details of the attributes.)• Bit7-6: Reserved bits.The

Page 181

210Chapter 14 PLL Interface4.Registers• PLLMULG: Address 048Fh (Access: Byte, Halfword, Word)(See “Meaning of Bit Attribute Symbols (Page No.10)” for

Page 182

211Chapter 14 PLL Interface4.Registers• While switching from clock source PLL to clock source oscillator this flag is set when the divide-by-Gcounter

Page 183 - Chapter 11 Memory Controller

212Chapter 14 PLL Interface5.Recommended Settings5. Recommended Settings• Important remark: Not all settings which are shown in this table are availa

Page 184 - 7. Registers

213Chapter 14 PLL Interface6.Clock Auto Gear Up/Down6. Clock Auto Gear Up/DownTo avoid voltage drops and surges when switching the clock source from

Page 185 - 8. Explanations of Registers

7Chapter 1 Introduction4.How to Use This Document4. How to Use This Document Main terminology: This table shows main terminology used for FR60.Term

Page 186 - 8.Explanations of Registers

214Chapter 14 PLL Interface6.Clock Auto Gear Up/Downthis equals to (resolved closed arithmetic series of the first sum term):with i = G ; j = G - M ;

Page 187

215Chapter 14 PLL Interface7.Caution7. CautionWhen using the clock auto-gear function it is strongly recommended to make use of the gear up and gear

Page 188

216Chapter 14 PLL Interface7.Caution

Page 189

217Chapter 15 CAN Clock Prescaler1.OverviewChapter 15 CAN Clock Prescaler1. Overview• This blockdiagram (simplified) shows the integration of the CA

Page 190

218Chapter 15 CAN Clock Prescaler3.Registers3. Registers3.1 CAN Clock Control RegisterControls the CAN clock source, the clock division ratio and t

Page 191

219Chapter 15 CAN Clock Prescaler3.Registers(See “Meaning of Bit Attribute Symbols (Page No.10)” for details of the attributes.)• Bit7-6: Reserved bi

Page 192

220Chapter 15 CAN Clock Prescaler3.Registers

Page 193

221Chapter 16 Clock Supervisor1.Overview Clock SupervisorChapter 16 Clock SupervisorThis section gives an overview of the Clock Supervisor. Purpose o

Page 194

222Chapter 16 Clock Supervisor2.Clock Supervisor Register2. Clock Supervisor RegisterThis section lists the Clock Supervisor Control Register and de

Page 195 - Chapter 12 Instruction Cache

223Chapter 16 Clock Supervisor2.Clock Supervisor RegisterTable 2-1 describes the function of each bit of the Clock Supervisor Control Register (CSVCR

Page 196 - 2.Main body structure

8Chapter 1 Introduction4.How to Use This Document Access size and address positionThere are three kinds of accesses such as Byte access, Half-word

Page 197 - ● Control register structure

224Chapter 16 Clock Supervisor3.Block Diagram Clock Supervisor3. Block Diagram Clock SupervisorThis section presents a block diagram of the Clock Su

Page 198

225Chapter 16 Clock Supervisor4.Operation Modes4. Operation ModesThis section describes all operation modes of the Clock Supervisor. Operation mode

Page 199

226Chapter 16 Clock Supervisor4.Operation ModesFigure 4-1 Timing Diagram: Initial settings, main clock missing during power-on resetPONRMCLKSCLKRC_C

Page 200 - Figure 2-4 I-Cacheable Area

227Chapter 16 Clock Supervisor4.Operation ModesFigure 4-2 Timing Diagram: Initial settings, main clock missing during ’oscillation stabilisation wai

Page 201 - 3. Operating mode conditions

228Chapter 16 Clock Supervisor4.Operation ModesFigure 4-3 Timing Diagram: Initial settings, main clock missing after ’oscillation stabilisation wait

Page 202 - ● Cache Entry Update

229Chapter 16 Clock Supervisor4.Operation ModesFigure 4-4 Timing Diagram: Initial settings, sub-clock missing before timeoutPONRMCLKSCLKRC_CLKOSC_ST

Page 203

230Chapter 16 Clock Supervisor4.Operation ModesFigure 4-5 Timing Diagram: Initial settings, sub-clock missing after timeoutPONRMCLKSCLKRC_CLKOSC_STA

Page 204

231Chapter 16 Clock Supervisor4.Operation Modes Disabling the RC-oscillator and the clock supervisorsThe initial point of this scenario is that the

Page 205 - Chapter 13 Clock Control

232Chapter 16 Clock Supervisor4.Operation Modes Re-enabling the RC-oscillator and the clock supervisorsThe initial point of this scenario is that th

Page 206 - Chapter 13 Clock Control

233Chapter 16 Clock Supervisor4.Operation Modes Sub-clock modesThe main clock supervisor is automatically disabled in sub-clock modes. The enable bi

Page 207

9Chapter 1 Introduction4.How to Use This Document About access size and bit positionWhen access size changes, bit position changes.• In the case tha

Page 208

234Chapter 16 Clock Supervisor4.Operation ModesFigure 4-9 Timing Diagram: Sub-clock missing in main clock mode, SRST=1PONRMCLKSCLKRC_CLKOSC_STABMSVE

Page 209 - watchdog reset

235Chapter 16 Clock Supervisor4.Operation ModesFigure 4-10 Timing Diagram: Waking up from sub-clock modePONRMCLKSCLKRC_CLKOSC_STABMSVEMSENSSVESSENMC

Page 210

236Chapter 16 Clock Supervisor4.Operation Modes Stop modeIf RC-oscillator, main clock and sub-clock supervisors are enabled, they will be automatica

Page 211

237Chapter 16 Clock Supervisor4.Operation Modes Operation with single clock deviceIn a single clock device the sub-clock supervisor can provide the

Page 212

238Chapter 16 Clock Supervisor4.Operation Modes Check if reset was asserted by the Clock SupervisorTo find out whether the Clock Supervisor has asse

Page 213 - 4.Registers

239Chapter 17 Clock Modulator1.OverviewChapter 17 Clock ModulatorThis chapter provides an overview of the Clock Modulator and its features. It descri

Page 214

240Chapter 17 Clock Modulator2.Clock Modulator Registers2. Clock Modulator RegistersThis section lists the clock modulator registers and describes t

Page 215 - 5.Operation

241Chapter 17 Clock Modulator2.Clock Modulator Registers● Clock Modulator Control Register (CMCR)The Control Register (CMCR) has the following functi

Page 216 - 5.3 Notes

242Chapter 17 Clock Modulator2.Clock Modulator Registers● Clock modulator control register contentsTable 2-1 Function of each bit of the clock modul

Page 217

243Chapter 17 Clock Modulator2.Clock Modulator RegistersIn the Table below the modulator states are summarized:bit 1 FMOD:Frequencymodulationenable b

Page 218 - 7. Q & A

10Chapter 1 Introduction4.How to Use This Document Meaning of Bit Attribute Symbols R : Readable W : Writable RM : Reading operation during read/

Page 219 - • Peripheral clock setting

244Chapter 17 Clock Modulator2.Clock Modulator Registers● Clock Modulation Parameter Register (CMPR)The Modulation Parameter Register (CMPR) determin

Page 220

245Chapter 17 Clock Modulator2.Clock Modulator Registersbit 13 to 0 MP13 to 0:ModulationParameter bitsDepending on the PLL frequency the following mo

Page 221

246Chapter 17 Clock Modulator2.Clock Modulator RegistersNote: NOT ALL SETTINGS ARE ALLOWED ON EVERY DEVICE!Please consider the actual maximal allowed

Page 222

247Chapter 17 Clock Modulator3.Application NoteThe table below shows the recommended setting for several MCU clocks and modulation parameters:Please

Page 223 - Chapter 14 PLL Interface

248Chapter 17 Clock Modulator3.Application Noterecommended.● Recommended settingsThe following table lists some example conditions for PLL clock and

Page 224 - 4.1 PLL Control Registers

249Chapter 18 Timebase Counter1.OverviewChapter 18 Timebase Counter1. OverviewThe timebase counter is a 26-bit up-counter that counts the subclock o

Page 225

250Chapter 18 Timebase Counter3.Configuration Events that invoke an oscillation stabilization wait using other than the timebase counter● Wait time a

Page 226

251Chapter 18 Timebase Counter4.Registers4. Registers4.1 STCR: Standby Control RegisterControls transition to standby modes, pin states during stop

Page 227

252Chapter 18 Timebase Counter4.Registers4.2 CLKR: Clock Source Control RegisterSelects the clock source for the base clock used to run the MCU and

Page 228 - 5. Recommended Settings

253Chapter 18 Timebase Counter5.Operation5. OperationThis section describes the events that trigger an oscillation stabilization wait and the operat

Page 229

11Chapter 2 MB91460 Rev.A/Rev.B Overview1.OverviewChapter 2 MB91460 Rev.A/Rev.B Overview1. OverviewMB91460 is a series of standard microcontrollers

Page 230 - 6.Clock Auto Gear Up/Down

254Chapter 18 Timebase Counter5.Operation5.2 Watchdog Reset (The specified oscillation stabilization wait time is generatedautomatically)If a watchdo

Page 231 - 7. Caution

255Chapter 18 Timebase Counter5.Operation Watchdog reset when main clock operatingAlthough no oscillation stabilization wait is required in this cas

Page 232 - 7.Caution

256Chapter 18 Timebase Counter5.Operation When changing to stop mode without halting the clock oscillation circuit (main PLL/main/sub):Although no o

Page 233

257Chapter 18 Timebase Counter5.Operation5.7 Types of Oscillation Stabilization Wait Timebase counterAutomatically provides a count for the oscilla

Page 234 - 3. Registers

258Chapter 18 Timebase Counter5.Operation5.8 Whether or not a Stabilization Wait is Required for Each State TransitionSee figure below.

Page 235 - • Bit5-0: CAN clock disable

259Chapter 18 Timebase Counter6.Settings6. Settings*: For the setting procedure, refer to the section indicated by the number.• Settings required to

Page 236 - 3.Registers

260Chapter 18 Timebase Counter7.Q&A7. Q&A7.1 How do I setup the oscillation stabilization wait time that is generated automatically?Use the

Page 237 - Chapter 16 Clock Supervisor

261Chapter 18 Timebase Counter7.Q&A7.2 How do I set the oscillation stabilization wait time without generating itautomatically?The settings desc

Page 238 - 2. Clock Supervisor Register

262Chapter 18 Timebase Counter8.Caution8. Caution• Clock sourceIf the clock selected as the clock source is not stable, an oscillation stabilization

Page 239 - 2.Clock Supervisor Register

263Chapter 19 Timebase Timer1.OverviewChapter 19 Timebase Timer1. OverviewThe timebase timer is a selector that uses the output from a 26-bit timeba

Page 240 - Clock Supervisor

12Chapter 2 MB91460 Rev.A/Rev.B Overview2.Features• 4 words (16 bytes) per set• Variable capacity (4/2/1 kB)• Lock function enabling programs to be r

Page 241 - 4. Operation Modes

264Chapter 19 Timebase Timer3.Configuration3. ConfigurationFigure 3-1 ConfigurationFigure 3-2 List of Registers10TimebaseTimer interrupt(#46)Timebas

Page 242 - 4.Operation Modes

265Chapter 19 Timebase Timer4.Register4. Register4.1 TBCR: Timebase Timer Control RegisterThis register is used to set timebase timer interrupt co

Page 243

266Chapter 19 Timebase Timer4.Register• Bit1: Enabling the synchronous reset operation• Ordinary operation reset: Immediately resets the operation in

Page 244

267Chapter 19 Timebase Timer5.Operation5. OperationTimebase timer operation is described.5.1 Timebase Timer Interrupt Example (Main PLL Lock Wait)(

Page 245

268Chapter 19 Timebase Timer6.Setting6. Setting*: Refer to the number for more information on the setting method.*: Refer to the number for more inf

Page 246

269Chapter 19 Timebase Timer7.Q & A7. Q & A7.1 What are the types of interval time used in the timebase timer (and the timebasecounter used

Page 247

270Chapter 19 Timebase Timer7.Q & A7.7 What are the interrupt types?One type of interrupt is available, and an interrupt is generated when the

Page 248

271Chapter 19 Timebase Timer8.Caution8. Caution• The main PLL needs the PLL lock wait time after operation enable and after modifying the rate of mu

Page 249 - Main Sub

272Chapter 19 Timebase Timer8.Caution

Page 250 - Main Main

273Chapter 20 Software Watchdog Timer1.OverviewChapter 20 Software Watchdog Timer1. OverviewThe software watchdog timer consists of a selector that

Page 251 - Main Sub Main

13Chapter 2 MB91460 Rev.A/Rev.B Overview2.Features• 3 types of transfer sources (external pins/internal peripherals/and software)• Up to 128 selectab

Page 252 - Main Stop Main

274Chapter 20 Software Watchdog Timer3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 List of RegistersTimebase counterBase

Page 253

275Chapter 20 Software Watchdog Timer4.Register4. Register4.1 RSRR: Watchdog Timer Control RegisterThis register is used to set watchdog timer peri

Page 254

276Chapter 20 Software Watchdog Timer4.RegisterThe software reset occurred flag (SRST) is cleared to “0” after reading.• Bit2: Low voltage reset occu

Page 255 - Chapter 17 Clock Modulator

277Chapter 20 Software Watchdog Timer4.Register4.2 WPR: Watchdog Reset Generation Postponement RegisterThis register is used to postpone the generat

Page 256 - 2. Clock Modulator Registers

278Chapter 20 Software Watchdog Timer5.Operation5. Operation This section describes the watchdog operation.5.1 Watchdog (Detecting Runaway)(1) Sett

Page 257 - 2.Clock Modulator Registers

279Chapter 20 Software Watchdog Timer5.Operation5.2 Starting the Watchdog Timer and Setting the Watchdog Timer PeriodThe watchdog timer starts once

Page 258

280Chapter 20 Software Watchdog Timer6.Setting6. Setting*: Refer to the number for more information on the setting method.*: Refer to the number for

Page 259

281Chapter 20 Software Watchdog Timer7.Q & A7. Q & A7.1 What are the types of watchdog interval time and how are they selected?There are f

Page 260 - CMPRH (upper)

282Chapter 20 Software Watchdog Timer8.Caution8. Caution• Although the watchdog interval time corresponds to the one twice as long as the watchdog 1

Page 261

283Chapter 21 Hardware Watchdog Timer1.OverviewChapter 21 Hardware Watchdog Timer1. OverviewThe hardware watchdog timer (R/C oscillation based) prov

Page 262

FR6032-BIT MICROCONTROLLERMB91460 SeriesUser’s Manual

Page 263 - 3. Application Note

14Chapter 2 MB91460 Rev.A/Rev.B Overview2.Features2.10 Peripheral Function• General-purpose port : Up to 288• N channel open drain port out of above

Page 264 - ● Recommended settings

284Chapter 21 Hardware Watchdog Timer2.Configuration2. ConfigurationHardware watchdog timer consists of two sub-blocks:• Watchdog timer• Timer contro

Page 265 - Chapter 18 Timebase Counter

285Chapter 21 Hardware Watchdog Timer3.Register3. Register3.1 Hardware watchdog timer control and status registerHardware watchdog timer control st

Page 266

286Chapter 21 Hardware Watchdog Timer3.Register3.2 Hardware watchdog timer duration registerHardware watchdog timer duration register (elongation of

Page 267

287Chapter 21 Hardware Watchdog Timer4.Functions4. FunctionsIf the watchdog timer is not cleared periodically, a setting initialization reset (INIT)

Page 268

288Chapter 21 Hardware Watchdog Timer5.Caution5. Caution● Software disabling is not possibleThe watchdog timer starts counting immediately after res

Page 269 - 5.1 INIT Pin Input

289Chapter 22 Main Oscillation Stabilisation Timer1.OverviewChapter 22 Main Oscillation Stabilisation Timer1. OverviewThe main clock oscillation sta

Page 270

290Chapter 22 Main Oscillation Stabilisation Timer3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 List of RegistersNote: R

Page 271 - (STCR.OSCD[2:1]=“11”):

291Chapter 22 Main Oscillation Stabilisation Timer4.Register4. Register4.1 OSCRH: Control Register for the Main Clock Oscillation Stability Wait T

Page 272 - Main Clock Mode

292Chapter 22 Main Oscillation Stabilisation Timer5.Operation5. Operation This section describes the main clock oscillation stability wait timer ope

Page 273 - ■ Timebase timer

293Chapter 22 Main Oscillation Stabilisation Timer5.Operation5.2 Interval Interrupt(1) Selects the interval time (WS[1:0]). (In this example, 217/F

Page 274 - See figure below

15Chapter 2 MB91460 Rev.A/Rev.B Overview2.Features• 16-bit reload counter• Includes clock prescaler (fRES/21, fRES/23, fRES/25, fRES/26, fRES/27)• Fr

Page 275

294Chapter 22 Main Oscillation Stabilisation Timer6.Setting6. Setting*: Refer to the number for more information on the setting method.*: Refer to t

Page 276

295Chapter 22 Main Oscillation Stabilisation Timer7.Q & A7. Q & A7.1 What are the types of interval time (wait time) and how are they selec

Page 277

296Chapter 22 Main Oscillation Stabilisation Timer7.Q & A7.6 What are the types of interrupt?There is one type of interrupt called the main cloc

Page 278

297Chapter 22 Main Oscillation Stabilisation Timer8.Caution8. Caution• To wait until the main clock oscillation stability is attained while the subc

Page 279 - Chapter 19 Timebase Timer

298Chapter 22 Main Oscillation Stabilisation Timer8.Caution

Page 280

299Chapter 23 Sub Oscillation Stabilisation Timer1.OverviewChapter 23 Sub Oscillation Stabilisation Timer1. OverviewThe sub oscillation stabilisatio

Page 281

300Chapter 23 Sub Oscillation Stabilisation Timer3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 List of RegistersNote: Fo

Page 282

301Chapter 23 Sub Oscillation Stabilisation Timer4.Register4. Register4.1 WPCRH: Sub oscillation stabilisation timer Control RegisterThis register

Page 283

302Chapter 23 Sub Oscillation Stabilisation Timer4.Register watchdog reset), but the operation initialization reset (Software reset) holds the cu

Page 284 - 6. Setting

303Chapter 23 Sub Oscillation Stabilisation Timer5.Operation5. Operation5.1 Subclock Oscillation Stability Wait InterruptFigure 5-1 Reference(1) S

Page 285

16Chapter 2 MB91460 Rev.A/Rev.B Overview2.Features• LIN-USART (LIN=Local Interconnect Network) : 16 channels• Full-duplex double buffer system (4 ch

Page 286

304Chapter 23 Sub Oscillation Stabilisation Timer5.Operation5.2 Interval Interrupt (Clock Interrupt)(1) Selects the interval time. (WS[1:0]) (In thi

Page 287

305Chapter 23 Sub Oscillation Stabilisation Timer5.Operation5.3 Returning from the Stop Mode due to Interval Operation (Clock Interrupt)(1) The sub

Page 288 - Chapter 19 Timebase Timer

306Chapter 23 Sub Oscillation Stabilisation Timer6.Setting6. Setting*: Refer to the number for more information on the setting method.*: Refer to th

Page 289 - ■ Watchdog timer

307Chapter 23 Sub Oscillation Stabilisation Timer7.Q & A7. Q & A7.1 What are the types of interval time (wait time) and how are they selec

Page 290

308Chapter 23 Sub Oscillation Stabilisation Timer7.Q & A7.6 How is the interrupt enabled?The interrupt request enable and the interrupt request

Page 291

309Chapter 23 Sub Oscillation Stabilisation Timer8.Caution8. Caution• If the setting request (WIF=“1”) of the timer interrupt request flag and the w

Page 292

310Chapter 23 Sub Oscillation Stabilisation Timer8.Caution

Page 293

311Chapter 24 Interrupt Control1.OverviewChapter 24 Interrupt Control1. OverviewInterrupt control manages interrupt reception and arbitration.2. Fe

Page 294

312Chapter 24 Interrupt Control3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 Configuration DiagramInterrupt priority judg

Page 295

313Chapter 24 Interrupt Control4.Registers4. Registers4.1 ICR: Interrupt Control RegisterThe register that specifies the interrupt level of an inte

Page 296

17Chapter 2 MB91460 Rev.A/Rev.B Overview2.Featuresthe range of 1 to 1.5 cycles of the resource clock (CLKP)• PFM (pulse frequency modulator) : 16 bit

Page 297

314Chapter 24 Interrupt Control4.RegistersICR29#74 I2C 0 / I2C 2: Address 045DH(Access: Byte)#75 I2C 1 / I2C 3ICR30#76 USART (LIN) 8 RX: Address 045E

Page 298

315Chapter 24 Interrupt Control4.Registers(*1) : Used by REALOS(*2): ICR23 and ICR47 can be exchanged by setting the REALOS compatibility bit (addr 0

Page 299

316Chapter 24 Interrupt Control4.RegistersICR (Interrupt Control Register) is a register in the interrupt controller, and it specifies the interrupt

Page 300 - 2. Configuration

317Chapter 24 Interrupt Control4.Registers4.2 Interrupt VectorInterrupt vector that corresponds to a vector number (#) with TBR register set to 0FFC

Page 301 - 3. Register

318Chapter 24 Interrupt Control5.Operation5. OperationThe following section explains priority determination operation of interrupt control. Priorit

Page 302

319Chapter 24 Interrupt Control6.Setting6. Setting*: For the setting procedure, refer to the section indicated by the number.7. Q & A7.1 How c

Page 303 - 4. Functions

320Chapter 24 Interrupt Control8.Caution7.4 How can I set an I flag?8. CautionInterrupt request flags are not cleared automatically. Make sure to cl

Page 304 - 5. Caution

321Chapter 25 External Interrupt1.OverviewChapter 25 External Interrupt1. OverviewExternal interrupt detects a signal input to an external interrupt

Page 305 - 1.Overview

322Chapter 25 External Interrupt3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramExternal interrupts 0 - 7LB0, LA0 LB1, LA1 LB2, LA

Page 306

323Chapter 25 External Interrupt3.ConfigurationFigure 3-2 Configuration DiagramFigure 3-3 Register ListExternal interrupts 8 - 15LB8, LA8 LB9, LA9

Page 307 - 4. Register

18Chapter 2 MB91460 Rev.A/Rev.B Overview2.Features• Prescaler value for 32 kHz is 001FFFH• Clock monitor (clock output function): 1 channel• Clock su

Page 308

324Chapter 25 External Interrupt3.ConfigurationFigure 3-4 Register ListNote: See “Chapter 24 Interrupt Control (Page No.311)” about ICR register and

Page 309 - 5.2 Interval Interrupt

325Chapter 25 External Interrupt4.Registers4. Registers4.1 ELVR: Interrupt Request Level RegisterThe register that selects request detection of ext

Page 310

326Chapter 25 External Interrupt4.Registers4.2 EIRR: Interrupt Request RegisterStatus bit of a request of an external interrupt.• EIRR0 (INT0-INT7):

Page 311

327Chapter 25 External Interrupt5.Operation5. Operation(1) External interrupt signal (INT) input(2) Detect interrupt signals (level/edge).(3) Valid

Page 312

328Chapter 25 External Interrupt6.Setting6. SettingNote: For the setting procedure, refer to the section indicated by the number.7. Q & A7.1 W

Page 313

329Chapter 25 External Interrupt7.Q & A7.3 What interrupt registers are used?Setting of interrupt vectors of external interrupts, and interrupt

Page 314

330Chapter 25 External Interrupt7.Q & A7.5 How do I enable, disable, and clear interrupts?Enable flag for interrupt requests, interrupt request

Page 315

331Chapter 25 External Interrupt8.Caution8. Caution• When the request input is a level (LAn, LBn = “00” or “01”) and when the INT pin input is the s

Page 316

332Chapter 25 External Interrupt8.Caution

Page 317

333Chapter 26 DMA Controller1.Overview of the DMA Controller (DMAC)Chapter 26 DMA Controller1. Overview of the DMA Controller (DMAC)The DMA controll

Page 318

19Chapter 2 MB91460 Rev.A/Rev.B Overview3.MB91460 Series Product Lineup3. MB91460 Series Product LineupFeature MB91V460 Rev.A MB91V460 Rev.B MB91F46

Page 319 - Figure 5-1 Reference

334Chapter 26 DMA Controller1.Overview of the DMA Controller (DMAC) Block DiagramFigure 1-1"Block Diagram of the DMA Controller (DMAC)" is

Page 320

335Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers2. DMA Controller (DMAC) RegistersThis section describes the configuration and function

Page 321 - Interval time

336Chapter 26 DMA Controller2.DMA Controller (DMAC) RegistersIf the bit is set while DMA transfer start is disabled (when DMAE of DMACR=0, or DENB of

Page 322

337Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bit 30] PAUS (PAUSe)*: Temporary stop instructionThis bit temporarily stops DMA transfe

Page 323

338Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bits 28 to 24] IS4 to 0 (Input Select)*: Transfer source selectionThese bits select the

Page 324

339Chapter 26 DMA Controller2.DMA Controller (DMAC) RegistersNotes:• If DMA start resulting from an interrupt from a peripheral function is set (IS=1

Page 325

340Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers10110 0010 38 Reload Timer 6 -10111 0010 39 Reload Timer 7 -11000 0010 40 Free Run Timer

Page 326

341Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers10110 0100 70 USART (LIN) 11 RX available10111 0100 71 USART (LIN) 11 TX -11000 0100 72

Page 327 - Chapter 24 Interrupt Control

342Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers• When reset: IS4-0 is initialized to 00000B.• When reset: EIS3-0 is initialized to 0000

Page 328

343Chapter 26 DMA Controller2.DMA Controller (DMAC) Registerscompleted.When DMA transfer is started, data in this register is stored in the counter b

Page 329

20Chapter 2 MB91460 Rev.A/Rev.B Overview3.MB91460 Series Product LineupMB91V460 Rev.B : This series is presently being specified and not available ye

Page 330

344Chapter 26 DMA Controller2.DMA Controller (DMAC) Registersmemory address.• When reset: Initialized to 00B.• These bits are readable and writable.T

Page 331 - (*1) : Used by REALOS

345Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bits 29, 28] MOD (MODe)*: Transfer mode settingThese bits are the transfer mode setting

Page 332

346Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bit 25] SADM (Source-ADdr. Count-Mode select)*: Transfer source address count mode spec

Page 333 - 4.2 Interrupt Vector

347Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bit 23] DTCR (DTC-reg. Reload)*: Transfer count register reload specificationThis bit c

Page 334

348Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bit 21] DADR (Dest.-ADdr.-reg. Reload)*: Transfer destination address register reload s

Page 335

349Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bits 18 to 16] DSS2 to 0 (DMA Stop Status)*: Transfer stop source indicationThese bits

Page 336 - 7.4 How can I set an I flag?

350Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bits 7 to 0] DASZ (Des Addr count SiZe)*: Transfer destination address count size speci

Page 337 - Chapter 25 External Interrupt

351Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers[Bits 31 to 0] DMADA (DMA Destination Addr)*: Transfer destination address settingThese

Page 338

352Chapter 26 DMA Controller2.DMA Controller (DMAC) RegistersDMA operation can be forced to stop by writing 0 to this bit. However, be sure to force

Page 339 - External interrupts 8 - 15

353Chapter 26 DMA Controller2.DMA Controller (DMAC) Registers Pin Function of the DACK, and DEOP, and DREQ pinsTo use the DACK, DEOP, or DREQ pins f

Page 340 - Figure 3-4 Register List

21Chapter 2 MB91460 Rev.A/Rev.B Overview4.Block Diagram4. Block DiagramThe following illustration shows the block diagram of MB91460 series.Figure 4

Page 341

354Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation3. DMA Controller (DMAC) OperationA DMA controller (DMAC) is built into all FR family d

Page 342

355Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation● Fly-by transfer (I/O --> memory)The DMA controller operates using a write operation

Page 343 - Clear by software

356Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation• End of the specified transfer count (DMACA:BLK[3:0] x DMACA:DTC[15:0]) => Normal en

Page 344

357Chapter 26 DMA Controller3.DMA Controller (DMAC) Operationalways be caused.If a software request occurs together with a start (transfer enable) re

Page 345 - 7.4 Interrupt types

358Chapter 26 DMA Controller3.DMA Controller (DMAC) OperationFigure 3-1 Example of burst transfer for a start on an external pin rising edge, number

Page 346

359Chapter 26 DMA Controller3.DMA Controller (DMAC) OperationNote:For a demand transfer, be sure to set an external area address for the transfer sou

Page 347

360Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation• If a transfer request for another channel with a higher priority is received during tr

Page 348

361Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation● Transfer count register reloadingAfter transfer is performed the specified number of t

Page 349 - Chapter 26 DMA Controller

362Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation Features of the Address RegisterThis register has the maximum 32-bit length. With 32-b

Page 350 - ■ Block Diagram

363Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation Transfer Count ControlSet the transfer count value in the transfer count register (DTC

Page 351 - ■ Notes on Setting Registers

22Chapter 2 MB91460 Rev.A/Rev.B Overview4.Block Diagram

Page 352 - Chapter 26 DMA Controller

364Chapter 26 DMA Controller3.DMA Controller (DMAC) OperationNote:• Since the register has only four bits, this function cannot be used for multiple

Page 353

365Chapter 26 DMA Controller3.DMA Controller (DMAC) OperationIf edge detection is selected for the external pin start source and a transfer request i

Page 354

366Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation● Disabling all channelsIf the operation of all channels is disabled with the DMA operat

Page 355

367Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation Occurrence of an Address ErrorIf inappropriate addressing, as shown below in parenthes

Page 356

368Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation3.11 Channel Selection and ControlUp to five channels can be simultaneously set as tran

Page 357

369Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation Channel GroupThe order of priority is set as shown in the following table.3.12 Supple

Page 358

370Chapter 26 DMA Controller3.DMA Controller (DMAC) OperationFigure 3-7 Negate timing example of the DREQ pin input for 2-cycle external transfer --

Page 359

371Chapter 26 DMA Controller3.DMA Controller (DMAC) OperationEven if DREQ is reasserted earlier, it is ignored because the transfer has not been comp

Page 360

372Chapter 26 DMA Controller3.DMA Controller (DMAC) Operation AC Characteristics of DMACDREQ pin input, DACK pin output, and DEOP pin output are pro

Page 361

373Chapter 26 DMA Controller4.Operation Flowcharts4. Operation FlowchartsThis section contains operation flowcharts for the following transfer modes

Page 362

23Chapter 3 MB91460 Series Basic Information1.Memory MapChapter 3 MB91460 Series Basic InformationThis chapter describes MB91460 series basic informa

Page 363

374Chapter 26 DMA Controller4.Operation FlowchartsFigure 4-2 Operation Flowchart for Burst Transfer Demand TransferFigure 4-3"Operation Flowch

Page 364

375Chapter 26 DMA Controller4.Operation FlowchartsFigure 4-3 Operation Flowchart for Demand TransferLoad the initial address,transfer count, andnumb

Page 365

376Chapter 26 DMA Controller5.Data Bus5. Data BusThis section shows the flow of data during 2-cycle transfer and fly-by transfer. Flow of Data Duri

Page 366 - (DMASA0 to 4/DMADA0 to 4)

377Chapter 26 DMA Controller5.Data Bus Flow of Data During Fly-By TransferFigure 5-2"Examples of Fly-By Transfer" shows examples of two ty

Page 367 - (DMACR)

378Chapter 26 DMA Controller5.Data BusFigure 5-2 Examples of Fly-By TransfermemoryMemory read by RD or CSnI/O write by RD or DACKmemoryMemory write

Page 368 - 2.5 Other Functions

379Chapter 26 DMA Controller6.DMA External Interface6. DMA External InterfaceThis section provides operation timing charts for the DMA external inte

Page 369 - DMA pin function

380Chapter 26 DMA Controller6.DMA External Interface Timing of Demand TransferFor demand transfer, set the DMA start source to level detection. Alth

Page 370

381Chapter 26 DMA Controller6.DMA External InterfaceFigure 6-3 Timing Chart in 2-Cycle Transfer Mode● Fly-by transfer modeFigure 6-4"Timing Cha

Page 371

382Chapter 26 DMA Controller6.DMA External Interface

Page 372 - ■ Software Request

383Chapter 27 Delayed Interrupt1.OverviewChapter 27 Delayed Interrupt1. OverviewThe delayed interrupt, or the delayed interrupt module is used to ge

Page 373 - 3.2 Transfer Sequence

-i©2004 FUJITSU LIMITED Printed in Japan• The contents of this document are subject to change without notice.Customers are advised to consult with FUJ

Page 374 - ● Burst fly-by transfer

24Chapter 3 MB91460 Series Basic Information2.I/O Map2. I/O MapThis section shows the association between memory space and each register of peripher

Page 375

384Chapter 27 Delayed Interrupt4.Register4. Register4.1 DICR:Delayed Interrupt Control RegisterThis register controls to generate/clear the delayed

Page 376 - ■ Reload Operation

385Chapter 27 Delayed Interrupt6.Setting6. SettingTable Setting required for the delayed interrupt generation/clear*: Refer to the number for the se

Page 377 - 3.4 Addressing Mode

386Chapter 27 Delayed Interrupt8.Caution

Page 378 - 3.6 Transfer Count Control

387Chapter 28 Bit Search1.OverviewChapter 28 Bit Search1. Overview The bit search module is used to detect 0, 1 or changing position for data writte

Page 379 - 3.7 CPU Control

388Chapter 28 Bit Search3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 List of RegistersBSRRBSD0/ BSD1/ BSDC0-/1-/Changin

Page 380

389Chapter 28 Bit Search4.Register4. Register4.1 BSD0: 0 Detection Register / BSD1:1 Detection Register / BSDC: Changing positionDetection Data Reg

Page 381

390Chapter 28 Bit Search4.Register4.2 BSRR: Detection Result RegisterThis register is used to read a bit search result.• BSRR: Address 03FCH (Access

Page 382 - ■ Stopping Due To an Error

391Chapter 28 Bit Search5.Operation5. Operation5.1 Zero detection(1) Bit position from MSB(2) Written data (Starts to search once data is written.)

Page 383 - 3.10 DMAC Interrupt Control

392Chapter 28 Bit Search5.Operation5.3 Changing Position Detection(1) Bit position from MSB(2) Written data (Detection starts once data is written.)

Page 384

393Chapter 28 Bit Search6.Setting6. Setting*: For detailed description contents, refer to the reference destination number.*: For detailed descripti

Page 385 - ● For 2-cycle transfer

25Chapter 3 MB91460 Series Basic Information2.I/O MapTable 2-1 I/O MapAddressRegisterBlock+0 +1 +2 +3000000HPDR00 [R/W]XXXXXXXXPDR01 [R/W]XXXXXXXXPD

Page 386

394Chapter 28 Bit Search7.Q & A7. Q & A7.1 How is data written?Writes data with the detection data registers (BSD0, BSD1, BSDC).7.2 How is

Page 387

395Chapter 28 Bit Search8.Caution8. CautionThe following are the remarks on using the bit search module.• The macros are for REALOS(OS), and the use

Page 388 - ■ AC Characteristics of DMAC

396Chapter 28 Bit Search8.Caution

Page 389 - 4. Operation Flowcharts

397Chapter 29 MPU / EDSU1.OverviewChapter 29 MPU / EDSU1. OverviewMemory Protection Unit (MPU) and Embedded Debug Support Unit (EDSU) for MB91460 se

Page 390 - ■ Demand Transfer

398Chapter 29 MPU / EDSU2.Features2. FeaturesOne Comparator Group offers up to 4 Breakpoints. One Group consists of two full-featured range comparat

Page 391 - 4.Operation Flowcharts

399Chapter 29 MPU / EDSU3.Break Functions3. Break Functions3.1 Instruction address breakThe instruction address point break is the most basic break

Page 392 - 5. Data Bus

400Chapter 29 MPU / EDSU3.Break FunctionsBreak occurs at 0x02345200 to 0x02345300,orat 0x12345200 to 0x12345300,orat 0x22345200 to 0x22345300, etc.Th

Page 393 - 5.Data Bus

401Chapter 29 MPU / EDSU3.Break FunctionsExample: CTC 01 Type: Operand Address BreakEP0 1 Enable break point on BAD0EP1 1 Enable break point on BAD1E

Page 394

402Chapter 29 MPU / EDSU3.Break FunctionsIn Operand address break mode the Operand Address, causing the break is captured in the BOAC register. Addi-

Page 395 - 6. DMA External Interface

403Chapter 29 MPU / EDSU3.Break Functions2) The EDSU data break does not always occur immediately after completion of execution of the instruction ca

Page 396 - ● 2-cycle transfer mode

26Chapter 3 MB91460 Series Basic Information2.I/O Map000048HSCR01 [R/W,W]00000000SMR01 [R/W,W]00000000SSR01 [R/W,R]00001000RDR01/TDR01[R/W]00000000US

Page 397

404Chapter 29 MPU / EDSU3.Break FunctionsOn break both BD0 and BD2, respective BD1 and BD3 are set. They have to be reset by software in the operandb

Page 398 - 6.DMA External Interface

405Chapter 29 MPU / EDSU3.Break FunctionsPermissions can be set for the comparator channel CMP1 and CMP0 separately, indicated by the symbol index.At

Page 399 - Chapter 27 Delayed Interrupt

406Chapter 29 MPU / EDSU3.Break FunctionsBreak factors and corresponding interrupt numbers and vectors:Table 3-8 Interrupt numbers and vectors of br

Page 400 - 4.1 DICR:

407Chapter 29 MPU / EDSU4.Registers4. Registers4.1 List of EDSU RegistersTable 4-1 EDSU Registers SummaryAddress Register Block+0 +1 +2 +3F000HBCT

Page 401

408Chapter 29 MPU / EDSU4.RegistersF080HBAD0 [R/W]XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXXEDSUF084HBAD1 [R/W]XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXXF088

Page 402 - Chapter 27 Delayed Interrupt

409Chapter 29 MPU / EDSU4.RegistersRemark: Read and write access to all registers is byte, halfword and word.F0C0HBAD16 [R/W]XXXXXXXX XXXXXXXX XXXX

Page 403 - Chapter 28 Bit Search

410Chapter 29 MPU / EDSU4.Registers4.2 Explanations of Registers● EDSU Control Register (BCTRL)Default Permission RegisterThe default permission reg

Page 404

411Chapter 29 MPU / EDSU4.RegistersBIT[11]: UW - User default Write permission registerBIT[10]: UX - User default eXecute permission registerCPU and

Page 405 - Detection Data Register

412Chapter 29 MPU / EDSU4.RegistersIf EEMM is set to ’1’ then the emulation mode is entered during Step Trace Mode and EDSU exceptions InstructionBre

Page 406

413Chapter 29 MPU / EDSU4.RegistersBIT[3]: EINT1 - Enable extended INTerrupt 1If EINT1 is set to ’1’ then a Tool NMI will be generated on an extended

Page 407 - • Execution example

27Chapter 3 MB91460 Series Basic Information2.I/O Map000080HBGR100 [R/W]00000000BGR000 [R/W]00000000BGR101 [R/W]00000000BGR001 [R/W]00000000BaudrateG

Page 408

414Chapter 29 MPU / EDSU4.Registers● EDSU Status Register (BSTAT)BIT[15:11]: IDX[4:0] - Channel Index Indication of MPUPV TriggerIn the case of trigg

Page 409

415Chapter 29 MPU / EDSU4.RegistersBIT[9:8]: CSZ[1:0] - Capture Operand SizeBIT[7:6]: CRW[1:0] - Capture Operand Access TypeBIT[5]: PV - Protection V

Page 410 - 7.3 How is a result read?

416Chapter 29 MPU / EDSU4.RegistersBIT[3]: INT1 - INTerrupt on extended source 1INT1 reflects the status of the extended interrupt source channel 1.

Page 411

417Chapter 29 MPU / EDSU4.Registers● EDSU Instruction Address Capture Register (BIAC)This register captures the address of the instruction (IA), whic

Page 412 - Chapter 28 Bit Search

418Chapter 29 MPU / EDSU4.Registers• operand address break,• data value break,• combined operand address and data value break and• memory protection

Page 413 - Chapter 29 MPU / EDSU

419Chapter 29 MPU / EDSU4.Registers● EDSU Channel Configuration Register (BCR0...BCR7)For each group of four channels one channel configuration regis

Page 414

420Chapter 29 MPU / EDSU4.RegistersGroup of Channels, Permission Definition RegisterThe permission definition registers are valid only for the group

Page 415 - 3. Break Functions

421Chapter 29 MPU / EDSU4.Registers• CTC=2: IA range 0 defines execute permissions and OA range 1 defines read/write permissions.Data value (DT) detect

Page 416 - 3.2 Operand address break

422Chapter 29 MPU / EDSU4.RegistersBIT[19]: URX1 - User Read/eXecute permission register for range 1Setting valid for CTC == 0 (Instruction address r

Page 417 - 3.Break Functions

423Chapter 29 MPU / EDSU4.RegistersSome restrictions apply with the setting of the MPE bit.MPE=0 (break unit):• permission registers are don’t care (

Page 418 - 3.3 Data value break

28Chapter 3 MB91460 Series Basic Information2.I/O Map0000D0HIBCR0 [R/W]00000000IBSR0 [R]00000000ITBAH0 [R/W]- - - - - - 00ITBAL0 [R/W]00000000I2C 000

Page 419

424Chapter 29 MPU / EDSU4.RegistersThe COMB bit set to ’1’ causes the IA comparator CMP0 to use the same BADx point definitions as the OA com-parator

Page 420 - 3.5 Memory Protection

425Chapter 29 MPU / EDSU4.RegistersThe operand break size register OBS configures the datasize and the operand break type register OBT configuresthe

Page 421 - 3.6 Break Factors

426Chapter 29 MPU / EDSU4.RegistersThe input value and the point value is masked if the mask function is enabled by EM0. On a compare match a breakex

Page 422

427Chapter 29 MPU / EDSU4.RegistersThe selection of the appropriate BADx register (point 0 or 2) for the mask value depends on EP0 and ER0. If at lea

Page 423 - 4.1 List of EDSU Registers

428Chapter 29 MPU / EDSU4.RegistersThis register sets the 32 bit comparison value for break point 1 of CMP0. In range mode (set with ER0) the registe

Page 424

429Chapter 29 MPU / EDSU5.Quick Reference5. Quick Reference0xF008BIAC0xF00CBOACBAD00xF080BAD10xF084BAD30xF08CBAD280xF0F0BAD290xF0F4BAD300xF0F8INT1 I

Page 425

430Chapter 29 MPU / EDSU5.Quick ReferenceCTCCTCOBS−MatchIA/OACMP1BD3BD2CMP0IA/OA/DT BD1BD0IAOAIAOADTComparator GROUP 0Point 3Point 2Mask 1ValuePoint

Page 426 - SR SW SX UR UW UX FCPU FDMA

431Chapter 30 I/O Ports1.I/O Ports FunctionsChapter 30 I/O Ports1. I/O Ports FunctionsFor enabling the resource functions, please refer to section .

Page 427

432Chapter 30 I/O Ports1.I/O Ports FunctionsP00_3P00_3TP04_0General purpose I/O. This function is enabled in the single-chip mode or bysetting the co

Page 428

433Chapter 30 I/O Ports1.I/O Ports FunctionsP01_0P01_0TP04_0General purpose I/O. This function is enabled in the single-chip mode or bysetting the co

Page 429

29Chapter 3 MB91460 Series Basic Information2.I/O Map000120HPTMR02 [R]11111111 11111111PCSR02 [W]XXXXXXXX XXXXXXXXPPG 2000124HPDUT02 [W]XXXX

Page 430

434Chapter 30 I/O Ports1.I/O Ports FunctionsP03_5P03_5TP04_0General purpose I/O. This function is enabled in the single-chip mode or bysetting the co

Page 431

435Chapter 30 I/O Ports1.I/O Ports FunctionsP04_2P04_2TP04_0General purpose I/O. This function is enabled in the single-chip mode or bysetting the co

Page 432

436Chapter 30 I/O Ports1.I/O Ports FunctionsP06_7P06_7TP04_0General purpose I/O. This function is enabled in the single-chip mode or bysetting the co

Page 433

437Chapter 30 I/O Ports1.I/O Ports FunctionsP07_4P07_4TP04_0General purpose I/O. This function is enabled in the single-chip mode or bysetting the co

Page 434

438Chapter 30 I/O Ports1.I/O Ports FunctionsP08_1P08_1TP04_0General purpose I/O. This function is enabled in the single-chip mode or bysetting the co

Page 435

439Chapter 30 I/O Ports1.I/O Ports FunctionsP10_6P10_6TP04_0General purpose I/O. This function is enabled in the single-chip mode or bysetting the co

Page 436

440Chapter 30 I/O Ports1.I/O Ports FunctionsP11_0P11_0TP04_0General purpose I/O.IORDX Output pin for DMA I/O to memory fly-by transfer.Port 12P12_7P12

Page 437

441Chapter 30 I/O Ports1.I/O Ports FunctionsP14_7P14_7TP00_0General purpose I/O.ICU7 Data sample input pin for input capture ICU 7.TIN7 Event input p

Page 438

442Chapter 30 I/O Ports1.I/O Ports FunctionsP15_5P15_5TP00_0General purpose I/O.OCU5 Waveform output pin for output compare OCU 5.TOT5 Output pin for

Page 439

443Chapter 30 I/O Ports1.I/O Ports FunctionsP17_7P17_7TP00_0General purpose I/O.PPG7 Waveform output pin for programmable pulse generator PPG 7.P17_6

Page 440

30Chapter 3 MB91460 Series Basic Information2.I/O Map000170HP0TMCSRH[R/W]- 0 - 000 - 0P0TMCSRL[R/W]- - - 00000P1TMCSRH[R/W]- 0 - 000 - 0P1TMCSRL[R/W]

Page 441

444Chapter 30 I/O Ports1.I/O Ports FunctionsP19_7 P19_7 TP00_0 General purpose I/O.P19_6P19_6TP00_0General purpose I/O.SCK5 Clock I/O pin for LIN-USA

Page 442

445Chapter 30 I/O Ports1.I/O Ports FunctionsPort 21P21_7 P21_7 TP00_0 General purpose I/O.P21_6P21_6TP00_0General purpose I/O.SCK1 Clock I/O pin for

Page 443

446Chapter 30 I/O Ports1.I/O Ports FunctionsP23_7P23_7TP00_0General purpose I/O.TX3 Transmission output pin for CAN 3.P23_6P23_6TP00_0General purpose

Page 444

447Chapter 30 I/O Ports1.I/O Ports FunctionsPort 25P25_7P25_7TP05_0General purpose I/O.SMC2M5 PWM output 2M (-) stepper motor controller 5.P25_6P25_6

Page 445 - 5. Quick Reference

448Chapter 30 I/O Ports1.I/O Ports FunctionsP26_0P26_0TP05_0General purpose I/O.SMC1P2 PWM output 1P (+) stepper motor controller 2.AN24 Analog input

Page 446 - 5.Quick Reference

449Chapter 30 I/O Ports1.I/O Ports FunctionsP28_3P28_3TP03_0General purpose I/O.AN11 Analog input pin 11 for the A/D converter 1.P28_2P28_2TP03_0Gene

Page 447 - Chapter 30 I/O Ports

450Chapter 30 I/O Ports1.I/O Ports FunctionsP30_0P30_0TP06_0General purpose I/O.COM0 Common driver output pin 0 LCD controller.Port 31P31_7P31_7TP06_

Page 448

451Chapter 30 I/O Ports1.I/O Ports FunctionsP32_0P32_0TP06_0General purpose I/O.SEG24 Segment driver output pin 24 LCD controller.SIN14 Serial data i

Page 449

452Chapter 30 I/O Ports1.I/O Ports FunctionsP34_2P34_2TP06_0General purpose I/O.SEG10 Segment driver output pin 10 LCD controller.SCK10 Clock I/O pin

Page 450

453Chapter 30 I/O Ports2.I/O Circuit Types2. I/O Circuit Types2.1 I/O Cell List MB91V460Note: This table shows the I/O cells used for MB91V460. Ple

Page 451

31Chapter 3 MB91460 Series Basic Information2.I/O Map0001B8HTMRLR1 [W]XXXXXXXX XXXXXXXXTMR1 [R]XXXXXXXX XXXXXXXXReload Timer1(PPG 2-3)0001BCH

Page 452

454Chapter 30 I/O Ports3.Port Register Settings3. Port Register Settings3.1 General RulesFor all ports, the following rules are valid:1. All port i

Page 453

455Chapter 30 I/O Ports3.Port Register Settings14.Resource output lines are enabled by setting the corresponding PFR and/or EPFR bit in the port. Det

Page 454

456Chapter 30 I/O Ports3.Port Register Settings3.2 I/O Port Block DiagramPort BusPDRDDRPeripheral inputsPDRD readPinPDR: Port Data Register Address

Page 455

457Chapter 30 I/O Ports3.Port Register Settings3.3 Port Input EnableThis section describes the Port Input Enable function. PORTEN: Port Input Enabl

Page 456

458Chapter 30 I/O Ports3.Port Register Settings3.4 Port Function Register SetupThis section describes the Port Function Registers of each port. P00

Page 457

459Chapter 30 I/O Ports3.Port Register Settings P01: The functions of Port 01 are controlled by PFR01If the external bus interface is enabled (by mo

Page 458

460Chapter 30 I/O Ports3.Port Register Settings P02: The functions of Port 02 are controlled by PFR02If the external bus interface is enabled (by mo

Page 459

461Chapter 30 I/O Ports3.Port Register Settings P03: The functions of Port 03 are controlled by PFR03If the external bus interface is enabled (by mo

Page 460

462Chapter 30 I/O Ports3.Port Register Settings P04: The functions of Port 04 are controlled by PFR04If the external bus interface is enabled (by mo

Page 461

463Chapter 30 I/O Ports3.Port Register Settings P05: The functions of Port 05 are controlled by PFR05If the external bus interface is enabled (by mo

Page 462

32Chapter 3 MB91460 Series Basic Information2.I/O Map0001F8HTCDT2 [R/W]XXXXXXXX XXXXXXXXres.TCCS2 [R/W]00000000Free RunningTimer 2(OCU 0-1)0001FC

Page 463

464Chapter 30 I/O Ports3.Port Register Settings P06: The functions of Port 06 are controlled by PFR06If the external bus interface is enabled (by mo

Page 464

465Chapter 30 I/O Ports3.Port Register Settings P07: The functions of Port 07 are controlled by PFR07If the external bus interface is enabled (by mo

Page 465

466Chapter 30 I/O Ports3.Port Register Settings P08: The functions of Port 08 are controlled by PFR08If the external bus interface is enabled (by mo

Page 466

467Chapter 30 I/O Ports3.Port Register Settings P09: The functions of Port 09 are controlled by PFR09If the external bus interface is enabled (by mo

Page 467

468Chapter 30 I/O Ports3.Port Register Settings P10: The functions of Port 10 are controlled by PFR10 and EPFR10If the external bus interface is ena

Page 468

469Chapter 30 I/O Ports3.Port Register Settings P11: The functions of Port 11 are controlled by PFR11P11[7:0] is input/output for DMA control signal

Page 469 - 2.1 I/O Cell List MB91V460

470Chapter 30 I/O Ports3.Port Register Settings P12: The functions of Port 12 are controlled by PFR12 and EPFR12P12[7:0] is input/output for DMA con

Page 470 - 3.1 General Rules

471Chapter 30 I/O Ports3.Port Register Settings P13: The functions of Port 13 are controlled by PFR13 and EPFR13P13[7:0] is input/output for DMA con

Page 471 - 3.Port Register Settings

472Chapter 30 I/O Ports3.Port Register Settings P14: The functions of Port 14 are controlled by PFR14 and EPFR14P14[7:0] is input/output for Input C

Page 472 - 3.2 I/O Port Block Diagram

473Chapter 30 I/O Ports3.Port Register SettingsResource function is TIN1 and TTG9/1 input, andEPFR14.1 0 - Resource function is ICU1 input1 - ICU1 is

Page 473 - 3.3 Port Input Enable

33Chapter 3 MB91460 Series Basic Information2.I/O Map000258H-00027CHreserved000280HSCR08 [R/W,W]00000000SMR08 [R/W,W]00000000SSR08 [R/W,R]00001000RDR

Page 474

474Chapter 30 I/O Ports3.Port Register Settings P15: The functions of Port 15 are controlled by PFR15 and EPFR15P15[7:0] is input/output for Output

Page 475

475Chapter 30 I/O Ports3.Port Register Settings P16: The functions of Port 16 are controlled by PFR16 and EPFR16P16[7:0] is input/output for Program

Page 476

476Chapter 30 I/O Ports3.Port Register Settings P17: The functions of Port 17 are controlled by PFR17P17[7:0] is input/output for Programmable Pulse

Page 477

477Chapter 30 I/O Ports3.Port Register Settings P18: The functions of Port 18 are controlled by PFR18 and EPFR18P18[7:0] is input/output for LIN-UAR

Page 478

478Chapter 30 I/O Ports3.Port Register Settings P19: The functions of Port 19 are controlled by PFR19 and EPFR19P19[7:0] is input/output for LIN-UAR

Page 479

479Chapter 30 I/O Ports3.Port Register Settings P20: The functions of Port 20 are controlled by PFR20 and EPFR20P20[7:0] is input/output for LIN-UAR

Page 480

480Chapter 30 I/O Ports3.Port Register Settings P21: The functions of Port 21 are controlled by PFR21 and EPFR21P21[7:0] is input/output for LIN-UAR

Page 481

481Chapter 30 I/O Ports3.Port Register Settings P22: The functions of Port 22 are controlled by PFR22P22[7:0] is input/output for I2C serial communi

Page 482

482Chapter 30 I/O Ports3.Port Register SettingsResource function is RX4 input, and INT12 inputRemark: This pin supports external interrupt wake up fr

Page 483

483Chapter 30 I/O Ports3.Port Register Settings P23: The functions of Port 23 are controlled by PFR23P23[7:0] is input/output for CAN serial communi

Page 484

iTOCChapter 1 Introduction... 11. How to Handle the Device ...

Page 485

34Chapter 3 MB91460 Series Basic Information2.I/O Map0002B0HSCR14 [R/W,W]00000000SMR14 [R/W,W]00000000SSR14 [R/W,R]00001000RDR14/TDR14[R/W]00000000US

Page 486

484Chapter 30 I/O Ports3.Port Register SettingsResource function is RX0 input, and INT8 inputRemark: This pin supports external interrupt wake up fro

Page 487

485Chapter 30 I/O Ports3.Port Register Settings P24: The functions of Port 24 are controlled by PFR24P24[7:0] is input/output for I2C serial communi

Page 488

486Chapter 30 I/O Ports3.Port Register SettingsRemark: This pin supports external interrupt wake up from STOP-HIZ mode. Because of thisthe internal i

Page 489

487Chapter 30 I/O Ports3.Port Register Settings P25: The functions of Port 25 are controlled by PFR25P25[7:0] is input/output for Stepper Motor PWM

Page 490

488Chapter 30 I/O Ports3.Port Register Settings P26: The functions of Port 26 are controlled by PFR26 and EPFR26P26[7:0] is input/output for Stepper

Page 491

489Chapter 30 I/O Ports3.Port Register Settings P27: The functions of Port 27 are controlled by PFR27 and EPFR27P27[7:0] is input/output for Stepper

Page 492

490Chapter 30 I/O Ports3.Port Register Settings P28: The functions of Port 28 are controlled by PFR28P28[7:0] is input/output for A/D converter anal

Page 493

491Chapter 30 I/O Ports3.Port Register Settings P29: The functions of Port 29 are controlled by PFR29P29[7:0] is input/output for A/D converter anal

Page 494

492Chapter 30 I/O Ports3.Port Register Settings P30: The functions of Port 30 are controlled by PFR30P30[7:0] is input/output for LCD controller ref

Page 495

493Chapter 30 I/O Ports3.Port Register Settings P31: The functions of Port 31 are controlled by PFR31P31[7:0] is input/output for LCD controller seg

Page 496

35Chapter 3 MB91460 Series Basic Information2.I/O Map0002F4HTCDT5 [R/W]XXXXXXXX XXXXXXXXres.TCCS5 [R/W]00000000Free RunningTimer 5(ICU 6-7)0002F8

Page 497

494Chapter 30 I/O Ports3.Port Register Settings P32: The functions of Port 32 are controlled by PFR32 and EPFR32P32[7:0] is input/output for LCD con

Page 498

495Chapter 30 I/O Ports3.Port Register Settings P33: The functions of Port 33 are controlled by PFR33 and EPFR33P33[7:0] is input/output for LCD con

Page 499

496Chapter 30 I/O Ports3.Port Register Settings P34: The functions of Port 34 are controlled by PFR34 and EPFR34P34[7:0] is input/output for LCD con

Page 500

497Chapter 30 I/O Ports3.Port Register Settings P35: The functions of Port 35 are controlled by PFR35 and EPFR35P35[7:0] is input/output for LCD con

Page 501

498Chapter 30 I/O Ports3.Port Register Settings3.5 Port Input Level SelectionThe input levels of each port can be programmed bit-wise between CMOS H

Page 502

499Chapter 30 I/O Ports3.Port Register SettingsPILR20 0E54h PILR20.7 PILR20.6 PILR20.5 PILR20.4 PILR20.3 PILR20.2 PILR20.1 PILR20.0 0000 0000PILR21 0

Page 503

500Chapter 30 I/O Ports3.Port Register Settings3.6 Programmable Pull-Up/Pull Down ResistorsThe Ports listed in the following table have 50 kOhm Pull

Page 504

501Chapter 30 I/O Ports3.Port Register SettingsPPER02 0EC2h PPER02.7 PPER02.6 PPER02.5 PPER02.4 PPER02.3 PPER02.2 PPER02.1 PPER02.0 0000 0000PPER03 0

Page 505

502Chapter 30 I/O Ports3.Port Register SettingsBitPort Pull-Up/Pull-Down Control Registers0 1 (default)PPCRx.y Pull Down is selected Pull-Up is selec

Page 506

503Chapter 30 I/O Ports3.Port Register SettingsNote: PPCR Register bits can only be written, if the attached PPER register bit is low (resistors disa

Page 507

36Chapter 3 MB91460 Series Basic Information2.I/O Map000340HPTMR14 [R]11111111 11111111PCSR14 [W]XXXXXXXX XXXXXXXXPPG 14000344HPDUT14 [W]XXX

Page 508

504Chapter 30 I/O Ports3.Port Register SettingsPODR14 0E0Eh PODR14.7 PODR14.6 PODR14.5 PODR14.4 PODR14.3 PODR14.2 PODR14.1 PODR14.0 0000 0000PODR15 0

Page 509

505Chapter 30 I/O Ports3.Port Register Settings

Page 510

506Chapter 30 I/O Ports3.Port Register Settings

Page 511

507Chapter 31 External Bus1.Overview of the External Bus InterfaceChapter 31 External BusThe external bus interface controller controls the interface

Page 512

508Chapter 31 External Bus1.Overview of the External Bus Interface• Capable of setting timing values such as the CAS latency and RAS - CAS delay (SDR

Page 513

509Chapter 31 External Bus1.Overview of the External Bus Interface1.2 Block DiagramFigure 1-1 Block Diagram of the External Bus Interface32 32Inter

Page 514

510Chapter 31 External Bus1.Overview of the External Bus Interface1.3 I/O PinsThe I/O pins are external bus interface pins (Some pins have other use

Page 515

511Chapter 31 External Bus1.Overview of the External Bus InterfaceFigure 1-2 List of External Bus Interface Registers31 24 23

Page 516

512Chapter 31 External Bus2.External Bus Interface Registers2. External Bus Interface RegistersThis section explains the registers used in the exter

Page 517

513Chapter 31 External Bus2.External Bus Interface RegistersFigure 2-1 Configuration of the Area Select Registers (ASR0-7) Functions of Bits in the

Page 518 - 0 1 (default)

37Chapter 3 MB91460 Series Basic Information2.I/O Map0003D8H-0003E0Hreserved0003E4HreservedICHCR [R/W]0 - 000000I-Cache0003E8H-0003ECHreserved0003F0H

Page 519

514Chapter 31 External Bus2.External Bus Interface Registersselect area.Figure 2-2 "Configuration of Area Configuration Registers 0-7 (ACR0-7)&q

Page 520

515Chapter 31 External Bus2.External Bus Interface RegistersThe following explains the function of each bit:[Bits 15-12] ASZ3-0 (Area Size Bits 3-0)T

Page 521

516Chapter 31 External Bus2.External Bus Interface RegistersASZ3-0 are used to set the size of each area by modifying the number of bits for address

Page 522

517Chapter 31 External Bus2.External Bus Interface RegistersIn areas for which a burst length other than the single access is set, continuous burst a

Page 523 - Chapter 31 External Bus

518Chapter 31 External Bus2.External Bus Interface RegistersIf an area for which write operations are disabled is accessed for a write operation from

Page 524 - Chapter 31 External Bus

519Chapter 31 External Bus2.External Bus Interface RegistersSet the access type as the combination of all bits.For details of the operations of each

Page 525 - 1.2 Block Diagram

520Chapter 31 External Bus2.External Bus Interface Registers2.3 Area Wait Register (AWR0-7)This section explains the configuration and functions of

Page 526 - 1.4 Register List

521Chapter 31 External Bus2.External Bus Interface RegistersThe function of each bit changes according to the access type (TYP(3-0) bits) setting of

Page 527

522Chapter 31 External Bus2.External Bus Interface Registers[Bits 15-12] W15-12 (First Wait Cycle)These bits set the number of auto-wait cycles to be

Page 528 - ■ Register Types

523Chapter 31 External Bus2.External Bus Interface Registers[Bits 7,6] W07-06 (Read -> Write Idle Cycle)The read -> write idle cycle is set to

Page 529

38Chapter 3 MB91460 Series Basic Information2.I/O Map000440HICR00 [R/W]---11111ICR01 [R/W]---11111ICR02 [R/W]---11111ICR03 [R/W]---11111InterruptCont

Page 530

524Chapter 31 External Bus2.External Bus Interface Registers[Bits 3] W03 (WR0-WR3, WRn Output Timing Selection)The WR0-WR3, WRn output timing setting

Page 531

525Chapter 31 External Bus2.External Bus Interface Registers[Bits 2] W02 (Address -> CSn Delay)The address -> CSn delay setting is made when a

Page 532

526Chapter 31 External Bus2.External Bus Interface Registers[Bits 0] W00 (RD/WRn -> CSn Hold Extension Cycle)The RD/WRn -> CSn hold extension c

Page 533

527Chapter 31 External Bus2.External Bus Interface RegistersFor all the areas connected to SDRAM/FCRAM, set these bits to the same RAS - CAS delay cy

Page 534

528Chapter 31 External Bus2.External Bus Interface RegistersTable 4.2 - 22 lists the settings for the write recovery cycle.For all the areas connecte

Page 535

529Chapter 31 External Bus2.External Bus Interface Registers Structure of the Memory Setting Register (MCRA for SDRAM/FCRAM auto - precharge OFFmode

Page 536 - (AWR0-7)

530Chapter 31 External Bus2.External Bus Interface RegistersTable 2-27 lists the settings for burst write.For connecting FCRAM, be sure to set the bi

Page 537

531Chapter 31 External Bus2.External Bus Interface RegistersFigure 2-5 Structure of the Memory Setting Register (MCRB for FCRAM auto - precharge ON

Page 538

532Chapter 31 External Bus2.External Bus Interface Registers Functions of Bits in the I/O Wait Registers for DMAC (IOWR0-3)The following explains th

Page 539

533Chapter 31 External Bus2.External Bus Interface Registersis set to the high impedance state.

Page 540

39Chapter 3 MB91460 Series Basic Information2.I/O Map00048CHPLLDIVM [R/W]- - - - 0000PLLDIVN [R/W]- - 000000PLLDIVG [R/W]- - - - 0000PLLMULG [W]0

Page 541

534Chapter 31 External Bus2.External Bus Interface Registers[Bits 27-24, 19-16, 11-8] IW03-00,IW13-10 (I/O Access Wait)These bits set the number of a

Page 542

535Chapter 31 External Bus2.External Bus Interface RegistersBefore setting this register, be sure to make all settings required for the corresponding

Page 543

536Chapter 31 External Bus2.External Bus Interface Registers[Bits 23-16] CHE7-0 (Cache Enable 7-0)These bits enable and disable each chip select area

Page 544

537Chapter 31 External Bus2.External Bus Interface Registers[Bit 6] PSUS (Prefetch suspend)This bit controls temporary stopping of prefetch to all ar

Page 545

538Chapter 31 External Bus2.External Bus Interface Registers2.10 Refresh Control Register (RCR)This section describes the bit configuration and func

Page 546

539Chapter 31 External Bus2.External Bus Interface RegistersWhen read by a Read - modify - Write instruction, the SELF, RRLD, and PON bits always ret

Page 547

540Chapter 31 External Bus2.External Bus Interface Registers[Bits 22 - 20] RFC2, RFC1, RFC0 (ReFresh Count): Refresh countSet these bits to the numbe

Page 548

541Chapter 31 External Bus2.External Bus Interface RegistersTable 4.2-47 lists the settings for the refresh cycle (tRC).Table 2-31 Settings for the

Page 549

542Chapter 31 External Bus3.Setting Example of the Chip Select Area3. Setting Example of the Chip Select AreaIn the external bus interface, a total

Page 550

543Chapter 31 External Bus4.Endian and Bus Access4. Endian and Bus AccessThere is a one-to-one correspondence between theWR0-WR3 control signal and

Page 551

40Chapter 3 MB91460 Series Basic Information2.I/O Map0004D0HC340R [R/W]- - - - - - - 0res.EISSRH [R/W]00000000EISSRL [R/W]00000000340 Compati-bility

Page 552

544Chapter 31 External Bus4.Endian and Bus Access● SDRAM InterfaceFigure 4-3 Data bus width of the SDRAM (FCRAM) interface and its control signals4.

Page 553

545Chapter 31 External Bus4.Endian and Bus AccessFigure 4-5 Relationship between the Internal Register and External Data Bus for Halfword AccessFigu

Page 554

546Chapter 31 External Bus4.Endian and Bus Access● 16-bit bus widthFigure 4-8 Relationship between Internal Register and External Bus Having 16-Bit

Page 555

547Chapter 31 External Bus4.Endian and Bus Access● 32-bit bus widthFigure 4-10 External bus Access for 32-Bit Bus Width● 16-bit bus widthFigure 4-11

Page 556

548Chapter 31 External Bus4.Endian and Bus Access● 8-bit bus widthFigure 4-12 External Bus Access for 8-Bit Bus Width Example of Connection with Ex

Page 557

549Chapter 31 External Bus4.Endian and Bus AccessFigure 4-13 Example of Connecting the MB91460 Series to External Devices4.2 Little Endian Bus Acce

Page 558

550Chapter 31 External Bus4.Endian and Bus Access● Halfword accessThe byte data on the MSB side for the big endian address 0 becomes byte data on the

Page 559 - ● Time division I/O interface

551Chapter 31 External Bus4.Endian and Bus AccessFigure 4-16 Relationship between Internal Register and External Data Bus for Byte Access Data Bus

Page 560 - 4.1 Big Endian Bus Access

552Chapter 31 External Bus4.Endian and Bus Access● 8-bit bus widthFigure 4-19 Relationship between the Internal Register and External Data Bus in th

Page 561 - ● 32-bit bus width

553Chapter 31 External Bus4.Endian and Bus Access● 16-bit bus widthFigure 4-21 Example of Connecting the MB91460 Series to External Devices (16-Bit

Page 562 - ■ External Bus Access

41Chapter 3 MB91460 Series Basic Information2.I/O Map000640HASR0 [R/W]00000000 00000000ACR0 [R/W]1111**00 00000000External BusUnit000644HASR1

Page 563

554Chapter 31 External Bus4.Endian and Bus Access4.3 Comparison of Big Endian and Little Endian External AccessThis section shows a comparison of bi

Page 564

555Chapter 31 External Bus4.Endian and Bus Access Word AccessBig endian mode Little endian mode32-bit buswidth16-bit buswidth8-bit buswidth(1)D00D31

Page 565 - ● Word access

556Chapter 31 External Bus4.Endian and Bus Access Halfword AccessBig endian mode Little endian mode32-bit buswidth(1)D00D31D31AABBWR0WR1BBAA--D00add

Page 566 - ■ Data Format

557Chapter 31 External Bus4.Endian and Bus Access16-bit buswidth8-bit buswidthBig endian mode Little endian modeAABBWR0WR1BBAAaddress: "2"

Page 567

558Chapter 31 External Bus4.Endian and Bus Access Byte Access

Page 568

559Chapter 31 External Bus4.Endian and Bus AccessBig endian mode Little endian mode32-bit buswidth(1)D00D31D31AAWR0AA---D00address : "0"In

Page 569

560Chapter 31 External Bus4.Endian and Bus Access16-bit buswidthBig endian mode Little endian modeAAAAWR0address: "0"D00D31D31Internal

Page 570 - 4.Endian and Bus Access

561Chapter 31 External Bus4.Endian and Bus Access8-bit buswidthBig endian mode Little endian modeAAAAWR0address: "0"D00D31D31Internal

Page 571 - ■ Word Access

562Chapter 31 External Bus5.Operation of the Ordinary bus interface5. Operation of the Ordinary bus interfaceThis section explains operation of the

Page 572 - ■ Halfword Access

563Chapter 31 External Bus5.Operation of the Ordinary bus interfaceFigure 5-1 Basic Timing (For Successive Accesses)• AS is asserted for one cycle i

Page 573

42Chapter 3 MB91460 Series Basic Information2.I/O Map0007FCHres.MODR [W]XXXXXXXXres. res. Mode Register000800H-000BFCHreserved DSU4 / RTM000C00HTVCT

Page 574 - ■ Byte Access

564Chapter 31 External Bus5.Operation of the Ordinary bus interfaceFigure 5-2 Timing Chart for the WRn + Byte Control Type• Operation of AS, CSn, RD

Page 575 - 32-bit bus

565Chapter 31 External Bus5.Operation of the Ordinary bus interface5.3 Read -> Write OperationThis section shows the operating timing for read -&

Page 576 - 16-bit bus

566Chapter 31 External Bus5.Operation of the Ordinary bus interfaceFigure 5-4 Timing Chart for the Write -> Write Operation• Setting of the W05/W

Page 577 - 8-bit bus

567Chapter 31 External Bus5.Operation of the Ordinary bus interfaceFigure 5-5 Timing Chart for the Auto-Wait CycleSetting of the W15-12 bits (first

Page 578 - 5.1 Basic Timing

568Chapter 31 External Bus5.Operation of the Ordinary bus interfaceFigure 5-6 Timing Chart for the External Wait CycleSetting 1 for the TYP0 bit of

Page 579 - WRn + byte control type

569Chapter 31 External Bus5.Operation of the Ordinary bus interfaceFigure 5-7 Timing Chart for Synchronous Write Enable Output• If synchronous write

Page 580

570Chapter 31 External Bus5.Operation of the Ordinary bus interface• If synchronous write enable output is used, the following restrictions apply:Do

Page 581 - ■ Write -> Write Operation

571Chapter 31 External Bus5.Operation of the Ordinary bus interface5.9 CSn -> RD/WRn Setup and RD/WRn -> CSn Hold SettingThis section shows the

Page 582 - 5.5 Auto-Wait Cycle

572Chapter 31 External Bus5.Operation of the Ordinary bus interface Operation Timing for DMA Fly-By Transfer (I/O -> Memory)Figure 5-10 "Tim

Page 583 - 5.6 External Wait Cycle

573Chapter 31 External Bus5.Operation of the Ordinary bus interfaceFigure 5-11 Timing Chart for DMA Fly-By Transfer (Memory -> I/O)• Setting 1 fo

Page 584

43Chapter 3 MB91460 Series Basic Information2.I/O Map000D40HDDR00 [R/W]00000000DDR01 [R/W]00000000DDR02 [R/W]00000000DDR03 [R/W]00000000R-busPort Dir

Page 585

574Chapter 31 External Bus6.Burst Access Operation6. Burst Access OperationIn the external bus interface, the operation that transfers successive da

Page 586 - CSn delay setting

575Chapter 31 External Bus6.Burst Access Operationthe minimum number of the first access cycles is the wait cycles + 2 cycles (three cycles in the ti

Page 587

576Chapter 31 External Bus7.Address/data Multiplex Interface7. Address/data Multiplex InterfaceThis section explains the following three cases of op

Page 588

577Chapter 31 External Bus7.Address/data Multiplex Interface• As with the normal interface, auto-wait (AWR15-12), read -> write idle cycle (AWR7-6

Page 589

578Chapter 31 External Bus7.Address/data Multiplex InterfaceFigure 7-3 Timing Chart for the Address/Data Multiplex Interface (CSn -> RD/WRn Setup

Page 590 - ■ Burst Access Operation

579Chapter 31 External Bus8.Prefetch Operation8. Prefetch OperationThis section explains the prefetch operation. Prefetch OperationThe external bus

Page 591 - 6.Burst Access Operation

580Chapter 31 External Bus8.Prefetch OperationDuring burst access, successive accesses occur only within the address boundary that that is determined

Page 592 - ■ Without External Wait

581Chapter 31 External Bus8.Prefetch Operation• If a buffer read error occurs. A buffer read error is if any of the following events occurs:• When n

Page 593 - ■ CSn -> RD/WRn Setup

582Chapter 31 External Bus9.SDRAM/FCRAM Interface Operation9. SDRAM/FCRAM Interface OperationThis section describes the operations of the SDRAM/FCRA

Page 594

583Chapter 31 External Bus9.SDRAM/FCRAM Interface OperationFigure 9-2 Single Read/Write Timing ChartSet the W07 and W06 bits in the area wait regist

Page 595 - 8. Prefetch Operation

ii6. EIT Vector Table... 1227. Multiple

Page 596 - 8.Prefetch Operation

44Chapter 3 MB91460 Series Basic Information2.I/O Map000DA4H-000DBCHreserved000DC0HEPFR00 [R/W]00000000EPFR01 [R/W]00000000EPFR02 [R/W]00000000EPFR03

Page 597

584Chapter 31 External Bus9.SDRAM/FCRAM Interface OperationFigure 9-4 Single Read/Write Timing Chart• Setting TYP to 1001Bcauses a read/write comman

Page 598

585Chapter 31 External Bus9.SDRAM/FCRAM Interface Operation Self RefreshWriting 1 to the SELF bit in the refresh control register (RCR) causes the S

Page 599

586Chapter 31 External Bus9.SDRAM/FCRAM Interface Operation9.3 Connecting SDRAM/FCRAM to Many AreasThis section shows the connecting SDRAM/FCRAM to

Page 600 - 9.1 Self Refresh

587Chapter 31 External Bus9.SDRAM/FCRAM Interface OperationFigure 9-6 Examples of combinations of access addresses and Row/BANK/Column addresses9.5

Page 601 - 9.2 Power-on Sequence

588Chapter 31 External Bus9.SDRAM/FCRAM Interface Operation● Using 8 - bit SDRAM/FCRAM (Big endian)Total data bus width of 32 bits: Use four SDRAM/FC

Page 602 - ■ Address Multiplexing Format

589Chapter 31 External Bus9.SDRAM/FCRAM Interface OperationFigure 9-7 Using 64 - Mbit SDRAMWhen SDRAM modules are used with a total data width of 16

Page 603 - Memory Connection Example

590Chapter 31 External Bus9.SDRAM/FCRAM Interface OperationFigure 9-8 Using 64 - Mbit SDRAMWhen using one SDRAM module with a data width of 16 bits,

Page 604

591Chapter 31 External Bus9.SDRAM/FCRAM Interface OperationSDRAM No. 2 is not required when the device is used with only one SDRAM module.

Page 605 - SDRAM(No.4)

592Chapter 31 External Bus10.DMA Access Operation10. DMA Access OperationThis section explains DMA access operation. DMA Access OperationThis secti

Page 606

593Chapter 31 External Bus10.DMA Access OperationFigure 10-1 Timing Chart for DMA Fly-By Transfer (I/O -> Memory)• Setting 1 for the W01 bit of t

Page 607

45Chapter 3 MB91460 Series Basic Information2.I/O Map000E00HPODR00 [R/W]00000000PODR01 [R/W]00000000PODR02 [R/W]00000000PODR03 [R/W]00000000R-bus Por

Page 608 - 10. DMA Access Operation

594Chapter 31 External Bus10.DMA Access Operation10.2 DMA Fly-By Transfer (Memory -> I/O)This section explains DMA fly-by transfer (memory ->

Page 609 - 10.DMA Access Operation

595Chapter 31 External Bus10.DMA Access OperationReference:For memory on the data output side, a read strobe of three bus cycles extended by the I/O

Page 610

596Chapter 31 External Bus10.DMA Access OperationFigure 10-3 Timing Chart for DMA Fly - by Transfer (I/O to SDRAM/FCRAM)memoryaddressDACKnIORDDEOPnD

Page 611

597Chapter 31 External Bus10.DMA Access Operation• For the I/O device on the data output side, a read strobe of three bus cycles extended by the I/O

Page 612

598Chapter 31 External Bus10.DMA Access Operation● At SDRAM page hit (Shortest)Figure 10-4 Timing Chart for DMA Fly - by Transfer (SDRAM/FCRAM to I/

Page 613

599Chapter 31 External Bus10.DMA Access OperationIf SDRAM access is shorter than I/O access, the SDRAM access is extended by the I/O access (base acc

Page 614

600Chapter 31 External Bus10.DMA Access Operation• For the I/O device on the receiving side, a write strobe of two bus cycles extended by the I/O wai

Page 615 - ● At SDRAM page misses

601Chapter 31 External Bus10.DMA Access OperationSignal (CL = 2)The rise of the IOWR signal can be delayed one cycle by extending SDRAM read access o

Page 616

602Chapter 31 External Bus10.DMA Access Operation10.5 2-Cycle Transfer (Internal RAM -> External I/O, RAM)This section explains 2-cycle transfer

Page 617

603Chapter 31 External Bus10.DMA Access Operation 2-Cycle Transfer (External -> I/O)Figure 10-9 "Timing Chart for 2-Cycle Transfer (External

Page 618

46Chapter 3 MB91460 Series Basic Information2.I/O Map000E64H-000E7CHreserved000E80HEPILR00 [R/W]00000000EPILR01 [R/W]00000000EPILR02 [R/W]00000000EPI

Page 619

604Chapter 31 External Bus10.DMA Access Operation 2-Cycle Transfer (I/O -> External)Figure 10-10 "Timing Chart for 2-Cycle Transfer (I/O -&g

Page 620

605Chapter 31 External Bus10.DMA Access Operation 2-Cycle Transfer (I/O -> SDRAM/FCRAM)Figure 4.10 - 11 shows an operation timing chart assuming

Page 621 - IOWR set to 00H

606Chapter 31 External Bus10.DMA Access OperationFigure 10-12 Timing Chart for Two - cycle Transfer (SDRAM/FCRAM to I/O)MCLKA31 to 0ASCSnRDCSnmemory

Page 622

607Chapter 31 External Bus10.DMA Access Operation• Bus access is the same as that of the interface for non - DMA transfer.• In base mode, DACKn/DEOPn

Page 623

608Chapter 31 External Bus11.Bus Arbitration11. Bus ArbitrationThis section shows timing charts for releasing the bus right and for acquiring the bu

Page 624 - 11. Bus Arbitration

609Chapter 31 External Bus11.Bus ArbitrationFigure 11-2 Timing Chart for Acquiring the Bus Right• Setting 1 for the BREN bit of the TRC register ena

Page 625 - 11.Bus Arbitration

610Chapter 31 External Bus12.Procedure for Setting a Register12. Procedure for Setting a RegisterThis section explains the procedure for setting a r

Page 626

611Chapter 31 External Bus13.Notes on Using the External Bus Interface13. Notes on Using the External Bus InterfaceThis section explains some notes

Page 627 - ■ Notes for Use

612Chapter 31 External Bus13.Notes on Using the External Bus Interface

Page 628

613Chapter 32 USART (LIN / FIFO)1.OverviewChapter 32 USART (LIN / FIFO)1. OverviewThis chapter explains the function and operation of the USART. The

Page 629 - Chapter 32 USART (LIN / FIFO)

47Chapter 3 MB91460 Series Basic Information2.I/O Map000EC0HPPER00 [R/W]00000000PPER01 [R/W]00000000PPER02 [R/W]00000000PPER03 [R/W]00000000R-bus Por

Page 630 - ■ USART operation modes

614Chapter 32 USART (LIN / FIFO)1.Overview USART operation modesThe USART operates in four different modes, which are determined by the MD0- and the

Page 631 - ■ USART Interrupts

615Chapter 32 USART (LIN / FIFO)1.Overview USART InterruptsTable 1-3 Mode Bit SettingMD1 MD0 Mode Description0 0 0 Asynchronous (normal mode)0 1 1

Page 632 - 2. USART Configuration

616Chapter 32 USART (LIN / FIFO)2.USART Configuration2. USART Configuration USART consists of the following blocks:• Reload Counter• Reception Contr

Page 633 - 2.USART Configuration

617Chapter 32 USART (LIN / FIFO)2.USART ConfigurationFigure 2-1 USART Block Diagram Explanation of the different blocks• Reload CounterThe reload co

Page 634

618Chapter 32 USART (LIN / FIFO)2.USART Configuration• Reception Data RegisterThis register retains reception data. Serial input data is converted and

Page 635

619Chapter 32 USART (LIN / FIFO)2.USART Configuration• Specifying a data length• Selecting a frame data format in mode 1• Clearing the error flags• Sp

Page 636 - 3. USART Pins

620Chapter 32 USART (LIN / FIFO)3.USART Pins3. USART Pins USART PinsThe USART pins also serve as general ports. Table 3-1 lists the pin functions,

Page 637 - 4. USART Registers

621Chapter 32 USART (LIN / FIFO)4.USART Registers4. USART RegistersThe following table defines the USART04 registers:(Note) FSR (FIFO status registe

Page 638 - 4.USART Registers

622Chapter 32 USART (LIN / FIFO)4.USART RegistersFigure 4-1 Serial Control Register 04 (SCR04)15 14 13 12 11 10 9 8Initial value0 0 0 0 0 0 0 0BR/W

Page 639

623Chapter 32 USART (LIN / FIFO)4.USART Registers* see table 4-3 for R/W optionsTable 4-2 Functions of each bit of control register 04 (SCR04)Bit na

Page 640

48Chapter 3 MB91460 Series Basic Information2.I/O Map000F24H-000F3CHreserved001000HDMASA0 [R/W]XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXXDMAC001004HDMADA0 [

Page 641

624Chapter 32 USART (LIN / FIFO)4.USART Registers4.2 Serial Mode Register 04 (SMR04)This register selects an operation mode and baud rate clock and

Page 642

625Chapter 32 USART (LIN / FIFO)4.USART Registers4.3 Serial Status Register 04 (SSR04)This register checks the transmission statuts, reception statu

Page 643

626Chapter 32 USART (LIN / FIFO)4.USART RegistersFigure 4-3 Configuration of the Serial Status register 04 (SSR04)15 14 13 12 11 10 9 8Initial value0

Page 644 - ■ Transmission:

627Chapter 32 USART (LIN / FIFO)4.USART RegistersTable 4-5 Functions of each bit of status register 04 (SSR04)Bit name Functionbit15 PE: Parity erro

Page 645

628Chapter 32 USART (LIN / FIFO)4.USART Registers4.4 Reception and Transmission Data Register (RDR04 / TDR04)The reception data register (RDR04) hol

Page 646

629Chapter 32 USART (LIN / FIFO)4.USART Registersenabled, a transmission interrupt is generated. Write the next part of transmission data when a tran

Page 647

630Chapter 32 USART (LIN / FIFO)4.USART Registers* see table 4-7 for SOPE and SIOP interaction4.6 Extended Communication Control Register (ECCR04)Th

Page 648

631Chapter 32 USART (LIN / FIFO)4.USART RegistersFigure 4-6 Configuration of the Extended Communication Control Register (ECCR04)Initial value0 0 0 0

Page 649

632Chapter 32 USART (LIN / FIFO)4.USART Registers4.7 Baud Rate / Reload Counter Register 0 and 1 (BGR04 / 14)The baud rate / reload counter register

Page 650

633Chapter 32 USART (LIN / FIFO)4.USART RegistersFigure 4-7 Baudrate Reload Counter Register 0 and 1 (BGR04 / 14)The Baud Rate / Reload Counter Regi

Page 651

49Chapter 3 MB91460 Series Basic Information2.I/O Map008000H-00BFFCHMB91V460 Boot-ROM size is 4kB : 00B000H - 00BFFCH(instruction access is 1 waitcyc

Page 652

634Chapter 32 USART (LIN / FIFO)4.USART Registers4.8 FIFO Control Register (FCR04)Figure 4-8 Configuration of FIFO control registe76543210Initial va

Page 653

635Chapter 32 USART (LIN / FIFO)4.USART Registers(Note) The RX triggerlevel sets the reception FIFO level where the reception interrupt is activated.

Page 654 - 5. USART Interrupts

636Chapter 32 USART (LIN / FIFO)4.USART Registers4.9 FIFO Status Register (FSR04)Figure 4-9 Configuration of FIFO status register(Note) The FSR04[4:

Page 655 - ■ Bus Idle Interrupt

637Chapter 32 USART (LIN / FIFO)4.USART RegistersTable 4-10 Functions of each bit of FIFO status RegisterBit name Functionbit 0 FIFO: number ofvalid

Page 656 - 5.USART Interrupts

638Chapter 32 USART (LIN / FIFO)5.USART Interrupts5. USART InterruptsThe USART uses both reception and transmission interrupts. An interrupt request

Page 657

639Chapter 32 USART (LIN / FIFO)5.USART Interrupts• - Framing error, i. e. a stop bit was expected, but a "0"-bit was received: FRE• - Pari

Page 658 - 6. USART Baud Rates

640Chapter 32 USART (LIN / FIFO)5.USART InterruptsFigure 5-1 Bus idle interrupt generation5.1 Reception Interrupt Generation and Flag Set TimingThe

Page 659 - 6.1 Setting the Baud Rate

641Chapter 32 USART (LIN / FIFO)5.USART Interrupts"7p1" and "8N1" (p = "E" [even] or "O" [odd]), all in NRZ d

Page 660 - ■ Counting Example

642Chapter 32 USART (LIN / FIFO)6.USART Baud Rates Transmission Interrupt Request Generation TimingIf the TDRE flag is set to 1 when a transmission

Page 661 - ■ Programmable Restart

643Chapter 32 USART (LIN / FIFO)6.USART Baud RatesFigure 6-1 Baud rate selection circuit (reload counter)6.1 Setting the Baud RateThis section desc

Page 662 - ■ Automatic Restart

50Chapter 3 MB91460 Series Basic Information2.I/O Map00C040HIF2CREQ0 [R/W]00000000 00000001IF2CMSK0 [R/W]00000000 00000000CAN 0IF 2 Register00C04

Page 663 - 7. USART Operation

644Chapter 32 USART (LIN / FIFO)6.USART Baud Rates Suggested Division Ratios for different machine speeds and baud ratesThe following settings are s

Page 664 - ■ Transmission Operation

645Chapter 32 USART (LIN / FIFO)6.USART Baud RatesFigure 6-2 Counting example of the reload counters(Note) The falling edge of the Serial Clock Sign

Page 665 - ■ Signal mode NRZ and RZ

646Chapter 32 USART (LIN / FIFO)6.USART Baud RatesFigure 6-3 Reload Counter Restart exampleIn this example the number of MCU clock cycles (cyc) afte

Page 666 - ■ Clock Supply

647Chapter 32 USART (LIN / FIFO)7.USART Operation7. USART OperationUSART operates in operation mode 0 for normal bidirectional serial communication,

Page 667 - ■ Communication

648Chapter 32 USART (LIN / FIFO)7.USART OperationTXE) and reception (SCR04: RXE). If each of the operations is disabled, stop it as follows:• If rece

Page 668 - ■ USART as LIN slave

649Chapter 32 USART (LIN / FIFO)7.USART OperationIf transmission interrupt is enabled (TIE = 1), the interrupt is generated by the TDRE flag. Note, t

Page 669 - ■ LIN bus timing

650Chapter 32 USART (LIN / FIFO)7.USART Operation Transfer data formatIn the synchronous mode, 8-bit data is transferred with no start or stop bits

Page 670 - ■ USART Direct Pin Access

651Chapter 32 USART (LIN / FIFO)7.USART OperationSPI). This will make sure, that the transmission data is valid and stable at any falling clock edge.

Page 671 - ■ Inter-CPU Connection

652Chapter 32 USART (LIN / FIFO)7.USART Operation• BDS: "0" for LSB first,"1" for MSB first• RIE: "1" if interrupts are

Page 672 - ■ Function Selection

653Chapter 32 USART (LIN / FIFO)7.USART OperationLIN break Interrupt is enabled (LBIE = 1) USART will generate a reception interrupt, if a synchroniz

Page 673 - ■ Communication Procedure

51Chapter 3 MB91460 Series Basic Information2.I/O Map00C080HTREQR20 [R]00000000 00000000TREQR10 [R]00000000 00000000CAN 0Status Flags00C084HTREQR

Page 674 - 7.USART Operation

654Chapter 32 USART (LIN / FIFO)7.USART OperationFigure 7-7 LIN bus timing and USART signals7.4 Direct Access to Serial PinsUSART allows the user to

Page 675 - ■ LIN device connection

655Chapter 32 USART (LIN / FIFO)7.USART Operation7.5 Bidirectional Communication Function (Normal Mode)In operation mode 0 or 2, normal serial bidir

Page 676 - ■ USART as master device

656Chapter 32 USART (LIN / FIFO)7.USART Operation Master-slave Communication FunctionThe settings shown in figure 7-10 are required to operate USART

Page 677 - ■ USART as slave device

657Chapter 32 USART (LIN / FIFO)7.USART OperationTable 7-3 Selection of the master-slave communication function Communication ProcedureWhen the mas

Page 678

658Chapter 32 USART (LIN / FIFO)7.USART OperationFigure 7-12 Master-slave communication flowchartStartSet operation mode 1Set SIN pin as theserial da

Page 679 - 8. Notes on using USART

659Chapter 32 USART (LIN / FIFO)7.USART Operation7.7 LIN Communication FunctionUSART communication with LIN devices is available for both LIN master

Page 680

660Chapter 32 USART (LIN / FIFO)7.USART Operation USART as master deviceFigure 7-15 USART LIN master flow chart STARTTIE = 0, RIE = 0Send Message?Y

Page 681 - C Controller

661Chapter 32 USART (LIN / FIFO)7.USART Operation USART as slave deviceFigure 7-16 USART LIN slave flow chart (part1) STARTInitialization:Set Opera

Page 682 - Chapter 33 I2C Controller

662Chapter 32 USART (LIN / FIFO)7.USART OperationFigure 7-17 USART LIN slave flow chart (part 2)SC Wake upfrom CPU?YNRIE = 1 0x00, 0x80,or 0xC0NY

Page 683 - C Interface Registers

663Chapter 32 USART (LIN / FIFO)8.Notes on using USART8. Notes on using USARTNotes on using USART are given below. Enabling OperationsIn USART, the

Page 684 - ■ Data Register (IDAR0)

52Chapter 3 MB91460 Series Basic Information2.I/O Map00C100HCTRLR1 [R/W]00000000 00000001STATR1 [R/W]00000000 00000000CAN 1ControlRegister00C104H

Page 685

664Chapter 32 USART (LIN / FIFO)8.Notes on using USART Baud Rate Detection Using the Input Capture UnitsThe USARTs provide the signal LSYN that can

Page 686 - 2.I2C Interface Registers

665Chapter 33 I2C Controller1.OverviewChapter 33 I2C Controller1. OverviewThe I2C interface is a serial I/O port supporting the Inter IC bus, operat

Page 687

666Chapter 33 I2C Controller1.Overview Block DiagramR-busI2C enableBus busyRepeated startSend/receiveBus ErrorStartMasterACK enableGC-ACK enableGene

Page 688

667Chapter 33 I2C Controller2.I2C Interface Registers2. I2C Interface RegistersThis section describes the function of the I2C interface registers in

Page 689

668Chapter 33 I2C Controller2.I2C Interface Registers Seven bit slave address MasK register (ISMK0) Seven Bit slave Address register (ISBA0) Data

Page 690

669Chapter 33 I2C Controller2.I2C Interface Registers2.1 Bus Control Register (IBCR0)The bus control register (IBCR0) has the following functions:•

Page 691

670Chapter 33 I2C Controller2.I2C Interface Registers[bit 14] BEIE (Bus Error Interrupt Enable)This bit enables the bus error interrupt. It can only

Page 692

671Chapter 33 I2C Controller2.I2C Interface RegistersThis bit is not valid when receiving address bytes in slave mode - if the interface detects its

Page 693

672Chapter 33 I2C Controller2.I2C Interface RegistersWhile this bit is ‘1’ the SCL line will hold an ‘L’ level signal. Writing ‘0’ to this bit clears

Page 694 - IBSR0 register is ‘1’

673Chapter 33 I2C Controller2.I2C Interface Registers2.2 Bus Status Register (IBSR0)The bus status register (IBSR0) has the following functions:• Bu

Page 695

53Chapter 3 MB91460 Series Basic Information2.I/O Map00C140HIF2CREQ1 [R/W]00000000 00000001IF2CMSK1 [R/W]00000000 00000000CAN 1IF 2 Register00C14

Page 696

674Chapter 33 I2C Controller2.I2C Interface Registers• a repeated start condition is generated by another master in the first bit of a data byte• the

Page 697 - 2.7 Data Register (IDAR0)

675Chapter 33 I2C Controller2.I2C Interface RegistersThis bit is cleared by a (repeated-) start or stop condition.[bit 0] ADT (Address Data Transfer)

Page 698

676Chapter 33 I2C Controller2.I2C Interface Registers2.3 Ten Bit Slave Address Register (ITBA0)This register (ITBAH0 / ITBAL0) designates the ten bi

Page 699 - ■ Prescaler settings:

677Chapter 33 I2C Controller2.I2C Interface Registers2.4 Ten Bit Address Mask Register (ITMK0)This register contains the ten bit slave address mask

Page 700 - Data sending

678Chapter 33 I2C Controller2.I2C Interface RegistersIBSR0 register is ‘1’.Note: If the address mask is changed after the interface had been enabled,

Page 701 - C Interface Operation

679Chapter 33 I2C Controller2.I2C Interface Registers2.5 Seven Bit Slave Address Register (ISBA0)This register designates the seven bit slave addre

Page 702 - ■ Acknowledgement

680Chapter 33 I2C Controller2.I2C Interface Registers2.6 Seven Bit Slave Address Mask Register (ISMK0)This register contains the seven bit slave add

Page 703 - Transfer End

681Chapter 33 I2C Controller2.I2C Interface Registers2.7 Data Register (IDAR0)[bit 15] - [bit 8] Not used.These bits always read ‘0’.[bit 7] - [bit

Page 704 - ■ Example Of Receiving Data

682Chapter 33 I2C Controller2.I2C Interface Registers2.8 Clock Control Register (ICCR0)The clock control register (ICCR0) has the following function

Page 705 - 4.Programming Flow Charts

683Chapter 33 I2C Controller2.I2C Interface Registers(Note) Because of the noise filter (depending on relationship between external signal and intern

Page 706

iii8. Explanations of Registers... 169Chapter 12 Instr

Page 707 - Chapter 34 CAN Controller

54Chapter 3 MB91460 Series Basic Information2.I/O Map00C180HTREQR21 [R]00000000 00000000TREQR11 [R]00000000 00000000CAN 1Status Flags00C184HTREQR

Page 708 - 2.1 Programmer’s Model

684Chapter 33 I2C Controller2.I2C Interface Registers SCL WaveformsFigure 2-1 SCL WaveformsFigure 2-1 shows the SCL waveform for sending of address

Page 709

685Chapter 33 I2C Controller3.I2C Interface Operation3. I2C Interface OperationThe I2C bus executes communication using two bi-directional bus lines

Page 710

686Chapter 33 I2C Controller3.I2C Interface Operation Slave Address MaskingOnly the bits set to ‘1’ in the mask registers (ITMK0 / ISMK0) are used f

Page 711 - 2.Register Description

687Chapter 33 I2C Controller4.Programming Flow Charts4. Programming Flow Charts Example Of Slave Addressing And Sending Data

Page 712

688Chapter 33 I2C Controller4.Programming Flow Charts Example Of Receiving DataStart INT=1?Last bytetransferred?NY BER=1?YNYBus errorNAddress slave

Page 713

689Chapter 33 I2C Controller4.Programming Flow Charts Example Of An Interrupt HandlerStartINT=1?AAS=1?NBER=1?YNBus errorreenable IFYYAL=1?NArbitrati

Page 714 - ■ Status Register (STATR)

690Chapter 33 I2C Controller4.Programming Flow Charts

Page 715

691Chapter 34 CAN Controller1.OverviewChapter 34 CAN Controller1. OverviewThe CAN performs communication according to the CAN protocol version 2.0 p

Page 716 - ■ Error Counter (ERRCNT)

692Chapter 34 CAN Controller2.Register Description2. Register DescriptionThis section lists the CAN registers and describes the function of each reg

Page 717 - ■ Bit Timing Register (BTR)

693Chapter 34 CAN Controller2.Register DescriptionBase-addr +0x10IF1 Command Request IF1 Command Maskbit[15:8] bit[7:0] bit[15:8] bit[7:0]Busy Mess.

Page 718 - ■ Test Register (TESTR)

55Chapter 3 MB91460 Series Basic Information2.I/O Map00C200HCTRLR2 [R/W]00000000 00000001STATR2 [R/W]00000000 00000000CAN 2ControlRegister00C204H

Page 719

694Chapter 34 CAN Controller2.Register DescriptionBase-addr +0x40IF2 Command Request IF2 Command Maskbit[15:8] bit[7:0] bit[15:8] bit[7:0]Busy Mess.

Page 720

695Chapter 34 CAN Controller2.Register DescriptionFigure 2-1 CAN Register SummaryFigure 2-2 CAN Prescaler Register Summary2.2 Hardware Reset Descr

Page 721

696Chapter 34 CAN Controller2.Register DescriptionAdditionally the busoff state is reset and the output CAN_TX is set to recessive(HIGH). The value 0

Page 722

697Chapter 34 CAN Controller2.Register Description Function of the CAN Control Register (CTRLR)(Note) The busoff recovery sequence (see CAN Specific

Page 723

698Chapter 34 CAN Controller2.Register Descriptionrecovery sequence, the Error Management Counters will be reset.(Note) During the waiting time after

Page 724 - ■ IFx Mask Registers (IFxMSK)

699Chapter 34 CAN Controller2.Register Description Function of the Status Register (STATR)[bit15 - bit8] Reserved Bits[bit7] BOff Busoff Status0 The

Page 725

700Chapter 34 CAN Controller2.Register DescriptionThe LEC field holds a code which indicates the type of the last error to occur on the CAN bus. This

Page 726

701Chapter 34 CAN Controller2.Register Description Function of the Error Counter (ERRCNT) Bit Timing Register (BTR)[bit15] RP Receive Error Passive

Page 727

702Chapter 34 CAN Controller2.Register Description Function of the Bit Timing Register (BTR)(Note) With a module clock CAN_CLK of 8 MHz, the reset v

Page 728

703Chapter 34 CAN Controller2.Register Description Function of the Test Register (TESTR)Write access to the Test Register is enabled by setting bit

Page 729

56Chapter 3 MB91460 Series Basic Information2.I/O Map00C240HIF2CREQ2 [R/W]00000000 00000001IF2CMSK2 [R/W]00000000 00000000CAN 2IF 2 Register00C24

Page 730 - ■ Interrupt Register (INTR)

704Chapter 34 CAN Controller2.Register Description BRP Extension Register (BRPER) Function of the BRP Extension Register (BRPER)2.4 Message Interf

Page 731

705Chapter 34 CAN Controller2.Register DescriptionFigure 2-3 IF1 and IF2 Message Interface Register Sets IFx Command Request Registers (IFxCREQ)A m

Page 732 - ■ New Data Registers (NEWDT)

706Chapter 34 CAN Controller2.Register Description Function of the IFx Command Request Registers (IFxCREQ)(Note) Note: The Busy Flag can only be use

Page 733

707Chapter 34 CAN Controller2.Register Description Function of the IFx Command Mask Register (IFxCMSK)The other bits of IFx Command Mask Register ha

Page 734

708Chapter 34 CAN Controller2.Register Description(Note) If a transmission is requested by programming bit TxRqst/NewDat in the IFx Command MaskRegis

Page 735

709Chapter 34 CAN Controller2.Register Description IFx Arbitration Registers (IFxARB)The bits of the Message Buffer registers mirror the Message Obj

Page 736 - 3.2 CAN Message Transfer

710Chapter 34 CAN Controller2.Register Description IFx Message Control Register (IFxMCTR) IFx Data A and Data B Registers (IFxDTA, IFxDTB)The data

Page 737 - 3.6 Loop Back Mode

711Chapter 34 CAN Controller2.Register Description2.5 Message Object in the Message MemoryThere are 32 Message Objects (up to 128 depending on the im

Page 738 - 3.8 Basic Mode

712Chapter 34 CAN Controller2.Register Description(Note) When 11-bit (“standard”) Identifiers are used for a Message Object, the identifiers of recei

Page 739 - 3.Functional Description

713Chapter 34 CAN Controller2.Register Description(Note) The Data Length Code of a Message Object must be defined the same as in all the correspondin

Page 740 - 4. CAN Application

57Chapter 3 MB91460 Series Basic Information2.I/O Map00C280HTREQR22 [R]00000000 00000000TREQR12 [R]00000000 00000000CAN 2Status Flags00C284HTREQR

Page 741 - 4.4 Transmission of Messages

714Chapter 34 CAN Controller2.Register Description(Note) Byte Data 0 is the first data byte shifted into the shift register of the CAN Core during a

Page 742 - 4.6 Reception of Data Frame

715Chapter 34 CAN Controller2.Register DescriptionIf several interrupts are pending, the CAN Interrupt Register will point to the pending interrupt w

Page 743

716Chapter 34 CAN Controller2.Register DescriptionIf more than 32 message buffers are implemented, the following table gives an overview about the ad

Page 744 - 4.CAN Application

717Chapter 34 CAN Controller2.Register DescriptionThese registers hold the NewDat bits of the 32 Message Objects. By reading out the NewDat bits, the

Page 745 - 4.16 Handling of Interrupts

718Chapter 34 CAN Controller2.Register DescriptionThese registers hold the IntPnd bits of the 32 Message Objects. By reading out the IntPnd bits, the

Page 746 - 4.17 Bit Time and Bit Rate

719Chapter 34 CAN Controller2.Register DescriptionThese registers hold the MsgVal bits of the 32 Message Objects. By reading out the MsgVal bits, the

Page 747 - Figure 4-5 Bit Timing

720Chapter 34 CAN Controller3.Functional Description3. Functional DescriptionThis chapter provides an overview of the CAN module’s operating modes a

Page 748

721Chapter 34 CAN Controller3.Functional DescriptionAutomatic Retransmission mode is enabled by setting the bit DAR in the CAN Control Register to on

Page 749 - Chapter 35 Free-Run Timer

722Chapter 34 CAN Controller3.Functional DescriptionFigure 3-2 CAN Core in Loop Back ModeThis mode is provided for self-test functions. To be indepe

Page 750 - 3. Configuration Diagram

723Chapter 34 CAN Controller3.Functional DescriptionThe IF1 Registers are used as Transmit Buffer. The transmission of the contents of the IF1 Regist

Page 751

58Chapter 3 MB91460 Series Basic Information2.I/O Map00C300HCTRLR3 [R/W]00000000 00000001STATR3 [R/W]00000000 00000000CAN 3ControlRegister00C304H

Page 752 - • bit4: Stop counting

724Chapter 34 CAN Controller4.CAN Application4. CAN ApplicationThis section describes how to use the CAN module in the application4.1 Management of

Page 753

725Chapter 34 CAN Controller4.CAN ApplicationFigure 4-1 Data Transfer between IFx Registers and Message RAMAfter the partial write of a Message Obje

Page 754

726Chapter 34 CAN Controller4.CAN Application4.5 Acceptance Filtering of Received MessagesWhen the arbitration and control field (Identifier + IDE +

Page 755

727Chapter 34 CAN Controller4.CAN ApplicationFigure 4-2 Initialisation of a Transmit ObjectThe Arbitration Registers (ID28-0 and Xtd bit) are given

Page 756

728Chapter 34 CAN Controller4.CAN ApplicationID18, ID17 - ID0 can then be disregarded. When a Data Frame with an 11-bit Identifier is received, ID17

Page 757

729Chapter 34 CAN Controller4.CAN Application4.15 Reading from a FIFO BufferWhen the CPU transfers the contents of Message Object to the IFx Message

Page 758

730Chapter 34 CAN Controller4.CAN ApplicationThe Status Interrupt has the highest priority. Among the message interrupts, the Message Object’ s inter

Page 759 - 7.6 Interrupt Types

731Chapter 34 CAN Controller4.CAN ApplicationFigure 4-5 Bit TimingTable 4-1 Parameters of the CAN Bit Time(Note) This table describes the minimum

Page 760

732Chapter 34 CAN Controller4.CAN Application

Page 761

733Chapter 35 Free-Run Timer1.OverviewChapter 35 Free-Run Timer1. OverviewThe free-run timer consists of a 16-bit timer (up counter) and control cir

Page 762 - Chapter 35 Free-Run Timer

59Chapter 3 MB91460 Series Basic Information2.I/O Map00C340HIF2CREQ3 [R/W]00000000 00000001IF2CMSK3 [R/W]00000000 00000000CAN 3IF 2 Register00C34

Page 763 - Chapter 36 Input Capture

734Chapter 35 Free-Run Timer3.Configuration Diagram3. Configuration DiagramFigure 3-1 Configuration DiagramFigure 3-2 Register ListNote: See “Chapte

Page 764

735Chapter 35 Free-Run Timer4.Registers4. Registers4.1 TCCS: Timer Control RegisterA register for controlling the operation of the free-run timer.•

Page 765

736Chapter 35 Free-Run Timer4.Registers• bit4: Stop counting• When the count stop bit is set to “1”, the free-run timer stops.• When the output compa

Page 766

737Chapter 35 Free-Run Timer4.Registers• bit3: Clear mode• Set the clear mode of the free-run timer.• If the clear mode bit is set to “1”, when the c

Page 767

738Chapter 35 Free-Run Timer4.Registers4.2 TCDT: Timer Data RegisterThis register can read 16-bit free-run timer count values.• TCDT0 (free-run time

Page 768

739Chapter 35 Free-Run Timer5.Operation5. Operation5.1 Count Operation of the Free-run Timer(1) Reset(2) Clearing of the free-run timer by reset. (

Page 769 - • Both edges

740Chapter 35 Free-Run Timer5.Operation5.2 Various Clear Operations of the Free-run TimerClear operations of the free-run timer (4 types)(1) Reset(2

Page 770

741Chapter 35 Free-Run Timer6.Setting6. Setting*: For the setting procedure, refer to the section indicated by the number.*: For the setting procedu

Page 771

742Chapter 35 Free-Run Timer7.Q & A7. Q & A7.1 What are the types of the internal clock, and how do I select?There are 4 types of internal

Page 772

743Chapter 35 Free-Run Timer7.Q & A7.4 How do I clear the free-run timer?You can clear the free-run timer by performing the following operations

Page 773

60Chapter 3 MB91460 Series Basic Information2.I/O Map00C380HTREQR23 [R]00000000 00000000TREQR13 [R]00000000 00000000CAN 3Status Flags00C384HTREQR

Page 774

744Chapter 35 Free-Run Timer7.Q & AUse interrupt request enable bit (TCCS.IVFE) to enable interrupts.Use interrupt request bit (TCCS.IVF) to clea

Page 775 - Chapter 37 Output Compare

745Chapter 35 Free-Run Timer8.Caution8. Caution• Clearing the free-run timer• When you reset (the INIT pin input, the watchdog reset, the software r

Page 776

746Chapter 35 Free-Run Timer8.Caution

Page 777

747Chapter 36 Input Capture1.OverviewChapter 36 Input Capture1. OverviewInput Capture records the free-run timer count value using timing detected f

Page 778

748Chapter 36 Input Capture3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 Register ListNote: For information about ICR re

Page 779 - CST0 Operation

749Chapter 36 Input Capture4.Register4. Register4.1 IPCP: Input Capture Data RegisterA register that, using changes in an external signal as a trig

Page 780 - 4.2 OCCP: Compare Register

750Chapter 36 Input Capture4.Register4.2 ICS: Input Capture Control RegisterA register for controlling input capture• ICS01 (Input capture 0-1): Ad

Page 781

751Chapter 36 Input Capture4.Register• bit3-bit2: Input capture 1 active edge selection• Select the active capture edge for the input capture signal

Page 782

752Chapter 36 Input Capture5.Operation5. OperationThe input capture operation is described below.5.1 Capture Timing, Interrupt Timing(1) Rising edg

Page 783

753Chapter 36 Input Capture5.Operation5.2 Input Capture Edge Specification and Operation• When specifying rising edge(1) Detection of rising edge of

Page 784

61Chapter 3 MB91460 Series Basic Information2.I/O Map00C400HCTRLR4 [R/W]00000000 00000001STATR4 [R/W]00000000 00000000CAN 4ControlRegister00C404H

Page 785 - (OCS67.OTD[1:0])

754Chapter 36 Input Capture6.Settings6. Settings*: For the setting procedure, refer to the section indicated by the number.*: For the setting proced

Page 786

755Chapter 36 Input Capture7.Q&A7. Q&A7.1 What are the varieties of active edge polarity for external input, and how do I selectthem?The ac

Page 787

756Chapter 36 Input Capture7.Q&AInterrupt request flags (ICS01.ICP0), (ICS01.ICP1), (ICS23.ICP0), (ICS23.ICP1), (ICS45.ICP0), (ICS45.ICP1),(ICS67

Page 788

757Chapter 36 Input Capture7.Q&A7.6 How do I measure the pulse width of the input signal?• "H" Width measurement:Specify both edges fo

Page 789

758Chapter 36 Input Capture8.Caution8. Caution• Input capture registerThe value of the input capture register during reset is indeterminate.Read out

Page 790

759Chapter 37 Output Compare1.OverviewChapter 37 Output Compare1. OverviewOutput compare is a feature that compares the value set to the compare reg

Page 791 - Chapter 38 Reload Timer

760Chapter 37 Output Compare3.Configuration Diagram3. Configuration DiagramFigure 3-1 Configuration DiagramFigure 3-2 Register ListNote: For inform

Page 792

761Chapter 37 Output Compare4.Registers4. Registers4.1 OCS: Output Control RegisterA register for controlling the operation of output compare.• OCS

Page 793 - No.311)”

762Chapter 37 Output Compare4.Registers• bit7: Interrupt request flag (output compare 1)• If free-run timer count value TCDT0 matches the output comp

Page 794

763Chapter 37 Output Compare4.Registers• bit0: Enable operation requests (output compare 0)• A bit that enables a comparison operation between the fr

Page 795

62Chapter 3 MB91460 Series Basic Information2.I/O Map00C440HIF2CREQ4 [R/W]00000000 00000001IF2CMSK4 [R/W]00000000 00000000CAN 4IF 2 Register00C44

Page 796 - • bit1: Enable timer count

764Chapter 37 Output Compare4.Registers4.2 OCCP: Compare RegisterRegister that sets the value to be compared to the 16 bit free-run timer count valu

Page 797 - 4.3 TMRLR: Reload register

765Chapter 37 Output Compare5.Operation5. Operation5.1 Output Compare Output (Independent Reversal) CMODE=“0”(1) Free-run timer clear/reset(2) Comp

Page 798

766Chapter 37 Output Compare5.Operation5.2 Output Compare Output (Cooperative Reversal) CMODE=“1”(1) Free-run timers clear/reset(2) Compare 0 and co

Page 799 - Chapter 38 Reload Timer

767Chapter 37 Output Compare6.Settings6. Settings*: For the setting procedure, refer to the section indicated by the number.*: For the setting proce

Page 800

768Chapter 37 Output Compare7.Q & A7. Q & A7.1 How do I set the compare value?Write the compare value to compare registers OCCP0 - OCCP7.7.

Page 801 - 5.5 Operation during Reset

769Chapter 37 Output Compare7.Q & A7.4 How do I set the initial level of the compare pin output?Set it with compare pin output specification bit

Page 802 - 5.9 Status Transition

770Chapter 37 Output Compare7.Q & A7.5 How do I set the output for compare pins OCU0-OCU7?Set it with port function register (PFR15[7:0]).7.6 H

Page 803

771Chapter 37 Output Compare7.Q & AInterrupt request flags (OCS01. ICP[1:0]), (OCS23. ICP[1:0]), (OCS45. ICP[1:0]), (OCS67. ICP[1:0]), are notaut

Page 804

772Chapter 37 Output Compare7.Q & A7.11 How do I enable interrupts?Enabling of interrupts is done with interrupt request permission bit (OCS01.

Page 805

773Chapter 37 Output Compare8.Caution8. Caution• Compare stop space during compare operationAs shown below, for one count directly after the compare

Page 806

63Chapter 3 MB91460 Series Basic Information2.I/O Map00C480HTREQR24 [R]00000000 00000000TREQR14 [R]00000000 00000000CAN 4Status Flags00C484HTREQR

Page 807

774Chapter 37 Output Compare8.Caution

Page 808

775Chapter 38 Reload Timer1.OverviewChapter 38 Reload Timer1. OverviewThe reload timer uses a 16 bit down counter to detect the input signal trigger

Page 809

776Chapter 38 Reload Timer3.Configuration Reload timer 2 : PPG4, PPG5 Reload timer 3 : PPG6, PPG7 Reload timer 4 : PPG8, PPG9 Reload timer 5 : PPG10,

Page 810

777Chapter 38 Reload Timer3.ConfigurationFigure 3-2 Configuration DiagramFigure 3-3 Register ListNote: For information about ICR registers and inter

Page 811

778Chapter 38 Reload Timer4.Registers4. Registers4.1 TMCSR: Reload Timer Control Status RegisterThe control status register controls the operation

Page 812

779Chapter 38 Reload Timer4.Registers• bit9-7: Operation mode selectionReload trigger when internal clock is selectedWhen the selected reload trigger

Page 813 - PPG (0-3)

780Chapter 38 Reload Timer4.Registersinterrupt request is enabled (INTE=“1”) an interrupt request is generated.• bit1: Enable timer countIf timer cou

Page 814

781Chapter 38 Reload Timer4.Registers• bit0: Software triggerIf the count operation is enabled (CNTE=“1”) and the software trigger bit is set to “1”,

Page 815

782Chapter 38 Reload Timer5.Operation(For information on attributes, see “Meaning of Bit Attribute Symbols (Page No.10)”.)The reload value for the do

Page 816

783Chapter 38 Reload Timer5.Operation5.2 Internal Clock/One-shot ModeIn one-shot mode, a one-shot pulse is output.(1) Set reload value to reload reg

Page 817

iv3. Configuration ... 2504. Regist

Page 818

64Chapter 3 MB91460 Series Basic Information2.I/O Map00C500HCTRLR5 [R/W]00000000 00000001STATR5 [R/W]00000000 00000000CAN 5ControlRegister00C504H

Page 819

784Chapter 38 Reload Timer5.Operation5.3 External Event Clock Reload ModeExternal event reload mode counts external events and outputs a pulse with

Page 820

785Chapter 38 Reload Timer5.Operation5.4 External Event Clock/One-shot ModeIn external event one-shot mode, external events are counted and a one-sh

Page 821

786Chapter 38 Reload Timer5.Operation5.8 Operation when Returning from Stop ModeWhen returning due to an external interrupt, the reload timer will c

Page 822

787Chapter 38 Reload Timer6.Setting6. Setting*: For the setting procedure, refer to the section indicated by the number.*: For the setting procedure

Page 823 - 4.6 PTMR: PPG Timer Register

788Chapter 38 Reload Timer6.Setting*: For the setting procedure, refer to the section indicated by the number.*: For the setting procedure, refer to

Page 824 - 5.1 PWM Operation

789Chapter 38 Reload Timer7.Q & A7. Q & A7.1 What is the reload value setting (rewriting) procedure?The reload value is set by the 16 bit r

Page 825 - 5.2 One-Shot Operation

790Chapter 38 Reload Timer7.Q & AReload mode, Initial value “L” level outputSet to “0”Reload mode, initial value “H” level output (reversed) Set

Page 826 - 5.3 Restart Operation

791Chapter 38 Reload Timer7.Q & A7.6 What are the kinds of triggers, and how do I select them?• Selection is done via the trigger selection bit

Page 827

792Chapter 38 Reload Timer7.Q & A7.10 How do I generate an activation trigger?• Generating a soft triggerThe setting is done via the software tr

Page 828

793Chapter 38 Reload Timer7.Q & AEnabling of interrupts is done via the interrupt request permission bit (TMCSR0.INTE) ~ (TMCSR7.INTE).Clearing o

Page 829

65Chapter 3 MB91460 Series Basic Information2.I/O Map00C540HIF2CREQ5 [R/W]00000000 00000001IF2CMSK5 [R/W]00000000 00000000CAN 5IF 2 Register00C54

Page 830

794Chapter 38 Reload Timer8.Caution8. Caution• Count source select bit (TMCSR.CSL[2:0]) settings not in the table: “100”, “111” are disabled.If they

Page 831

795Chapter 39 Programmable Pulse Generator1.OverviewChapter 39 Programmable Pulse Generator1. OverviewProgrammable Pulse Generators (PPGs) are used

Page 832

796Chapter 39 Programmable Pulse Generator2.Features• Interrupt: Choose from four choices:• Software trigger• Counter borrow (cycle match)• Duty matc

Page 833

797Chapter 39 Programmable Pulse Generator3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 Register ListORTriggerORMDSE PCN

Page 834

798Chapter 39 Programmable Pulse Generator3.ConfigurationNote: For more information about the ICR register and interrupt vector, see “Chapter 24 Inter

Page 835

799Chapter 39 Programmable Pulse Generator4.Registers4. Registers4.1 PCSR: PPG Cycle Setting Register Controls the cycle of the PPG.• PCSR00 (PPG0)

Page 836

800Chapter 39 Programmable Pulse Generator4.Registers4.2 PDUT: PPG Duty Setting RegisterSets the duty of the PPG output waveform.• PDUT00 (PPG0): Ad

Page 837

801Chapter 39 Programmable Pulse Generator4.Registers4.3 PCN: PPG Control Status registerControls the operations and status of PPGs.• PCN00 (PPG0):

Page 838

802Chapter 39 Programmable Pulse Generator4.Registers• Bit 13: Mode selection• When the Mode Selection bit is set to “0”, a PWM operation is enabled

Page 839 - 1. PFM Overview

803Chapter 39 Programmable Pulse Generator4.RegistersIf the Interrupt Request flag (IRQF) equals “1” and writing “0” to the flag take place at the sa

Page 840 - 1.PFM Overview

66Chapter 3 MB91460 Series Basic Information2.I/O Map00C580HTREQR25 [R]00000000 00000000TREQR15 [R]00000000 00000000CAN 5Status Flags00C584HTREQR

Page 841

804Chapter 39 Programmable Pulse Generator4.Registers4.4 GCN1: General Control register 1Selects a trigger input to PPG0-PPG3, PPG4-PPG7, PPG8-PPG11

Page 842 - 2. Reload Counter Registers

805Chapter 39 Programmable Pulse Generator4.Registers• PPG0 to PPG15 as selected are activated when the edge specified by the Trigger Input Edge Sele

Page 843 - 2.Reload Counter Registers

806Chapter 39 Programmable Pulse Generator4.Registers4.5 GCN2: General Control Register 2Generates PPG0-PPG3, PPG4-PPG7, PPG8-PPG11 and PPG12-PPG15

Page 844 - ● P0TMR, P1TMR structure

807Chapter 39 Programmable Pulse Generator4.Registers4.6 PTMR: PPG Timer RegisterReads the counts of PPG0-PPG3, PPG4-PPG7, PPG8-PPG11 and PPG12-PPG1

Page 845 - ● P0TMRLR, P1TMRLR structure

808Chapter 39 Programmable Pulse Generator5.Operation5. OperationThe MB91460 series features a maximum of 16 programmable pulse generators (PPGs), w

Page 846 - Underflow operation

809Chapter 39 Programmable Pulse Generator5.Operation• Equation Period = {Period value (PCSR) + 1} x Count clock Duty = {Duty value (PDUT) + 1} x Cou

Page 847 - ■ Counter Operation States

810Chapter 39 Programmable Pulse Generator5.Operation5.3 Restart OperationThe restart operation is described below.• Restart available in PWM operat

Page 848 - ● Counter state transitions

811Chapter 39 Programmable Pulse Generator6.Setting6. Setting* For refer to the section indicated by the number.*For the setting procedure, refer to

Page 849 - 4. PFM Operation and Setting

812Chapter 39 Programmable Pulse Generator6.Setting*:For the setting procedure, refer to the section indicated by the number.PPG interrupt cause sele

Page 850 - 4.PFM Operation and Setting

813Chapter 39 Programmable Pulse Generator7.Q & A7. Q & A7.1 How do I set (rewrite) a cycle and a duty?Period and duty value settings• Set

Page 851 - Chapter 41 Up/Down Counter

67Chapter 3 MB91460 Series Basic Information2.I/O Map00F000HBCTRL [R/W]- - - - - - - - - - - - - - - - 11111100 00000000EDSU / MPU00F004HBSTA

Page 852

814Chapter 39 Programmable Pulse Generator7.Q & A7.5 What count clocks are available and how are they selected?Count clock selectionThe count cl

Page 853 - Chapter 41 Up/Down Counter

815Chapter 39 Programmable Pulse Generator7.Q & A7.7 What activation triggers are available and how are they selected?• Trigger selection• Activ

Page 854 - Selector

816Chapter 39 Programmable Pulse Generator7.Q & ATriggers are selectable for PPG8, PPG9, PPG10, and PPG11 independently.Triggers are selectable f

Page 855 - Figure 3-6 Register List

817Chapter 39 Programmable Pulse Generator7.Q & A7.8 How do I invert the output polarity?Output polarity specificationThe polarity in the normal

Page 856

818Chapter 39 Programmable Pulse Generator7.Q & A7.10 How do I generate an activation trigger?Generating a triggerMethods of generating an activ

Page 857

819Chapter 39 Programmable Pulse Generator7.Q & AThe Interrupt Request flag (PCN.IRQF) does not clear itself automatically. Use software to clear

Page 858

820Chapter 39 Programmable Pulse Generator7.Q & A7.13 What interrupts are available and how are they selected?Interrupt cause selectionFour kind

Page 859

821Chapter 39 Programmable Pulse Generator8.Caution8. Caution• If the Interrupt Request flag (PCN.IRQF) equals “1” and the Interrupt Request flag is

Page 860 - • bit1,0: Up/down flag

822Chapter 39 Programmable Pulse Generator8.Caution

Page 861 - ■ 8 Bit Mode (M16E=“0”)

823Chapter 40 Pulse Frequency Modulator1.PFM OverviewChapter 40 Pulse Frequency ModulatorThis chapter provides an overview of the 16-bit pulse freque

Page 862 - ■ 16 Bit Mode (M16E=“1”)

68Chapter 3 MB91460 Series Basic Information2.I/O Map00F080HBAD0 [R/W]XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXXEDSU / MPU00F084HBAD1 [R/W]XXXXX

Page 863 - (1) Stop counting

824Chapter 40 Pulse Frequency Modulator1.PFM Overview 16-bit Reload Counter 0 Register Configuration 16-bit Reload Counter 1 Register Configuration

Page 864 - 5.1 Timer Mode CMS[1:0]=“00”

825Chapter 40 Pulse Frequency Modulator1.PFM Overview Block Diagram of the 16-Bit Pulse Frequency ModulatorFigure 1-2 Block Diagram of the 16-bit P

Page 865 - Interrupt

826Chapter 40 Pulse Frequency Modulator2.Reload Counter Registers2. Reload Counter RegistersThis section describes the 16-bit pulse frequency modula

Page 866 - ZIN=Gate control

827Chapter 40 Pulse Frequency Modulator2.Reload Counter Registers[Bits 9] ReservedAlways set to "0".[Bits 8] MOD1Sets the Trigger level to

Page 867 - Count value

828Chapter 40 Pulse Frequency Modulator2.Reload Counter RegistersWriting "1" sets the counter to wait for a trigger.Writing "0" s

Page 868

829Chapter 40 Pulse Frequency Modulator2.Reload Counter Registers● P0TMRLR, P1TMRLR structureFigure 2-3 Structure of the 16-bit Reload RegisterAcces

Page 869 - CSTR or ZIN gate function

830Chapter 40 Pulse Frequency Modulator3.Reload Counter Operation3. Reload Counter OperationThis section describes the operations of the 16-bit relo

Page 870 - Up/Down Counter

831Chapter 40 Pulse Frequency Modulator3.Reload Counter Operation● Underflow operation timingFigure 3-2 Underflow Operation Timing Counter Operation

Page 871

832Chapter 40 Pulse Frequency Modulator3.Reload Counter Operation● Counter state transitionsFigure 3-3 Counter State TransitionsResetState transitio

Page 872

833Chapter 40 Pulse Frequency Modulator4.PFM Operation and Setting4. PFM Operation and SettingThis section describes the following operations of the

Page 873

69Chapter 3 MB91460 Series Basic Information2.I/O Map00F0C0HBAD16 [R/W]XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXXEDSU / MPU00F0C4HBAD17 [R/W]XXX

Page 874

834Chapter 40 Pulse Frequency Modulator4.PFM Operation and Setting

Page 875

835Chapter 41 Up/Down Counter1.OverviewChapter 41 Up/Down Counter1. OverviewTriggered by an input signal, 16-bit Up/Down Counter counts up or down w

Page 876

836Chapter 41 Up/Down Counter3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramUDCR0UDRC0CITEUDCS0: bit601CMS1-0 UDCC0: bit11-1000110110

Page 877

837Chapter 41 Up/Down Counter3.ConfigurationFigure 3-2 Configuration DiagramUDCR1UDRC1CITEUDCS1: bit601CMS1-0 UDCC1: bit11-1000110110CES1-0 UDCC1: bit

Page 878

838Chapter 41 Up/Down Counter3.ConfigurationFigure 3-3 Configuration DiagramFigure 3-4 Register ListNote: For ICR registers and interrupt vectors, re

Page 879 - Chapter 42 Sound Generator

839Chapter 41 Up/Down Counter3.ConfigurationFigure 3-5 Register ListNote: For ICR registers and interrupt vectors, refer to “Chapter 24 Interrupt Co

Page 880 - 2. Block Diagram

840Chapter 41 Up/Down Counter4.Register4. Register4.1 UDCC: Counter Control RegisterThis register is used to control behaviors of Up/Down Counter.•

Page 881

841Chapter 41 Up/Down Counter4.RegisterFCLKP: Frequency of Peripheral clock (CLKP)This setting is enabled only in the timer mode, in which only count

Page 882 - 3.1 Register Details

842Chapter 41 Up/Down Counter4.Register• bit1,0: Select counter clear/gate edgeCGE1 CGE0Edge detection/level selectionWhen the counter clear function

Page 883 - Chapter 42 Sound Generator

843Chapter 41 Up/Down Counter4.Register4.2 UDCS: Count Status RegisterThis register is used to control Up/Down Counter and to indicate the status of

Page 884 - ■ Tone Count Register (SGTR)

70Chapter 3 MB91460 Series Basic Information2.I/O Map010000H-013FFCHCache TAG way 1(010000H - 0107FCH)2 way setassociativeI-Cache4kB014000H-017FFCHCa

Page 885

844Chapter 41 Up/Down Counter4.RegisterTo enable interrupt requests, the interrupt request permission bit must be set (UDIE= “1”).• bit1,0: Up/down f

Page 886

845Chapter 41 Up/Down Counter4.Register4.3 UDCR: Up/Down Counter RegisterThis register is used to read the count value of Up/Down Counter.• UDCR10 (

Page 887

846Chapter 41 Up/Down Counter4.Register4.4 UDRC: Up/Down Reload/Compare RegisterThis register is used to reload a value to Up/Down Counter and for c

Page 888 - 2. Registers

847Chapter 41 Up/Down Counter4.Register (1) Stop counting. (2) Write a value to the reload/compare register. (3) Write “1”to the counter write bit

Page 889

848Chapter 41 Up/Down Counter5.Operation5. OperationThis section describes each operation mode for Up/Down Counter.5.1 Timer Mode CMS[1:0]=“00” (1)

Page 890 - 2.2 PWM Control Register

849Chapter 41 Up/Down Counter5.Operation5.2 Up/Down Count Mode CMS[1:0]=“01”Up/Down Counter clear control using the ZIN pin (1) Appropriate bits (Co

Page 891 - [bit 1 to 0] Reserved bits

850Chapter 41 Up/Down Counter5.Operation5.3 Up/Down Count Mode CMS[1:0]=“01”Countgate at the ZIN pin (1) Appropriate bits (Counting enable CSTR, Rel

Page 892

851Chapter 41 Up/Down Counter5.Operation5.4 Phase Difference Count Mode (Multiply by 2) CMS[1:0]=“10”Frequency multiplied by 2 in phase difference c

Page 893 - H (3FFH)

852Chapter 41 Up/Down Counter5.Operation5.5 Phase Difference Count Mode (Multiply by 4) CMS[1:0]=“11”Frequency multiplied by 4 in phase difference c

Page 894

853Chapter 41 Up/Down Counter5.Operation5.6 Clear Timing (1) When a clear request (Compare-match, ZIN edge detection and writing “0” to the clear bi

Page 895 - 000h3FFh 3FFh 000h 3FFh 000h

71Chapter 3 MB91460 Series Basic Information2.I/O Map020000H-02FFFCHMB91V460 D-RAM size is 64kB : 020000H - 02FFFCH(data access is 0 waitcycles)D-RAM

Page 896 - 2.Registers

854Chapter 41 Up/Down Counter5.Operation5.7 Reload TimingThe next time when Up/Down Counter counts down below “0000”, an underflow occurs (an interr

Page 897 - 3. Operation

855Chapter 41 Up/Down Counter6.Setting6. Setting*: For the setting procedure, refer to the section indicated by the number.*: For the setting proced

Page 898 - 3.Operation

856Chapter 41 Up/Down Counter6.Setting*: For the setting procedure, refer to the section indicated by the number.*: For the setting procedure, refer

Page 899 - 4. Caution

857Chapter 41 Up/Down Counter7.Q&A7. Q&A7.1 How do I select a bit length (8 or 16) of Up/Down Counter?Use the 16 bit mode enable bit (UDCC.

Page 900 - 4.Caution

858Chapter 41 Up/Down Counter7.Q&A7.7 How do I enable reloading of the reload value (RCR[1:0]) to Up/Down Counter whenUp/Down Counter is underflo

Page 901 - Chapter 44 A/D Converter

859Chapter 41 Up/Down Counter7.Q&A7.11 How do I enable/disable Up/Down Counter's count operation?Use the count activate bit (UDCS.CSTR).• H

Page 902 - Chapter 44 A/D Converter

860Chapter 41 Up/Down Counter7.Q&A7.15 How do I know that an overflow or underflow has occurred?Use the overflow detection flag (UDCS.OVFF) and th

Page 903 - ■ Register list

861Chapter 41 Up/Down Counter7.Q&A7.19 How do I enable (select), disable or clear interrupts?Interrupt request enable and interrupt request flag

Page 904

862Chapter 41 Up/Down Counter8.Caution8. Caution• The count direction is set to “countdown” immediately after resetting the counter. So, when the co

Page 905 - ■ A/D enable register (ADER)

863Chapter 42 Sound Generator1.OverviewChapter 42 Sound Generator1. OverviewThis Chapter provides an overview of the Sound Generator, describes the

Page 906

72Chapter 3 MB91460 Series Basic Information2.I/O MapNotes:*1Use a read access (byte or halfword) to this address to synchronize the CPU operation (e

Page 907

864Chapter 42 Sound Generator2.Block Diagram2. Block Diagram8bit PWM pulseGeneratorPrescalerS1 S0Amplitude DataregisterCOENPWMDECCLKPTone PulseCount

Page 908

865Chapter 42 Sound Generator3.Registers3. Registers 7 6 5 4 3 2 1 0TST DECSGCRL(R/W) (R/W) (R/W) (R/W) (0) (0) (0) (0)Bit numberSound Control re

Page 909

866Chapter 42 Sound Generator3.Registers3.1 Register Details Sound Control Register (SGCR)[bit 15] TST : Test bitThis bit is prepared for the devic

Page 910

867Chapter 42 Sound Generator3.Registers[bit 2] INTE : Interrupt enable bitThis bit enables the interrupt signal of the Sound Generator. When this bi

Page 911

868Chapter 42 Sound Generator3.Registersvalue represents the amplitude of the sound. The register value is reloaded into the PWM pulsegenerator at th

Page 912 - ■ Stop Mode

869Chapter 42 Sound Generator3.Registersreaches the reload value it sets the INT bit. They are intended to reduce the frequency ofinterrupts.The coun

Page 913 - 4.Operation of A/D Converter

870Chapter 42 Sound Generator3.Registers

Page 914 - 4.2 Scan conversion mode

871Chapter 43 Stepper Motor Controller1.OverviewChapter 43 Stepper Motor Controller1. OverviewThe stepping motor controller consists of PWM pulse ge

Page 915 - 5. Setting

872Chapter 43 Stepper Motor Controller2.RegistersFigure 1-2 Stepping Motor ControllerRemark: The SMC channels 4 and 5 are not shared with ADC inputs

Page 916

873Chapter 43 Stepper Motor Controller2.Registers2.1 Registers for Stepping Motor ControllerPWM2 Compare register (PWC20, PWC21, PWC22, PWC23, PWC24

Page 917 - 6. Q & A

73Chapter 3 MB91460 Series Basic Information3.Interrupt Vector Table3. Interrupt Vector TableThis section shows the allocation of interrupt and inte

Page 918

874Chapter 43 Stepper Motor Controller2.Registers2.2 PWM Control RegisterThe PWM control register starts/stops the stepping motor controller, perfor

Page 919

875Chapter 43 Stepper Motor Controller2.RegistersPWM pulse generator operates at 8 bit.[bit 1 to 0] Reserved bitsAlways set the reserved bits to &quo

Page 920

876Chapter 43 Stepper Motor Controller2.Registers2.3 PWM1&2 Compare RegistersThe value of the two 8(10) bits compare register of PWM1&2 dete

Page 921

877Chapter 43 Stepper Motor Controller2.RegistersFigure 2-1 Relationship between the Compare Register Setting Value and PWM Pulse WidthOne PWM cycle

Page 922

878Chapter 43 Stepper Motor Controller2.Registers2.4 PWM1&2 Selection RegistersThe PWM1&2 selection registers determine whether to set the o

Page 923 - (N+1)T - VNT

879Chapter 43 Stepper Motor Controller2.RegistersFigure 2-2 load timing of PWM compare register valueAutomatic clear and "1" simultaneousl

Page 924 - • Overall error

880Chapter 43 Stepper Motor Controller2.Registers[bit 13 to 11] P2 to P0: Output select bitsThese bits are used to select the output signal for SMC2

Page 925 - Chapter 45 D/A Converter

881Chapter 43 Stepper Motor Controller3.Operation3. OperationThe operation of the stepping motor controller is explained. Setting Operation of Step

Page 926 - D/A converter (0-1)

882Chapter 43 Stepper Motor Controller3.OperationFigure 3-2 Examples of PWM1&2 Waveform Output Selection of motor drive signalsMotor drive sign

Page 927 - 4.1 DADR: D/A Data Register

883Chapter 43 Stepper Motor Controller4.Caution4. CautionThe caution when using the stepping motor controller are described below. Caution when Cha

Page 928 - 1 D/A resolution is 8 bits

v4. Register ... 3015. Oper

Page 929

74Chapter 3 MB91460 Series Basic Information3.Interrupt Vector TableExternal Interrupt 8 24 18ICR04 0x4440x39C 0x000FFF9CExternal Interrupt 9 25 19 0

Page 930

884Chapter 43 Stepper Motor Controller4.Caution

Page 931

885Chapter 44 A/D Converter1.Overview of A/D ConverterChapter 44 A/D ConverterThis chapter provides an overview of the A/D converter, describes the r

Page 932 - 8. Caution

886Chapter 44 A/D Converter2.Block Diagram of A/D Converter2. Block Diagram of A/D ConverterFollowing figure shows block diagram of A/D converter.Bl

Page 933 - Chapter 46 Alarm Comparator

887Chapter 44 A/D Converter3.Registers of A/D Converter3. Registers of A/D ConverterThe A/D converter has the following registers.• • A/D enable reg

Page 934 - Chapter 46 Alarm Comparator

888Chapter 44 A/D Converter3.Registers of A/D Converter• ADCS0 (ADC0): Address 01A5h (Access: Half-word, Byte)(See “Meaning of Bit Attribute Symbols

Page 935 - 4.2 Polling Mode (IEN=0)

889Chapter 44 A/D Converter3.Registers of A/D Converter• ADECH (ADC0): Address 01ABh (Access: Word, Half-word, Byte)(See “Meaning of Bit Attribute Sy

Page 936

890Chapter 44 A/D Converter3.Registers of A/D Converter3.2 A/D Control Status Register (ADCS)A/D control status register controls and shows the stat

Page 937 - Chapter 47 LCD Controller

891Chapter 44 A/D Converter3.Registers of A/D ConverterCleared by writing "0" or by a reset. (Not cleared at the end of DMA transfer.) Howe

Page 938

892Chapter 44 A/D Converter3.Registers of A/D ConverterContinuous mode: Repeated A/D conversion cycles from selected channels ANS4 to ANS0 to selecte

Page 939 - Figure 3-2 Register List

893Chapter 44 A/D Converter3.Registers of A/D Converter2-bit. The register values are updated at the completion of each conversion. The registers nor

Page 940

75Chapter 3 MB91460 Series Basic Information3.Interrupt Vector TableUSART (LIN) 2 RX 58 3AICR21 0x4550x314 0x000FFF14 52USART (LIN) 2 TX 59 3B 0x310

Page 941 - • bit1-0: Frame period

894Chapter 44 A/D Converter3.Registers of A/D ConverterConversion time = CT value * CLKP cycle * 10 + (4 * CLKP)Remarks : Do not set conversion time

Page 942

895Chapter 44 A/D Converter3.Registers of A/D Converter• ADECH (ADC0): Address 01ABh (Access: Word, Half-word, Byte)(See “Meaning of Bit Attribute Sy

Page 943 - Chapter 47 LCD Controller

896Chapter 44 A/D Converter4.Operation of A/D Converter4. Operation of A/D ConverterThe A/D converter operates using the successive approximation me

Page 944

897Chapter 44 A/D Converter4.Operation of A/D Converter4.1 Single-shot conversion mode(1) Channel selection(2) A/D conversion activation (Trigger in

Page 945

898Chapter 44 A/D Converter4.Operation of A/D Converter4.2 Scan conversion mode(1) Activation channel selection(2) A/D activation (Trigger: Software

Page 946

899Chapter 44 A/D Converter5.Setting5. Setting*: For the setting procedure, refer to the section indicated by the number.*: For the setting procedur

Page 947

900Chapter 44 A/D Converter5.Setting*: For the setting procedure, refer to the section indicated by the number.*: For the setting procedure, refer to

Page 948

901Chapter 44 A/D Converter6.Q & A6. Q & A6.1 What conversion modes are available and how are they selected?Two modes of conversion are ava

Page 949

902Chapter 44 A/D Converter6.Q & A6.3 How do I set a conversion time?Use Conversion Time Setting registers ADCT to set.[bit 15 to 10] CT5-0 (A/D

Page 950

903Chapter 44 A/D Converter6.Q & A* Analogue input channels AN14 and AN15 can be also used as D/A converter outputs. In case of exclusive A/D con

Page 951

76Chapter 3 MB91460 Series Basic Information3.Interrupt Vector TableInput Capture 0 92 5CICR38 0x4660x28C 0x000FFE8C 80Input Capture 1 93 5D 0x288 0x

Page 952

904Chapter 44 A/D Converter6.Q & AThe converter A/D is activated on the first instance of any one of these causes selected.6.7 To activate the A

Page 953 - 7.2 How do I set VRM?

905Chapter 44 A/D Converter6.Q & A6.11 What interrupt registers are used?A/D interrupt vector, A/D interrupt level settingThe table below summar

Page 954

906Chapter 44 A/D Converter7.Caution7. CautionTips on using the A/D converter are summarized as follows:• Power-on sequenceBe sure to turn on the MC

Page 955

907Chapter 44 A/D Converter7.Caution Definitions of A/D Converter Terms• ResolutionAnalog change identifiable to an A/D converter.• Linearity errorD

Page 956

908Chapter 44 A/D Converter7.Caution• Overall errorDifference between an actual vale and a theoretical value, containing a zero transition error/full

Page 957 - Chapter 48 Clock Monitor

909Chapter 45 D/A Converter1.OverviewChapter 45 D/A Converter1. Overview The D/A converter converts digital values to analog output values on an R-2

Page 958

910Chapter 45 D/A Converter3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFor a detailed description of the D/A pin circuit, see the

Page 959

911Chapter 45 D/A Converter4.Registers4. Registers4.1 DADR: D/A Data RegisterThe D/A Data Register sets the output voltage of the D/A converter.• D

Page 960 - • Other bits7-5, bits3-0

912Chapter 45 D/A Converter4.Registers• bit2: D/A 8-/10-bit mode control• In case MD08=’1’ the 8-bit value of DA7-DA0 (DADR[7:0]) is output.MD08 Oper

Page 961

913Chapter 45 D/A Converter5.Operation5. OperationThe operations of the D/A converter are described below.(1) Digital value setting (software-progra

Page 962

77Chapter 3 MB91460 Series Basic Information3.Interrupt Vector TableTable 3-1 Interrupt Vector TableNotes:*1The ICRs are located in the interrupt co

Page 963

914Chapter 45 D/A Converter6.Setting6. Setting *:For the setting procedure, refer to the section indicated by the number.*:For the setting procedure

Page 964 - Chapter 48 Clock Monitor

915Chapter 45 D/A Converter7.Q & A7. Q & A7.1 Where should I set digital values?Write digital values to the D/A Data Registers (DADR[7:0] f

Page 965 - Chapter 49 Real-Time Clock

916Chapter 45 D/A Converter8.Caution8. Caution• The table below lists the output voltages of the D/A converter (in 10-bit resolution mode).• The tabl

Page 966

917Chapter 46 Alarm Comparator1.OverviewChapter 46 Alarm Comparator1. OverviewThis chapter provides an overview of the Alarm Comparator (also called

Page 967

918Chapter 46 Alarm Comparator3.Alarm Comparator Control/Status Register (ACSR)3. Alarm Comparator Control/Status Register (ACSR)• ACSR0 (ch0): Addr

Page 968

919Chapter 46 Alarm Comparator4.Operation ModesBit 1: IEN Interrupt enable bit.Bit 0: PD Power down bit.4. Operation ModesThe alarm comparator circ

Page 969

920Chapter 46 Alarm Comparator4.Operation Modes4.4 Power Down Modes of the Alarm ComparatorThe alarm comparator circuit has the following power down

Page 970

921Chapter 47 LCD Controller1.OverviewChapter 47 LCD Controller1. OverviewLCD allows display of up to 160 cells and selection of a duty cycle from 1

Page 971

922Chapter 47 LCD Controller3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramNote: For details on ports, refer to “Chapter 30 I/O Ports

Page 972

923Chapter 47 LCD Controller3.ConfigurationFigure 3-2 Register List

Page 973 - Chapter 49 Real-Time Clock

78Chapter 3 MB91460 Series Basic Information4.Package4. Package BGA-660P-M02 package (BGA660-03EK): MB91V460Figure 4-1 External Dimension of BGA66

Page 974

924Chapter 47 LCD Controller4.Registers4. Registers4.1 LCR0: LCDC Control Register 0This register is used to select a frame period and its clock an

Page 975

925Chapter 47 LCD Controller4.Registers• bit1-0: Frame periodSelect an appropriate value in accordance with the frame frequency of your LCD panel.FP1

Page 976

926Chapter 47 LCD Controller4.Registers4.2 VRAM: Data Memory for DisplayMemory area (VRAM) for setting display data• VRAM0 (SEG0, SEG1): Address 0

Page 977

927Chapter 47 LCD Controller4.Registers• Correspondence between VRAM and Common/Segment Pins

Page 978

928Chapter 47 LCD Controller4.Registers4.3 LCR1: LCDC Control Register 1• LCR1H: Address 0EAH (Access: Byte, Half-word, Word)(For attributes, refe

Page 979 - 1.1 Description

929Chapter 47 LCD Controller5.Operation5. OperationThis section describes operation.5.1 LCD Controller/Driver (LCDC) Operation(1) Set values to the

Page 980

930Chapter 47 LCD Controller5.OperationCOM3 outputCOM0 outputCOM1 outputCOM2 outputV0V1V2V3V0V1V2V3V0V1V2V3V0V1V2V3SEG 2n outputV0V1V2V3SEG 2n+1 outp

Page 981 - 3. Timing

931Chapter 47 LCD Controller5.Operation5.3 1/3 Duty Cycle Output WaveformIn the 1/3 duty cycle output mode, COM0, COM1 and COM2 outputs are used for

Page 982 - 4. Clocks

932Chapter 47 LCD Controller5.OperationCOM3 outputCOM0 outputCOM1 outputCOM2 outputV0V1V2V3V0V1V2V3V0V1V2V3V0V1V2V3SEG 2n outputV0V1V2V3SEG 2n+1 outp

Page 983 - 5. Register Description

933Chapter 47 LCD Controller5.Operation5.4 1/4 Duty Cycle Output WaveformIn the 1/4 duty cycle output mode, COM0, COM1, COM2, and COM3 outputs are a

Page 984 - - - STRT - - INT INTEN

79Chapter 3 MB91460 Series Basic Information5.Pin Assignment Diagram5. Pin Assignment Diagram MB91V460 (BGA660 package)Figure 5-1 Pin Assignment D

Page 985 - 5.Register Description

934Chapter 47 LCD Controller6.Setting6. Setting * :For the setting procedure, refer to the section indicated by the number. * :For the setting proce

Page 986

935Chapter 47 LCD Controller7.Q&A7. Q&A7.1 How do I specify pins as COM or SEG output pins?Use COM and SEG output settings.Software can swi

Page 987

936Chapter 47 LCD Controller7.Q&ASEG32Port function register PFR31[7:0](SEG32)SEG33 (SEG33)SEG34 (SEG34)SEG35 (SEG35)SEG36 (SEG36)SEG37 (SEG37)SE

Page 988

937Chapter 47 LCD Controller7.Q&A7.2 How do I set VRM?The following tables show the relationship between pins and the bit positions of VRAM(n).

Page 989 - 6. Application Note

938Chapter 47 LCD Controller7.Q&A7.4 How do I set a duty cycle?Use the display mode select bit (LCR0.MS[1:0]).The display mode select bit also s

Page 990 - ■ Measurement limits:

939Chapter 47 LCD Controller7.Q&A7.9 How do I select internal or external divided resistors?• When using internal divided resistors:• When using

Page 991

940Chapter 47 LCD Controller8.Caution8. Caution• To access VRAM, be sure to use byte-by-byte access.• Switching the frame period generation clocks:F

Page 992

941Chapter 48 Clock Monitor1.OverviewChapter 48 Clock Monitor1. OverviewThe Clock Monitor is a macro that outputs internal clock signals to a termin

Page 993

942Chapter 48 Clock Monitor3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 Register ListClock MonitorCMCFGCMSEL3:00000Disa

Page 994

943Chapter 48 Clock Monitor4.Register4. Register4.1 Clock Monitor Configuration RegisterA register for output settings of an internal clock signal•

Page 995 - Chapter 52 Regulator Control

80Chapter 3 MB91460 Series Basic Information6.Pin Definitions6. Pin DefinitionsJEDECPin (INNER)PadI/O Function PFR=1 EPFR=1 Special TypePull Up/DwnCM

Page 996

944Chapter 48 Clock Monitor4.Register• CSCFG: Address 04AEh (Access: Byte)(See “Meaning of Bit Attribute Symbols (Page No.10)” for details of the att

Page 997

945Chapter 48 Clock Monitor5.Operation5. OperationThe following diagram shows the output waveforms of the Clock Monitor.(1) The MONCLK pin is in hig

Page 998 - Chapter 52 Regulator Control

946Chapter 48 Clock Monitor6.Settings6. Settings *:For each setting procedure, refer to an appropriate section.7. Q&A7.1 How do I set an outpu

Page 999 - 2.1 Evaluation Chip MB91V460

947Chapter 48 Clock Monitor8.Caution8. CautionDue to the glitch free switching mechanism it is necessary to follow these rules when switching the cl

Page 1000 - 2.Check for Boot Conditions

948Chapter 48 Clock Monitor8.Caution

Page 1001

949Chapter 49 Real-Time Clock1.OverviewChapter 49 Real-Time Clock1. OverviewReal-time Clock (RTC) continues to count elapsed time even in the STOP m

Page 1002

950Chapter 49 Real-Time Clock3.Configuration3. ConfigurationFigure 3-1 Configuration DiagramFigure 3-2 Register ListNote: For ICR registers and int

Page 1003

951Chapter 49 Real-Time Clock4.Registers4. Registers4.1 WTCR: RTC Control RegisterThis register is used to control behavior of the Real-time Clock

Page 1004 - 3.1 Evaluation Chip MB91V460

952Chapter 49 Real-Time Clock4.RegistersWhen the minute counter overflows, this flag is set to “1”.• bit10: 1-minute interrupt request flag• bit9: En

Page 1005 - 4.Flash Access Mode Switching

953Chapter 49 Real-Time Clock4.Registersrecommended that the Sub-Second register is updated while the ST bit is "0".However, if this update

Page 1006 - 5.Bootloader Update Strategy

81Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsV37 252 208 P04_4 A28 A28 - - TP04_0 U/D CH / A / TTL Stop TTL (extbus) 4mAV36 251 205 P0

Page 1007

954Chapter 49 Real-Time Clock4.Registers4.2 WTBR: Sub-Second RegistersThese registers are used to hold values to be reloaded to the 21 bit down coun

Page 1008

955Chapter 49 Real-Time Clock4.Registers4.3 WTHR/WTMR/WTSR: Hour/Minute/Second RegistersThese registers hold time information (HH/MM/SS) for Real-ti

Page 1009 - Chapter 54 Flash Memory

956Chapter 49 Real-Time Clock5.Operation5. OperationThis section describes Real-time Clock operation.(1) The start bit (ST) is set to “1” and then “

Page 1010 - 3. Configuration

957Chapter 49 Real-Time Clock5.Operation(10) When the second counter counts up to “59”, the counter is cleared next time when the counter countsup, a

Page 1011 - 3.Configuration

958Chapter 49 Real-Time Clock6.Setting6. Setting*: For the setting procedure, refer to the section indicated by the number.*: For the setting proced

Page 1012 - 5.1 Access from the FR-CPU

959Chapter 49 Real-Time Clock7.Q&A7. Q&A7.1 How do I set the count period of 1 second?Stop Real-time Clock and then set the sub-second regi

Page 1013 - 6.Flash Access Mode Switching

960Chapter 49 Real-Time Clock7.Q&A7.8 What are interrupt-related registers?RTC interrupt vector and level settings.The following table shows the

Page 1014 - 6.1 Flash Memory Mode

961Chapter 49 Real-Time Clock8.Caution8. Caution• Setting the interrupt request flags (WTCR.INT0, WTCR.INT1, WTCR.INT2, WTCR.INT4 and WTCER.INT4)to

Page 1015 - 7.1 Command Operation

962Chapter 49 Real-Time Clock8.Cautionlower than that of the peripheral clock (CLKP). If not, correct values cannot be read from WTHR/WTMR/WTSR.• Not

Page 1016 - 7.2 Auto Algorithm Commands

963Chapter 50 Subclock Calibration Unit1.OverviewChapter 50 Subclock Calibration Unit1. OverviewThe Clock Calibration Module provides possibilities

Page 1017 - 7.Auto Algorithms

82Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsE37 190 157 P10_7 - - - - TP04_0 U/D CH / A / TTL Stop TTL (extbus) 4mAG36 189 156 P10_6

Page 1018

964Chapter 50 Subclock Calibration Unit2.Block Diagram2. Block DiagramFigure 2-1 Block Diagram of the calibration unitCLKPG2 = CLKP | (~STRT &

Page 1019 - 7.3 Hardware Sequence Flag

965Chapter 50 Subclock Calibration Unit3.Timing3. TimingFigure 3-1 Timing of the measurement process(4 MHz)(32 kHz)RUNSRUNCUTD CUTD-1 01 CUTD32 kHz

Page 1020

966Chapter 50 Subclock Calibration Unit4.Clocks4. ClocksThe module operates with 3 different clocks: The 4 MHz clock OSC4, the 32 kHz clock OSC32 (o

Page 1021

967Chapter 50 Subclock Calibration Unit5.Register Description5. Register DescriptionThis section lists the registers of the calibration unit and des

Page 1022

968Chapter 50 Subclock Calibration Unit5.Register Description 4MHz Timer Data Register (CUTR1/CUTR2)5.1 Calibration Unit Control Register (CUCR)The

Page 1023 - 8. Caution

969Chapter 50 Subclock Calibration Unit5.Register DescriptionBIT[0]: INTEN - Interrupt enableThis is the interrupt enable bit corresponding to the IN

Page 1024 - 8.Caution

970Chapter 50 Subclock Calibration Unit5.Register Description5.2 32 kHz / 100 kHz Timer Data Register (16 bit) (CUTD)The 32kHz/100kHz Timer Data Reg

Page 1025 - Chapter 55 Flash Security

971Chapter 50 Subclock Calibration Unit5.Register DescriptionTable 5-1 32kHz : Ideal measurement results depending on measurement durationThe durati

Page 1026 - 3.2 Security Vector FSV1

972Chapter 50 Subclock Calibration Unit5.Register Description5.3 4 MHz Timer Data Register (24 bits) (CUTR)The Timer Data Register (CUTR) holds the

Page 1027 - ■ FSV1 (bits 15 to 0)

973Chapter 50 Subclock Calibration Unit6.Application Note6. Application NoteThis section lists application notes concerning accuracy of the calibrat

Page 1028 - 3.3 Security Vector FSV2

83Chapter 3 MB91460 Series Basic Information6.Pin DefinitionsD26 125 105 P15_2 - OCU2 TOT2 - TP00_0 U/D CH / A Stop - 4mAC26 124 104 P15_1 - OCU1 TOT1

Page 1029 - 4. Register

974Chapter 50 Subclock Calibration Unit6.Application Note Accuracy:The accuracy of the calibration is dependent on the clock frequency used by the 4

Page 1030

975Chapter 51 Low Voltage Reset/Interrupt1.OverviewChapter 51 Low Voltage Reset/Interrupt1. Overview• Module for generating a low voltage reset or i

Page 1031

976Chapter 51 Low Voltage Reset/Interrupt3.Registers3. Registers3.1 LV Detection Control RegistersControls the low voltage detection function.• LVD

Page 1032 - 4.Register

977Chapter 51 Low Voltage Reset/Interrupt3.Registers• LVSEL: Address 04C4h (Access: Byte, Halfword, Word)(See “Meaning of Bit Attribute Symbols (Page

Page 1033

978Chapter 51 Low Voltage Reset/Interrupt3.Registers

Page 1034

979Chapter 52 Regulator Control1.OverviewChapter 52 Regulator Control1. Overview• Module for controlling the behaviour of the MAIN-Regulator and SUB

Page 1035 - Author : MBo

980Chapter 52 Regulator Control3.Registers3. Registers3.1 Regulator Control RegistersControls the regulator function.• REGCTR: Address 04CFh (Acces

Page 1036

981Chapter 52 Regulator Control3.Registers• REGSEL: Address 04CEh (Access: Byte, Halfword, Word)(See “Meaning of Bit Attribute Symbols (Page No.10)”

Page 1037 - Electronic Devices

982Chapter 52 Regulator Control3.Registers

Page 1038

983Chapter 53 Fixed Mode-Reset Vector / BOOT-ROM1.OverviewChapter 53 Fixed Mode-Reset Vector / BOOT-ROM1. OverviewThe Boot ROM is a fixed start-up ro

Commentaires sur ces manuels

Pas de commentaire