Renesas H8S/2111B Manual do Utilizador Página 1

Consulte online ou descarregue Manual do Utilizador para Hardware Renesas H8S/2111B. Renesas H8S/2111B User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 582
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
Revision Date: Ma
y
. 14
,
2004
16
H8S/2111B
Hardware Manual
Renesas 16-Bit Single-Chip Microcomputer
H8S Family / H8S/2100 Series
H8S/2111B HD64F2111B
Rev.1.00
REJ09B0163-0100Z
Vista de página 0
1 2 3 4 5 6 ... 581 582

Resumo do Conteúdo

Página 1 - H8S/2111B

Revision Date: May. 14, 200416 H8S/2111BHardware Manual Renesas 16-Bit Single-Chip Microcomputer H8S Family / H8S/2100 Series H8S/2111B H

Página 2

Rev. 1.00, 05/04, page x of xxxiv 2.8 Processing States...

Página 3

Rev. 1.00, 05/04, page 66 of 544

Página 4

Rev. 1.00, 05/04, page 67 of 544 Section 5 Interrupt Controller 5.1 Features • Two interrupt control modes Any of two interrupt control modes can

Página 5 - Configuration of This Manual

Rev. 1.00, 05/04, page 68 of 544 SYSCRNMI inputIRQ inputInternal interrupt request WOVI0 to IBFI3NMIEGINTM1, INTM0NMI inputIRQ inputISRISCRIERICRInte

Página 6 - Preface

Rev. 1.00, 05/04, page 69 of 544 5.3 Register Descriptions The interrupt controller has the following registers. For details on the system control re

Página 7

Rev. 1.00, 05/04, page 70 of 544 Table 5.2 Correspondence between Interrupt Source and ICR Register Bit Bit Name ICRA ICRB ICRC 7 ICRn7 IRQ0 — —

Página 8

Rev. 1.00, 05/04, page 71 of 544 5.3.3 Break Address Registers A to C (BARA to BARC) The BAR registers specify an address that is to be a break addre

Página 9 - Contents

Rev. 1.00, 05/04, page 72 of 544 5.3.4 IRQ Sense Control Registers (ISCRH, ISCRL) The ISCR registers select the source that generates an interrupt r

Página 10

Rev. 1.00, 05/04, page 73 of 544 5.3.5 IRQ Enable Register (IER) IER controls the enabling and disabling of interrupt requests IRQ7 to IRQ0. Bit Bit

Página 11

Rev. 1.00, 05/04, page 74 of 544 • KMIMRA Bit Bit Name Initial Value R/W Description 7 6 5 4 3 2 1 0 KMIMR15 KMIMR14 KMIMR13 KMIMR12 KMIMR11 KMIMR1

Página 12

Rev. 1.00, 05/04, page 75 of 544 Figure 5.2 shows the relationship between interrupts IRQ7 and IRQ6, interrupts KIN15 to KIN0, interrupts WUE7 to WUE

Página 13

Rev. 1.00, 05/04, page xi of xxxiv 5.4.1 External Interrupts ...

Página 14

Rev. 1.00, 05/04, page 76 of 544 5.4 Interrupt Sources 5.4.1 External Interrupts There are four types of external interrupts: NMI, IRQ7 to IRQ0, KIN1

Página 15

Rev. 1.00, 05/04, page 77 of 544 When pin IRQ7 is used as an IRQ7 interrupt pin, set all of bits KMIMR15 to KMIMR8 and WUEMR7 to WUEMR0 to 1. If any

Página 16

Rev. 1.00, 05/04, page 78 of 544 5.5 Interrupt Exception Handling Vector Table Table 5.3 lists interrupt exception handling sources, vector addresse

Página 17

Rev. 1.00, 05/04, page 79 of 544 Vector Address Origin of Interrupt Source Name Vector NumberNormal Mode Advanced Mode ICR Priority TMR_0 CMIA0 (Comp

Página 18

Rev. 1.00, 05/04, page 80 of 544 5.6 Interrupt Control Modes and Interrupt Operation The interrupt controller has two modes: Interrupt control mode

Página 19

Rev. 1.00, 05/04, page 81 of 544 7. The CPU generates a vector address for the accepted interrupt and starts execution of the interrupt handling rou

Página 20

Rev. 1.00, 05/04, page 82 of 544 5.6.2 Interrupt Control Mode 1 In interrupt control mode 1, mask control is applied to three levels for IRQ and on-

Página 21

Rev. 1.00, 05/04, page 83 of 544 Figure 5.6 shows a flowchart of the interrupt acceptance operation. 1. If an interrupt source occurs when the corre

Página 22

Rev. 1.00, 05/04, page 84 of 544 Program excution stateInterrupt generated?NMIAn interrupt with interrupt control level 1?IRQ0IRQ1IFBFI3IRQ0IRQ1IFBFI

Página 23 - Figures

Rev. 1.00, 05/04, page 85 of 544 5.6.3 Interrupt Exception Handling Sequence Figure 5.7 shows the interrupt exception handling sequence. The example

Página 24

Rev. 1.00, 05/04, page xii of xxxiv 7.4 Port 4...

Página 25

Rev. 1.00, 05/04, page 86 of 544 5.6.4 Interrupt Response Times Table 5.5 shows interrupt response times − the intervals between generation of an int

Página 26

Rev. 1.00, 05/04, page 87 of 544 5.7 Address Break 5.7.1 Features This LSI can determine the specific address prefetch by the CPU to generate an addr

Página 27

Rev. 1.00, 05/04, page 88 of 544 5.7.3 Operation If the CPU prefetches an address specified in BAR by setting ABRKCR and BAR, an address break interr

Página 28

Rev. 1.00, 05/04, page 89 of 544 Figure 5.9 shows an example of address timing. InstructionfetchAddress busBreak request signalBreak pointNOP instruc

Página 29

Rev. 1.00, 05/04, page 90 of 544 5.8 Usage Notes 5.8.1 Conflict between Interrupt Generation and Disabling When an interrupt enable bit is cleared to

Página 30

Rev. 1.00, 05/04, page 91 of 544 5.8.2 Instructions that Disable Interrupts The instructions that disable interrupts are LDC, ANDC, ORC, and XORC. Af

Página 31

Rev. 1.00, 05/04, page 92 of 544

Página 32

Rev. 1.00, 05/04, page 93 of 544 Section 6 Bus Controller (BSC) Since this LSI does not have an externally extended function, it does not have an o

Página 33

Rev. 1.00, 05/04, page 94 of 544 6.1.2 Wait State Control Register (WSCR) Bit Bit Name Initial Value R/W Description 7 6 — — 0 0 R/W R/W Reserved T

Página 34

Rev. 1.00, 05/04, page 95 of 544 Section 7 I/O Ports This LSI has fifteen I/O ports (ports 1 to 6, 8, 9, and A to G), and one input-only port (port

Página 35 - Section 1 Overview

Rev. 1.00, 05/04, page xiii of xxxiv 7.12.5 Pin Functions ...

Página 36 - 1.2 Internal Block Diagram

Rev. 1.00, 05/04, page 96 of 544 Table 7.1 Port Functions Port Description Mode 2and Mode 3 I/O Status Port 1 General I/O port also functioning

Página 37 - 1.3 Pin Description

Rev. 1.00, 05/04, page 97 of 544 Port Description Mode 2and Mode 3 I/O Status Port 6 General I/O port also functioning as interrupt input, FRT in

Página 38

Rev. 1.00, 05/04, page 98 of 544 Port Description Mode 2and Mode 3 I/O Status Port A General I/O port also functioning as key-sense interrupt inp

Página 39

Rev. 1.00, 05/04, page 99 of 544 Port Description Mode 2and Mode 3 I/O Status Port E General I/O port PE7 PE6 PE5 PE4 PE3 PE2 PE1 PE0 On-chip in

Página 40

Rev. 1.00, 05/04, page 100 of 544 7.1 Port 1 Port 1 is an 8-bit I/O port. Port 1 pins also function as PWM output pins. Port 1 has the following regi

Página 41

Rev. 1.00, 05/04, page 101 of 544 7.1.3 Port 1 Pull-Up MOS Control Register (P1PCR) P1PCR controls the on/off state of the port 1 on-chip input pull

Página 42

Rev. 1.00, 05/04, page 102 of 544 7.1.5 Port 1 Input Pull-Up MOS Port 1 has an on-chip input pull-up MOS function that can be controlled by software

Página 43 - Table 1.2 Pin Functions

Rev. 1.00, 05/04, page 103 of 544 7.2.2 Port 2 Data Register (P2DR)) P2DR stores output data for port 2. Bit Bit Name Initial Value R/W Description

Página 44

Rev. 1.00, 05/04, page 104 of 544 7.2.5 Port 2 Input Pull-Up MOS Port 2 has an on-chip input pull-up MOS function that can be controlled by software

Página 45

Rev. 1.00, 05/04, page 105 of 544 7.3.2 Port 3 Data Register (P3DR) P3DR stores output data of port 3. Bit Bit Name Initial Value R/W Description 7

Página 46

Rev. 1.00, 05/04, page xiv of xxxiv 9.3.7 Timer Control/Status Register (TCSR)... 163 9

Página 47 - Section 2 CPU

Rev. 1.00, 05/04, page 106 of 544 7.3.4 Pin Functions • P37/SERIRQ, P36/LCLK, P35/LRESET, P34/LFRAME, P33/LAD3, P32/LAD2, P31/LAD1, P30/LAD0 The pin

Página 48

Rev. 1.00, 05/04, page 107 of 544 7.4 Port 4 Port 4 is an 8-bit I/O port. Port 4 pins also function as TMR_0 and TMR_1 I/O pins, and the IIC_1 I/O pi

Página 49

Rev. 1.00, 05/04, page 108 of 544 7.4.3 Pin Functions • P47 The pin function is switched as shown below according to the combination of the P47DDR b

Página 50 - 2.2 CPU Operating Modes

Rev. 1.00, 05/04, page 109 of 544 • P43/TMCI1 The pin function is switched as shown below according to the state of the P43DDR bit. P43DDR 0 1 P43

Página 51 - (Reserved for system use)

Rev. 1.00, 05/04, page 110 of 544 7.5 Port 5 Port 5 is a 3-bit I/O port. Port 5 pins also function as SCI_1 extended I/O pins, and the IIC_0 I/O pin.

Página 52

Rev. 1.00, 05/04, page 111 of 544 7.5.3 Pin Functions • P52/ExSCK1*/SCL0 The pin function is switched as shown below according to the combination of

Página 53 - Reserved

Rev. 1.00, 05/04, page 112 of 544 • P50/ExTxD1 The pin function is switched as shown below according to the combination of the TE bit in SCR of SCI_

Página 54 - 2.3 Address Space

Rev. 1.00, 05/04, page 113 of 544 7.6.2 Port 6 Data Register (P6DR) P6DR stores output data for port 6. Bit Bit Name Initial Value R/W Description

Página 55 - 2.4 Register Configuration

Rev. 1.00, 05/04, page 114 of 544 7.6.4 System Control Register 2 (SYSCR2) SYSCR2 is not available in this LSI although originally designed to contr

Página 56

Rev. 1.00, 05/04, page 115 of 544 • P66/FTOB/KIN6/IRQ6 The pin function is switched as shown below according to the combination of the OEB bit in TO

Página 57 - Stack area

Rev. 1.00, 05/04, page xv of xxxiv 10.5.1 TCNT Count Timing ...

Página 58

Rev. 1.00, 05/04, page 116 of 544 • P61/FTOA/KIN1 The pin function is switched as shown below according to the combination of the OEA bit in TOCR of

Página 59

Rev. 1.00, 05/04, page 117 of 544 7.7 Port 7 Port 7 is an 8-bit input only port. Port 7 pins also function as the A/D converter analog input pins. Po

Página 60 - 2.5 Data Formats

Rev. 1.00, 05/04, page 118 of 544 7.8 Port 8 Port 8 is an 8-bit I/O port. Port 8 pins also function as SCI_1 I/O pins, the IIC_1 I/O pins, LPC I/O pi

Página 61

Rev. 1.00, 05/04, page 119 of 544 7.8.3 Pin Functions • P86/IRQ5/SCK1/SCL1 The pin function is switched as shown below according to the combination

Página 62

Rev. 1.00, 05/04, page 120 of 544 • P84/IRQ3/TxD1 The pin function is switched as shown below according to the combination of the TE bit in SCR of S

Página 63 - 2.6 Instruction Set

Rev. 1.00, 05/04, page 121 of 544 • P81/GA20 The pin function is switched as shown below according to the combination of the FGA20E bit in HICR0 and

Página 64

Rev. 1.00, 05/04, page 122 of 544 7.9 Port 9 Port 9 is an 8-bit I/O port. Port 9 pins also function as the interrupt input pins, IIC_0 I/O pin, subcl

Página 65

Rev. 1.00, 05/04, page 123 of 544 7.9.3 Pin Functions • P97/SDA0 The pin function is switched as shown below according to the combination of the ICE

Página 66

Rev. 1.00, 05/04, page 124 of 544 • P92/IRQ0 The pin function is switched as shown below according to the state of the P92DDR bit. P92DDR 0 1 P92

Página 67

Rev. 1.00, 05/04, page 125 of 544 7.10 Port A Port A is an 8-bit I/O port. Port A pins also function as keyboard buffer controller I/O pins, and key-

Página 68

Rev. 1.00, 05/04, page xvi of xxxiv 11.6.5 System Reset by RESO Signal ...

Página 69

Rev. 1.00, 05/04, page 126 of 544 7.10.3 Port A Input Data Register (PAPIN) PAPIN indicates the port A state. Bit Bit Name Initial Value R/W Des

Página 70

Rev. 1.00, 05/04, page 127 of 544 • PA5/KIN13/PS2BD The pin function is switched as shown below according to the combination of the KBIOE bit in KBC

Página 71

Rev. 1.00, 05/04, page 128 of 544 • PA2/KIN10/PS2AC The pin function is switched as shown below according to the combination of the KBIOE bit in KBC

Página 72

Rev. 1.00, 05/04, page 129 of 544 7.11 Port B Port B is an 8-bit I/O port. Port B pins also have LPC input/output pins, and wakeup event interrupt in

Página 73

Rev. 1.00, 05/04, page 130 of 544 7.11.3 Port B Input Data Register (PBPIN) PBPIN indicates the port B state. Bit Bit NameInitial Value R/W Descript

Página 74

Rev. 1.00, 05/04, page 131 of 544 • PB0/WUE0/LSMI The pin function is switched as shown below according to the combination of the LSMIE bit in HICR

Página 75

Rev. 1.00, 05/04, page 132 of 544 7.12 Ports C, D Port C and port D are two sets of 8-bit I/O ports. Port C and port D have the following registers.

Página 76

Rev. 1.00, 05/04, page 133 of 544 7.12.2 Port C and Port D Output Data Registers (PCODR, PDODR) PCODR and PDODR store output data for the pins on po

Página 77

Rev. 1.00, 05/04, page 134 of 544 Bit Bit NameInitial Value R/W Description 7 PD7PIN Undefined* R 6 PD6PIN Undefined* R 5 PD5PIN Undefined* R 4 PD4PI

Página 78 - General register contents

Rev. 1.00, 05/04, page 135 of 544 7.12.5 Pin Functions DDR 0 1 NOCR — 0 1 ODR 0 1 0 1 0 1 N-ch. driver OFF ON OFF ON OFF P-ch. driver OFF OFF

Página 79 - Don't care

Rev. 1.00, 05/04, page xvii of xxxiv 12.8.6 SCI Operations during Mode Transitions ... 273

Página 80 - 2.8 Processing States

Rev. 1.00, 05/04, page 136 of 544 7.13 Ports E, F Ports E and F are two sets of 8-bit I/O ports. Port F also functions as I/O pins for TMR_X*, TMR_Y

Página 81 - External interrupt

Rev. 1.00, 05/04, page 137 of 544 7.13.2 Port E and Port F Output Data Registers (PEODR, PFODR) PEODR and PFODR store output data for the pins on po

Página 82 - 2.9 Usage Notes

Rev. 1.00, 05/04, page 138 of 544 7.13.3 Port E and Port F Input Data Registers (PEPIN, PFPIN) Reading PEPIN and PFPIN always returns the pin states

Página 83

Rev. 1.00, 05/04, page 139 of 544 • PF6/ExTMOX The pin function is switched as shown below according to the combination of the IOSX bit* in TCRXY of

Página 84

Rev. 1.00, 05/04, page 140 of 544 • PF2/TMOA The pin function is switched as shown below according to the combination of the OS3 to OS0 bits in TCSR

Página 85

Rev. 1.00, 05/04, page 141 of 544 Bit Bit Name Initial Value R/W Description 7 PF7NOCR 0 R/W 6 PF6NOCR 0 R/W 5 PF5NOCR 0 R/W 4 PF4NOCR 0 R/W 3 P

Página 86 - 3.2 Register Descriptions

Rev. 1.00, 05/04, page 142 of 544 7.14 Port G Port G is an 8-bit I/O port. Port G pins also function as IIC_0 and IIC_1 I/O pins. The output type of

Página 87

Rev. 1.00, 05/04, page 143 of 544 7.14.2 Port G Output Data Register (PGODR) PGODR stores output data for the pins on port G. Bit Bit Name Initial V

Página 88

Rev. 1.00, 05/04, page 144 of 544 7.14.4 Pin Functions • PG7/ExSCLB The pin function is switched as shown below according to the combination of the

Página 89

Rev. 1.00, 05/04, page 145 of 544 • PG3, PG2, PG1, PG0 The pin function is switched as shown below according to the state of the PGnDDR bit. PGnDDR

Página 90

Rev. 1.00, 05/04, page xviii of xxxiv 14.4.6 KBF Setting Timing and KCLK Control... 362 14

Página 91

Rev. 1.00, 05/04, page 146 of 544

Página 92

PWM0800B_000120040200 Rev. 1.00, 05/04, page 147 of 544 Section 8 8-Bit PWM Timer (PWM) This LSI has an on-chip pulse width modulation (PWM) timer

Página 93

Rev. 1.00, 05/04, page 148 of 544 8.2 Input/Output Pins Table 8.1 shows the PWM output pins. Table 8.1 Pin Configuration Name Abbreviation I/O Funct

Página 94

Rev. 1.00, 05/04, page 149 of 544 8.3.1 PWM Register Select (PWSL) PWSL is used to select the input clock and the PWM data register. Bit Bit Name

Página 95 - 4.3 Reset

Rev. 1.00, 05/04, page 150 of 544 Table 8.2 Internal Clock Selection PWSL PCSR PWCKE PWCKS PWCKC PWCKB PWCKA Description 0 — — — — Clock inpu

Página 96

Rev. 1.00, 05/04, page 151 of 544 8.3.2 PWM Data Registers 7 to 0 (PWDR7 to PWD0) PWDR are 8-bit readable/writable registers. The PWM has eight PWM

Página 97

Rev. 1.00, 05/04, page 152 of 544 8.3.4 PWM Output Enable Register A (PWOERA) PWOERA switches between PWM output and port output. Bit Bit Name Initi

Página 98 - Advanced mode

Rev. 1.00, 05/04, page 153 of 544 8.4 Operation The upper four bits of PWDR specify the duty cycle of the basic pulse as 0/16 to 15/16 with a resolut

Página 99 - Stack pointer

Rev. 1.00, 05/04, page 154 of 544 The lower four bits of PWDR specify the position of pulses added to the 16 basic pulses. An additional pulse adds a

Página 100

Rev. 1.00, 05/04, page 155 of 544 8.4.1 PWM Setting Example : Pulse added1-conversion cycleCombination of the basic pulse and added pulse outputs 0/2

Página 101 - 5.1 Features

Rev. 1.00, 05/04, page xix of xxxiv 16.4.2 Scan Mode ...

Página 102 - 5.2 Input/Output Pins

Rev. 1.00, 05/04, page 156 of 544 8.5 Usage Notes 8.5.1 Module Stop Mode Setting PWM operation can be enabled or disabled by the module stop control

Página 103 - 5.3 Register Descriptions

TIM8FR1A_010020020700 Rev. 1.00, 05/04, page 157 of 544 Section 9 16-Bit Free-Running Timer (FRT) This LSI has an on-chip 16-bit free-running time

Página 104

Rev. 1.00, 05/04, page 158 of 544 Figure 9.1 shows a block diagram of the FRT. Clock selectorClockCompare-match AOCRAComparator AInternal data busFRC

Página 105

Rev. 1.00, 05/04, page 159 of 544 9.2 Input/Output Pins Table 9.1 lists the FRT input and output pins. Table 9.1 Pin Configuration Name Abbreviation

Página 106 - • ISCRL

Rev. 1.00, 05/04, page 160 of 544 9.3.1 Free-Running Counter (FRC) FRC is a 16-bit readable/writable up-counter. The clock source is selected by bits

Página 107

Rev. 1.00, 05/04, page 161 of 544 9.3.4 Output Compare Registers AR and AF (OCRAR, OCRAF) OCRAR and OCRAF are 16-bit readable/writable registers. Wh

Página 108 - • WUEMRB

Rev. 1.00, 05/04, page 162 of 544 9.3.6 Timer Interrupt Enable Register (TIER) TIER enables and disables interrupt requests. Bit Bit Name Initial Va

Página 109

Rev. 1.00, 05/04, page 163 of 544 Bit Bit Name Initial Value R/W Description 2 OCIBE 0 R/W Output Compare Interrupt B Enable Selects whether to

Página 110 - 5.4 Interrupt Sources

Rev. 1.00, 05/04, page 164 of 544 Bit Bit Name Initial Value R/W Description 6 ICFB 0 R/(W)* Input Capture Flag B This status flag indicates that

Página 111

Rev. 1.00, 05/04, page 165 of 544 Bit Bit Name Initial Value R/W Description 3 OCFA 0 R/(W)* Output Compare Flag A This status flag indicates that

Página 112

Rev. 1.00, 05/04, page ii of xxxiv

Página 113 - Vector Address

Rev. 1.00, 05/04, page xx of xxxiv 19.2 Duty Correction Circuit ...

Página 114

Rev. 1.00, 05/04, page 166 of 544 9.3.8 Timer Control Register (TCR) TCR selects the rising or falling edge of the input capture signals, enables th

Página 115 - Hold pending

Rev. 1.00, 05/04, page 167 of 544 Bit Bit Name Initial Value R/W Description 1 0 CKS1 CKS0 0 0 R/W Clock Select 1, 0 Select clock source for FRC.

Página 116

Rev. 1.00, 05/04, page 168 of 544 Bit Bit Name Initial Value R/W Description 4 OCRS 0 R/W Output Compare Register Select OCRA and OCRB share the

Página 117

Rev. 1.00, 05/04, page 169 of 544 9.4 Operation 9.4.1 Pulse Output Figure 9.2 shows an example of 50%-duty pulses output with an arbitrary phase diff

Página 118 - An interrupt with interrupt

Rev. 1.00, 05/04, page 170 of 544 9.5 Operation Timing 9.5.1 FRC Increment Timing Figure 9.3 shows the FRC increment timing with an internal clock s

Página 119 - (1) (5) (7) (9) (11) (13)

Rev. 1.00, 05/04, page 171 of 544 9.5.2 Output Compare Output Timing A compare-match signal occurs at the last state when the FRC and OCR values mat

Página 120

Rev. 1.00, 05/04, page 172 of 544 9.5.4 Input Capture Input Timing The rising or falling edge can be selected for the input capture input timing by

Página 121 - 5.7 Address Break

Rev. 1.00, 05/04, page 173 of 544 9.5.5 Buffered Input Capture Input Timing ICRC and ICRD can operate as buffers for ICRA and ICRB, respectively. Fi

Página 122

Rev. 1.00, 05/04, page 174 of 544 9.5.6 Timing of Input Capture Flag (ICF) Setting The input capture flag, ICFA, ICFB, ICFC, or ICFD, is set to 1 by

Página 123

Rev. 1.00, 05/04, page 175 of 544 9.5.8 Timing of FRC Overflow Flag Setting The FRC overflow flag (OVF) is set to 1 when FRC overflows (changes from

Página 124 - 5.8 Usage Notes

Rev. 1.00, 05/04, page xxi of xxxiv 22.5 Flash Memory Characteristics ...

Página 125

Rev. 1.00, 05/04, page 176 of 544 9.5.10 Mask Signal Generation Timing When the ICRDMS bit in TOCR is set to 1 and the contents of OCRDM are other t

Página 126

Rev. 1.00, 05/04, page 177 of 544 9.6 Interrupt Sources The free-running timer can request seven interrupts: ICIA to ICID, OCIA, OCIB, and FOVI. Each

Página 127 - 6.1 Register Descriptions

Rev. 1.00, 05/04, page 178 of 544 9.7.2 Conflict between FRC Write and Increment If an FRC increment pulse is generated during the state after an FR

Página 128

Rev. 1.00, 05/04, page 179 of 544 φAddress OCR addressInternal write signalCompare-match signalFRCWrite dataDisabledOCR NMNN + 1T1T2Write cycle of OC

Página 129 - Section 7 I/O Ports

Rev. 1.00, 05/04, page 180 of 544 9.7.4 Switching of Internal Clock and FRC Operation When the internal clock is changed, the changeover may cause F

Página 130 - Table 7.1 Port Functions

Rev. 1.00, 05/04, page 181 of 544 No. Timing of Switchover by Means of CKS1 and CKS0 Bits FRC Operation 3 Switching from high to low Clock before

Página 131

Rev. 1.00, 05/04, page 182 of 544

Página 132

TIMH265B_000020040200 Rev. 1.00, 05/04, page 183 of 544 Section 10 8-Bit Timer (TMR) This LSI has an on-chip 8-bit timer module (TMR_0, TMR_1, TMR

Página 133

Rev. 1.00, 05/04, page 184 of 544 Table 10.1 TMR Function Item TMR_0 TMR_1 TMR_Y TMR_X TMR_B TMR_A Count clock φ/2 φ/8 φ/32 φ/64 φ/256 φ/1024 φ/2

Página 134 - 7.1 Port 1

Rev. 1.00, 05/04, page 185 of 544 Figures 10.1 to 10.3 show block diagrams of 8-bit timers. External clock sourcesInternal clock sourcesTMR_0φ/2, φ/

Página 135

Rev. 1.00, 05/04, page xxii of xxxiv

Página 136 - 7.2 Port 2

Rev. 1.00, 05/04, page 186 of 544 External clock sourcesInternal clocksourcesTMR_Xφ, φ/2, φ/4, φ/2048*, φ/4096*, φ/8192*Clock XClock YCompare-match A

Página 137

Rev. 1.00, 05/04, page 187 of 544 External clock sourcesInternal clocksourcesTMR_Aφ, φ/2, φ/4, φ/2048, φ/4096, φ/8192Clock AClock BCompare-match AACo

Página 138 - 7.3 Port 3

Rev. 1.00, 05/04, page 188 of 544 10.2 Input/Output Pins Table 10.2 summarizes the input and output pins of the TMR. Table 10.2 Pin Configuration Ch

Página 139

Rev. 1.00, 05/04, page 189 of 544 10.3 Register Descriptions The TMR has the following registers. For details on the serial timer control register, s

Página 140

Rev. 1.00, 05/04, page 190 of 544 For both TMR_Y and TMR_X Timer XY control register (TCRXY) TMR_B Timer counter_B (TCNT_B) Time constant regi

Página 141 - 7.4 Port 4

Rev. 1.00, 05/04, page 191 of 544 10.3.1 Timer Counter (TCNT) Each TCNT is an 8-bit readable/writable up-counter. TCNT_0 and TCNT_1 comprise a singl

Página 142

Rev. 1.00, 05/04, page 192 of 544 10.3.4 Timer Control Register (TCR) TCR selects the TCNT clock source and the condition by which TCNT is cleared,

Página 143 - • (IIC1AS+IIC1BS)*

Rev. 1.00, 05/04, page 193 of 544 Table 10.3 Clock Input to TCNT and Count Condition (1) TCR STCR Channel CKS2 CKS1 CKS0 ICKS1 ICKS0 Description 0

Página 144 - 7.5 Port 5

Rev. 1.00, 05/04, page 194 of 544 Table 10.3 Clock Input to TCNT and Count Condition (2) TCR TCRXY*2 Channel CKS2 CKS1 CKS0 CKSX CKSY Descripti

Página 145

Rev. 1.00, 05/04, page 195 of 544 Table 10.3 Clock Input to TCNT and Count Condition (3) TCR TCRAB Channel CKS2 CKS1 CKS0 CKSA CKSB Description

Página 146 - 7.6 Port 6

Rev. 1.00, 05/04, page xxiii of xxxiv Figures Section 1 Overview Figure 1.1 Internal Block Diagram ...

Página 147

Rev. 1.00, 05/04, page 196 of 544 10.3.5 Timer Control/Status Register (TCSR) TCSR indicates the status flags and controls compare-match output. TCS

Página 148

Rev. 1.00, 05/04, page 197 of 544 TCSR_1 Bit Bit Name Initial Value R/W Description 7 CMFB 0 R/(W)* Compare-Match Flag B [Setting condition] Whe

Página 149

Rev. 1.00, 05/04, page 198 of 544 TCSR_Y Bit Bit Name Initial Value R/W Description 7 CMFB 0 R/(W)*1 Compare-Match Flag B [Setting condition] Whe

Página 150

Rev. 1.00, 05/04, page 199 of 544 TCSR_X Bit Bit Name Initial Value R/W Description 7 CMFB 0 R/(W)* Compare-Match Flag B [Setting condition] When

Página 151 - 7.7 Port 7

Rev. 1.00, 05/04, page 200 of 544 TCSR_B Bit Bit Name Initial Value R/W Description 7 CMFB 0 R/(W)* Compare-Match Flag B [Setting condition] When

Página 152 - 7.8 Port 8

Rev. 1.00, 05/04, page 201 of 544 TCSR_A Bit Bit Name Initial Value R/W Description 7 CMFB 0 R/(W)* Compare-Match Flag B [Setting condition] When

Página 153

Rev. 1.00, 05/04, page 202 of 544 10.3.6 Time Constant Register (TCORC) TCORC is an 8-bit readable/writable register. The sum of contents of TCORC a

Página 154

Rev. 1.00, 05/04, page 203 of 544 10.3.9 Timer Connection Register I (TCONRI) TCONRI controls the input capture function. Bit Bit Name Initial Value

Página 155

Rev. 1.00, 05/04, page 204 of 544 Table 10.4 Registers Accessible by TMR_X/TMR_Y TMRX/Y H'FFF0 H'FFF1 H'FFF2 H'FFF3 H'FFF4

Página 156 - 7.9 Port 9

Rev. 1.00, 05/04, page 205 of 544 10.3.12 Timer AB Control Register (TCRAB) TCRAB selects the internal clock or controls the input capture function

Página 157 - • (IIC0AS+IIC0BS)*

Rev. 1.00, 05/04, page xxiv of xxxiv Section 8 8-Bit PWM Timer (PWM) Figure 8.1 Block Diagram of PWM Timer...

Página 158

Rev. 1.00, 05/04, page 206 of 544 10.4 Operation 10.4.1 Pulse Output Figure 10.4 shows an example for outputting an arbitrary duty pulse. 1. Clear t

Página 159 - 7.10 Port A

Rev. 1.00, 05/04, page 207 of 544 10.5 Operation Timing 10.5.1 TCNT Count Timing Figure 10.5 shows the TCNT count timing with an internal clock sour

Página 160

Rev. 1.00, 05/04, page 208 of 544 φTCNT NN + 1TCOR NCompare-matchsignalCMF Figure 10.7 Timing of CMF Setting at Compare-Match 10.5.3 Timing of Tim

Página 161

Rev. 1.00, 05/04, page 209 of 544 10.5.5 TCNT External Reset Timing TCNT is cleared at the rising edge of an external reset input, depending on the s

Página 162

Rev. 1.00, 05/04, page 210 of 544 10.6 TMR_0 and TMR_1 Cascaded Connection If bits CKS2 to CKS0 in either TCR_0 or TCR_1 are set to B'100, the

Página 163 - 7.11 Port B

Rev. 1.00, 05/04, page 211 of 544 10.7 TMR_Y and TMR_X Cascaded Connection If bits CKS2 to CKS0 in either TCR_Y or TCR_X are set to B'100, the

Página 164

Rev. 1.00, 05/04, page 212 of 544 10.7.3 Input Capture Operation TMR_X has input capture registers (TICRR and TICRF). A narrow pulse width can be mea

Página 165

Rev. 1.00, 05/04, page 213 of 544 10.8.3 Input Capture Operation TMR_A has input capture registers (TICRR_A and TICRF_A). A narrow pulse width can be

Página 166 - 7.12 Ports C, D

Rev. 1.00, 05/04, page 214 of 544 Selection of Input Capture Signal Input: TMRIX (input capture input signal of TMR_X) is selected according to the s

Página 167

Rev. 1.00, 05/04, page 215 of 544 10.9 Interrupt Sources TMR_0, TMR_1, and TMR_Y can generate three types of interrupts: CMIA, CMIB, and OVI. TMR_X c

Página 168

Rev. 1.00, 05/04, page xxv of xxxiv Figure 10.13 Timing of Input Capture Signal (Input capture signal is input during TICRR and TICR

Página 169

Rev. 1.00, 05/04, page 216 of 544 10.10 Usage Notes 10.10.1 Conflict between TCNT Write and Counter Clear If a counter clear signal is generated duri

Página 170 - 7.13 Ports E, F

Rev. 1.00, 05/04, page 217 of 544 10.10.3 Conflict between TCOR Write and Compare-Match If a compare-match occurs during the T2 state of a TCOR write

Página 171

Rev. 1.00, 05/04, page 218 of 544 10.10.5 Switching of Internal Clocks and TCNT Operation TCNT may increment erroneously when the internal clock is

Página 172

Rev. 1.00, 05/04, page 219 of 544 No. Timing of Switchover by Means of CKS1 and CKS0 Bits TCNT Clock Operation 3 Clock switching from high to

Página 173

Rev. 1.00, 05/04, page 220 of 544

Página 174

WDT0102A_020020040200 Rev. 1.00, 05/04, page 221 of 544 Section 11 Watchdog Timer (WDT) This LSI incorporates two watchdog timer channels (WDT_0 a

Página 175

Rev. 1.00, 05/04, page 222 of 544 WOVI0 (Interrupt request signal)Internal NMI (Interrupt request signal*2)RESO signal*1Internal reset signal*1TCNT_0

Página 176 - 7.14 Port G

Rev. 1.00, 05/04, page 223 of 544 11.2 Input/Output Pins The WDT has the pins listed in table 11.1. Table 11.1 Pin Configuration Name Symbol I/O Fun

Página 177

Rev. 1.00, 05/04, page 224 of 544 11.3.2 Timer Control/Status Register (TCSR) TCSR selects the clock source to be input to TCNT, and the timer mode.

Página 178

Rev. 1.00, 05/04, page 225 of 544 Bit Bit Name Initial Value R/W Description 2 1 0 CKS2 CKS1 CKS0 0 0 0 R/W R/W R/W Clock Select 2 to 0 Selects the

Página 179

Rev. 1.00, 05/04, page xxvi of xxxiv Figure 12.20 Sample Flowchart of Simultaneous Serial Transmission and Reception ... 270 Figure 12.2

Página 180

Rev. 1.00, 05/04, page 226 of 544 Bit Bit Name Initial Value R/W Description 4 PSS 0 R/W Prescaler Select Selects the clock source to be input to T

Página 181 - 8.1 Features

Rev. 1.00, 05/04, page 227 of 544 11.4 Operation 11.4.1 Watchdog Timer Mode To use the WDT as a watchdog timer, set the WT/IT bit and the TME bit in

Página 182 - 8.3 Register Descriptions

Rev. 1.00, 05/04, page 228 of 544 TCNT valueH'00TimeH'FFWT/IT = 1TME = 1Write H'00 toTCNTWT/IT = 1TME = 1Write H'00 toTCNT518 sys

Página 183

Rev. 1.00, 05/04, page 229 of 544 11.4.2 Interval Timer Mode When the WDT is used as an interval timer, an interval timer interrupt (WOVI) is genera

Página 184

Rev. 1.00, 05/04, page 230 of 544 11.4.3 RESO Signal Output Timing When TCNT overflows in watchdog timer mode, the OVF bit in TCSR is set to 1. When

Página 185

Rev. 1.00, 05/04, page 231 of 544 11.6 Usage Notes 11.6.1 Notes on Register Access The watchdog timer's registers, TCNT and TCSR differ from ot

Página 186

Rev. 1.00, 05/04, page 232 of 544 11.6.2 Conflict between Timer Counter (TCNT) Write and Increment If a timer counter clock pulse is generated durin

Página 187 - 8.4 Operation

Rev. 1.00, 05/04, page 233 of 544 11.6.5 System Reset by RESO Signal Inputting the RESO output signal to the RESO pin of this LSI prevents the LSI f

Página 188 - No additional pulse

Rev. 1.00, 05/04, page 234 of 544

Página 189 - 8.4.1 PWM Setting Example

SCI0022C_000020020800 Rev. 1.00, 05/04, page 235 of 544 Section 12 Serial Communication Interface (SCI) This LSI has a serial communication interf

Página 190 - 8.5 Usage Notes

Rev. 1.00, 05/04, page xxvii of xxxiv Figure 13.25 IRIC Setting Timing and SCL Control (1) ...

Página 191 - 9.1 Features

Rev. 1.00, 05/04, page 236 of 544 ExRxD*/RxDExTxD*/TxDExSCK*/SCKClockφφ/4φ/16φ/64TEITXIRXIERISCMRSSRSCRSMRTransmission/reception controlBaud rategene

Página 192 - Module data bus

Rev. 1.00, 05/04, page 237 of 544 12.3 Register Descriptions The SCI has the following registers. • Receive shift register (RSR) • Receive data reg

Página 193 - 9.3 Register Descriptions

Rev. 1.00, 05/04, page 238 of 544 12.3.4 Transmit Shift Register (TSR) TSR is a shift register that transmits serial data. To perform serial data tr

Página 194

Rev. 1.00, 05/04, page 239 of 544 Bit Bit Name Initial Value R/W Description 2 MP 0 R/W Multiprocessor Mode (enabled only in asynchronous mode)

Página 195

Rev. 1.00, 05/04, page 240 of 544 Bit Bit Name Initial Value R/W Description 3 MPIE 0 R/W Multiprocessor Interrupt Enable (enabled only when the

Página 196

Rev. 1.00, 05/04, page 241 of 544 12.3.7 Serial Status Register (SSR) SSR is a register containing status flags of the SCI and multiprocessor bits f

Página 197

Rev. 1.00, 05/04, page 242 of 544 Bit Bit Name Initial Value R/W Description 3 PER 0 R/(W)* Parity Error [Setting condition] • When a parity erro

Página 198

Rev. 1.00, 05/04, page 243 of 544 12.3.8 Serial Interface Mode Register (SCMR) SCMR selects SCI functions and its format. Bit Bit Name Initial Value

Página 199

Rev. 1.00, 05/04, page 244 of 544 12.3.9 Bit Rate Register (BRR) BRR is an 8-bit register that adjusts the bit rate. As the SCI performs baud rate g

Página 200

Rev. 1.00, 05/04, page 245 of 544 Table 12.3 BRR Settings for Various Bit Rates (Asynchronous Mode) (1) Operating Frequency φ (MHz) 4 4.9152 5

Página 201

Rev. 1.00, 05/04, page xxviii of xxxiv Section 16 A/D Converter Figure 16.1 Block Diagram of A/D Converter ...

Página 202

Rev. 1.00, 05/04, page 246 of 544 Table 12.3 BRR Settings for Various Bit Rates (Asynchronous Mode) (2) Operating Frequency φ (MHz) 6 6.144 7.3728

Página 203 - 9.4 Operation

Rev. 1.00, 05/04, page 247 of 544 Table 12.4 Maximum Bit Rate for Each Frequency (Asynchronous Mode) φ (MHz) Maximum Bit Rate (bit/s) n N φ (MHz) Ma

Página 204 - 9.5 Operation Timing

Rev. 1.00, 05/04, page 248 of 544 Table 12.6 BRR Settings for Various Bit Rates (Clocked Synchronous Mode) Operating Frequency φ (MHz) 4 8 10 Bit Ra

Página 205 - 9.5.3 FRC Clear Timing

Rev. 1.00, 05/04, page 249 of 544 12.3.10 Serial Pin Select Register (SPSR) SPSR selects the serial I/O pins. SPSR should be set before initializati

Página 206 - Input capture signal

Rev. 1.00, 05/04, page 250 of 544 12.4.1 Data Transfer Format Table 12.8 shows the data transfer formats that can be used in asynchronous mode. Any

Página 207

Rev. 1.00, 05/04, page 251 of 544 12.4.2 Receive Data Sampling Timing and Reception Margin in Asynchronous Mode In asynchronous mode, the SCI operat

Página 208

Rev. 1.00, 05/04, page 252 of 544 12.4.3 Clock Either an internal clock generated by the on-chip baud rate generator or an external clock input at th

Página 209 - FRC H'FFFF H'0000

Rev. 1.00, 05/04, page 253 of 544 12.4.4 SCI Initialization (Asynchronous Mode) Before transmitting and receiving data, you should first clear the TE

Página 210

Rev. 1.00, 05/04, page 254 of 544 12.4.5 Data Transmission (Asynchronous Mode) Figure 12.6 shows an example of the operation for transmission in asy

Página 211 - 9.7 Usage Notes

Rev. 1.00, 05/04, page 255 of 544 No<End>[1]YesInitializationStart transmissionRead TDRE flag in SSR [2]Write transmit data to TDRand clear TDR

Página 212

Rev. 1.00, 05/04, page xxix of xxxiv Figure 22.4 Connection of VCL Capacitor...

Página 213 - New data

Rev. 1.00, 05/04, page 256 of 544 12.4.6 Serial Data Reception (Asynchronous Mode) Figure 12.8 shows an example of the operation for reception in as

Página 214 - 2 Switching from

Rev. 1.00, 05/04, page 257 of 544 Table 12.9 SSR Status Flags and Receive Data Handling SSR Status Flag RDRF* ORER FER PER Receive Data Receive E

Página 215 - 4 Switching from

Rev. 1.00, 05/04, page 258 of 544 <End>[3]Error processingParity error processingYesNoClear ORER, PER, andFER flags in SSR to 0NoYesNoYesFramin

Página 216

Rev. 1.00, 05/04, page 259 of 544 12.5 Multiprocessor Communication Function Use of the multiprocessor communication function enables data transfer

Página 217 - 10.1 Features

Rev. 1.00, 05/04, page 260 of 544 12.5.1 Multiprocessor Serial Data Transmission Figure 12.11 shows a sample flowchart for multiprocessor serial data

Página 218 - Table 10.1 TMR Function

Rev. 1.00, 05/04, page 261 of 544 12.5.2 Multiprocessor Serial Data Reception Figure 12.13 shows a sample flowchart for multiprocessor serial data re

Página 219 - Internal bus

Rev. 1.00, 05/04, page 262 of 544 Yes<End>[1]NoInitializationStart receptionNoYes[4]Clear RE bit in SCR to 0Error processing(Continued onnext p

Página 220

Rev. 1.00, 05/04, page 263 of 544 <End>Error processingYesNoClear ORER, PER, andFER flags in SSR to 0NoYesNoYesFraming error processingOverrun

Página 221

Rev. 1.00, 05/04, page 264 of 544 12.6 Operation in Clocked Synchronous Mode Figure 12.14 shows the general format for clocked synchronous communica

Página 222 - 10.2 Input/Output Pins

Rev. 1.00, 05/04, page 265 of 544 12.6.2 SCI Initialization (Clocked Synchronous Mode) Before transmitting and receiving data, you should first clea

Página 223 - 10.3 Register Descriptions

Rev. 1.00, 05/04, page iii of xxxiv 1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology

Página 224

Rev. 1.00, 05/04, page xxx of xxxiv

Página 225

Rev. 1.00, 05/04, page 266 of 544 12.6.3 Serial Data Transmission (Clocked Synchronous Mode) Figure 12.16 shows an example of SCI operation for tran

Página 226

Rev. 1.00, 05/04, page 267 of 544 No<End>[1]YesInitializationStart transmissionRead TDRE flag in SSR [2]Write transmit data to TDR andclear TDR

Página 227

Rev. 1.00, 05/04, page 268 of 544 12.6.4 Serial Data Reception (Clocked Synchronous Mode) Figure 12.18 shows an example of SCI operation for recepti

Página 228

Rev. 1.00, 05/04, page 269 of 544 Yes<End>[1]NoInitializationStart reception[2]NoYesRead RDRF flag in SSR [4][5]Clear RE bit in SCR to 0Error p

Página 229

Rev. 1.00, 05/04, page 270 of 544 Yes<End>[1]NoInitializationStart transmission/reception[5]Error processing[3]Read receive data in RDR, andcle

Página 230 - TCSR_0

Rev. 1.00, 05/04, page 271 of 544 12.7 Interrupt Sources Table 12.10 shows the interrupt sources in serial communication interface. A different inter

Página 231

Rev. 1.00, 05/04, page 272 of 544 12.8 Usage Notes 12.8.1 Module Stop Mode Setting SCI operation can be disabled or enabled using the module stop con

Página 232 - TCSR_Y

Rev. 1.00, 05/04, page 273 of 544 12.8.6 SCI Operations during Mode Transitions Transmission: Before making a transition to module stop, software st

Página 233 - TCSR_X

Rev. 1.00, 05/04, page 274 of 544 Start transmissionTransmission[1]NoNoNoYesYesYesRead TEND flag in SSRMake transition to software standby mode etc.C

Página 234 - TCSR_B

Rev. 1.00, 05/04, page 275 of 544 TE bitSCK output pinTxD output pinPort input/outputPort input/outputPort input/outputHigh output*Marking outputTran

Página 235 - TCSR_A

Rev. 1.00, 05/04, page xxxi of xxxiv Tables Section 1 Overview Table 1.1 Pin Functions in Each Operating Mode ...

Página 236

Rev. 1.00, 05/04, page 276 of 544 12.8.7 Switching from SCK Pins to Port Pins When SCK pins are switched to port pins after transmission has complet

Página 237

IFIIC60B_010020040200 Rev. 1.00, 05/04, page 277 of 544 Section 13 I2C Bus Interface (IIC) This LSI has a two-channel I2C bus interface. The I2C b

Página 238

Rev. 1.00, 05/04, page 278 of 544 • Selectable input/output pins*  Pins, PG4/ExSDAA, PG5/ExSCLA, PG6/ExSDAB, and PG7/ExSCLB, are selectable for th

Página 239

Rev. 1.00, 05/04, page 279 of 544 SCL inSCL outSDA inSDA out(Slave 1)SCLSDASCL inSCL outSDA inSDA out(Slave 2)SCLSDASCL inSCL outSDA inSDA out(Master

Página 240 - 10.4 Operation

Rev. 1.00, 05/04, page 280 of 544 13.2 Input/Output Pins Table 13.1 summarizes the input/output pins used by the I2C bus interface. The serial clock

Página 241 - 10.5 Operation Timing

Rev. 1.00, 05/04, page 281 of 544 13.3 Register Descriptions The I2C bus interface has the following registers. Registers ICDR and SARX and registers

Página 242 - Compare-match A

Rev. 1.00, 05/04, page 282 of 544 13.3.1 I2C Bus Data Register (ICDR) ICDR is an 8-bit readable/writable register that is used as a transmit data reg

Página 243 - TCNT H'FF

Rev. 1.00, 05/04, page 283 of 544 13.3.2 Slave Address Register (SAR) SAR sets the slave address and selects the communication format. If the LSI is

Página 244

Rev. 1.00, 05/04, page 284 of 544 13.3.3 Second Slave Address Register (SARX) SARX sets the second slave address and selects the communication forma

Página 245

Rev. 1.00, 05/04, page 285 of 544 Table 13.2 Communication Format SAR SARX FS FSX Operating Mode 0 0 I2C bus format • SAR and SARX slave addresse

Página 246

Rev. 1.00, 05/04, page xxxii of xxxiv Table 7.4 Input Pull-Up MOS States (Port 3)...

Página 247 - TICRR, TICRF read cycle

Rev. 1.00, 05/04, page 286 of 544 13.3.4 I2C Bus Mode Register (ICMR) ICMR sets the communication format and transfer rate. It can only be accessed w

Página 248

Rev. 1.00, 05/04, page 287 of 544 Bit Bit Name Initial Value R/W Description 2 1 0 BC2 BC1 BC0 0 0 0 R/W R/W R/W Bit Counter 2 to 0 These bits speci

Página 249 - 10.9 Interrupt Sources

Rev. 1.00, 05/04, page 288 of 544 Table 13.3 I2C Transfer Rate STCR ICMR Bits 5 and 6 Bit 5 Bit 4 Bit 3 Transfer Rate IICX CKS2 CKS1 CKS0

Página 250 - 10.10 Usage Notes

Rev. 1.00, 05/04, page 289 of 544 13.3.5 I2C Bus Control Register (ICCR) ICCR controls the I2C bus interface and performs interrupt flag confirmation

Página 251 - Disabled

Rev. 1.00, 05/04, page 290 of 544 Bit Bit Name Initial Value R/W Description 5 4 MST TRS 0 0 R/W [MST clearing conditions] 1. When 0 is written by

Página 252

Rev. 1.00, 05/04, page 291 of 544 Bit Bit Name Initial Value R/W Description 2 0 BBSY SCP 0 1 R/W* W Bus Busy Start Condition/Stop Condition Prohibi

Página 253

Rev. 1.00, 05/04, page 292 of 544 Bit Bit Name Initial Value R/W Description 1 IRIC 0 R/(W)* I2C Bus Interface Interrupt Request Flag Indicates that

Página 254

Rev. 1.00, 05/04, page 293 of 544 Bit Bit Name Initial Value R/W Description 1 IRIC 0 R/(W)* Clocked synchronous serial format mode: • At the en

Página 255 - 11.1 Features

Rev. 1.00, 05/04, page 294 of 544 Table 13.4 Flags and Transfer States (Master Mode) MST TRS BBSY ESTP STOP IRTR AASX AL AAS ADZ ACKB ICDRF ICD

Página 256

Rev. 1.00, 05/04, page 295 of 544 Table 13.5 Flags and Transfer States (Slave Mode) MST TRS BBSY ESTP STOP IRTR AASX AL AAS ADZ ACKB ICDRF ICDR

Página 257 - 11.3 Register Descriptions

Rev. 1.00, 05/04, page xxxiii of xxxiv Table 12.7 Maximum Bit Rate with External Clock Input (Clocked Synchronous Mode) ... 248 Table 12.8 Serial

Página 258 - • TCSR_0

Rev. 1.00, 05/04, page 296 of 544 Table 13.5 Flags and Transfer States (Slave Mode) (cont) MST TRS BBSY ESTP STOP IRTR AASX AL AAS ADZ ACKB ICD

Página 259 - • TCSR_1

Rev. 1.00, 05/04, page 297 of 544 13.3.6 I2C Bus Status Register (ICSR) ICSR consists of status flags. Also see tables 13.4 and 13.5. Bit Bit Name In

Página 260

Rev. 1.00, 05/04, page 298 of 544 Bit Bit Name Initial Value R/W Description 4 AASX 0 R/(W)* Second Slave Address Recognition Flag In I2C bus form

Página 261 - 11.4 Operation

Rev. 1.00, 05/04, page 299 of 544 Bit Bit Name Initial Value R/W Description 2 AAS 0 R/(W)* Slave Address Recognition Flag In I2C bus format slav

Página 262 - TCNT value

Rev. 1.00, 05/04, page 300 of 544 Bit Bit NameInitial Value R/W Description 0 ACKB 0 R/W Acknowledge Bit Stores acknowledge data. Transmit mode: [S

Página 263

Rev. 1.00, 05/04, page 301 of 544 13.3.7 DDC Switch Register (DDCSWR) DDCSWR controls IIC internal latch clearance. Bit Bit Name Initial Value R/W

Página 264 - 11.5 Interrupt Sources

Rev. 1.00, 05/04, page 302 of 544 13.3.8 I2C Bus Extended Control Register (ICXR) ICXR enables or disables the I2C bus interface interrupt generation

Página 265 - 11.6 Usage Notes

Rev. 1.00, 05/04, page 303 of 544 Bit Bit Name Initial Value R/W Description 5 ICDRF 0 R Receive Data Read Request Flag Indicates the ICDR (ICDR

Página 266

Rev. 1.00, 05/04, page 304 of 544 Bit Bit NameInitial Value R/W Description 4 ICDRE 0 R Transmit Data Write Request Flag Indicates the ICDR (ICD

Página 267 - Reset input

Rev. 1.00, 05/04, page 305 of 544 Bit Bit Name Initial Value R/W Description 3 ALIE 0 R/W Arbitration Lost Interrupt Enable Enables or disables

Página 268

Rev. 1.00, 05/04, page xxxiv of xxxiv Section 19 Clock Pulse Generator Table 19.1 Damping Resistance Values ...

Página 269 - 12.1 Features

Rev. 1.00, 05/04, page 306 of 544 13.3.9 Port G Control Register (PGCTL) PGCTL selects the input/output pin for IIC. Bit Bit Name Initial Value R/W

Página 270 - 12.2 Input/Output Pins

Rev. 1.00, 05/04, page 307 of 544 13.4 Operation The I2C bus interface has an I2C bus format and a serial format. 13.4.1 I2C Bus Data Format The I2C

Página 271 - 12.3 Register Descriptions

Rev. 1.00, 05/04, page 308 of 544 SDASCLS SLA R/W A981 to 7 981 to 7 981 to 7DATA A DATA A/AP Figure 13.5 I2C Bus Timing Table 13.6 I2C Bus Data F

Página 272

Rev. 1.00, 05/04, page 309 of 544 13.4.2 Initialization Initialize the IIC by the procedure shown in figure 13.6 before starting transmission/recepti

Página 273

Rev. 1.00, 05/04, page 310 of 544 StartInitialize IICSet MST = 1 and TRS = 1 in ICCRSet BBSY =1 and SCP = 0 in ICCRWrite transmit data in ICDRClear I

Página 274

Rev. 1.00, 05/04, page 311 of 544 The transmission procedure and operations by which data is sequentially transmitted in synchronization with ICDR (I

Página 275

Rev. 1.00, 05/04, page 312 of 544 12. Clear the IRIC flag to 0. Write 0 to ACKE in ICCR, to clear received ACKB contents to 0. Write 0 to BBSY and SC

Página 276

Rev. 1.00, 05/04, page 313 of 544 SDA(master output)SDA(slave output)21436587989ABit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0Bit 0ICDREIRTRICDRSCL

Página 277

Rev. 1.00, 05/04, page 314 of 544 13.4.4 Master Receive Operation In I2C bus format master receive mode, the master device outputs the receive clock,

Página 278 - Asynchronous mode

Rev. 1.00, 05/04, page 315 of 544 The reception procedure and operations using the HNDS function, by which the data reception process is provided in

Página 279

Rev. 1.00, 05/04, page 1 of 544 Section 1 Overview 1.1 Features • High-speed H8S/2000 central processing unit with an internal 16-bit architecture

Página 280

Rev. 1.00, 05/04, page 316 of 544 SDA(master output)SDA(slave output)214365871299AABit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0Bit 7Bit 6IRTRICDRFICDRRSC

Página 281

Rev. 1.00, 05/04, page 317 of 544 Receive Operation Using the Wait Function: Figures 13.13 and 13.14 show the sample flowcharts for the operations in

Página 282

Rev. 1.00, 05/04, page 318 of 544 EndSet HNDS = 0 in ICXR Set WAIT = 0 in ICMR Set WAIT = 0 in ICMRSet ACKB = 0 in ICSRSet ACKB = 1 in ICSRRead ICDRC

Página 283 - Transmit/receive data

Rev. 1.00, 05/04, page 319 of 544 The reception procedure and operations using the wait function (WAIT bit), by which data is sequentially received i

Página 284 - 12.4.1 Data Transfer Format

Rev. 1.00, 05/04, page 320 of 544 12. The IRIC flag is set to 1 in either of the following cases.  At the fall of the 8th receive clock pulse for o

Página 285 - Formula (1)

Rev. 1.00, 05/04, page 321 of 544 SDA(master output)SDA(slave output)21436587998AABit 7Bit 0Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1IRICIRTRICDRSCL(master outp

Página 286 - (Asynchronous Mode)

Rev. 1.00, 05/04, page 322 of 544 Slave receive modeEndRead IRIC flag in ICCRClear IRIC flag in ICCRRead IRIC flag in ICCRRead AASX, AAS and ADZ in I

Página 287

Rev. 1.00, 05/04, page 323 of 544 The reception procedure and operations using the HNDS bit function, by which data reception process is provided in

Página 288 - D0 D1 D7 0/1 1 0 D0 D1

Rev. 1.00, 05/04, page 324 of 544 SDA(master output)SDA(slave output)21 214365879Bit 7 Bit 6 Bit 7 Bit 6Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0ICDRFIRICI

Página 289

Rev. 1.00, 05/04, page 325 of 544 Continuous Receive Operation: Figure 13.20 shows the sample flowchart for the operations in slave receive mode (HND

Página 290

Rev. 1.00, 05/04, page 2 of 544 1.2 Internal Block Diagram P17/PW7P16/PW6P15/PW5P14/PW4P13/PW3P12/PW2P11/PW1P10/PW0P27 P26P25P24P23P22P21P20PA7/KIN1

Página 291

Rev. 1.00, 05/04, page 326 of 544 The reception procedure and operations in slave receive are described below. 1. Initialize the IIC as described in

Página 292 - <End>

Rev. 1.00, 05/04, page 327 of 544 SDA(master output)SDA(slave output)2143214365879Bit 7 Bit 6Bit 7Bit 6Bit 5Bit 4Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0I

Página 293 - Transmitting

Rev. 1.00, 05/04, page 328 of 544 13.4.6 Slave Transmit Operation If the slave address matches to the address in the first frame (address reception

Página 294

Rev. 1.00, 05/04, page 329 of 544 In slave transmit mode, the slave device outputs the transmit data, while the master device outputs the receive clo

Página 295 - Bit, One Stop Bit)

Rev. 1.00, 05/04, page 330 of 544 10. When the stop condition is detected, that is, when SDA is changed from low to high when SCL is high, the BBSY f

Página 296

Rev. 1.00, 05/04, page 331 of 544 13.4.7 IRIC Setting Timing and SCL Control The interrupt request flag (IRIC) is set at different times depending on

Página 297

Rev. 1.00, 05/04, page 332 of 544 SCLSDAIRICUser processingClear IRIC213A812398Clear IRICWhen WAIT = 1, and FS = 0 or FSX = 0 (I2C bus format, wait i

Página 298 - Synchronization

Rev. 1.00, 05/04, page 333 of 544 SCLSDAIRICUser processingClear IRIC187412387When FS = 1 and FSX = 1 (clocked synchronous serial format)(a) Data tr

Página 299

Rev. 1.00, 05/04, page 334 of 544 13.4.8 Noise Canceller The logic levels at the SCL and SDA pins are routed through noise cancellers before being la

Página 300

Rev. 1.00, 05/04, page 335 of 544 13.4.9 Initialization of Internal State The IIC has a function for forcible initialization of its internal state i

Página 301

Rev. 1.00, 05/04, page 3 of 544 1.3 Pin Description 1.3.1 Pin Arrangement 727170696867666564636261605958575655545352515049484746454443424140393837109

Página 302

Rev. 1.00, 05/04, page 336 of 544 The value of the BBSY bit cannot be modified directly by this module clear function, but since the stop condition p

Página 303

Rev. 1.00, 05/04, page 337 of 544 13.6 Usage Notes 1. In master mode, if an instruction to generate a start condition is issued and then an instruct

Página 304

Rev. 1.00, 05/04, page 338 of 544 5. The I2C bus interface specification for the SCL rise time tsr is 1000 ns or less (300 ns for high-speed mode). I

Página 305 - 12.7 Interrupt Sources

Rev. 1.00, 05/04, page 339 of 544 Table 13.10 I2C Bus Timing (with Maximum Influence of tSr/tSf) Time Indication (at Maximum Transfer Rate) [ns] Ite

Página 306 - 12.8 Usage Notes

Rev. 1.00, 05/04, page 340 of 544 7. Notes on ICDR read at end of master reception To halt reception at the end of a receive operation in master rec

Página 307

Rev. 1.00, 05/04, page 341 of 544 8. Notes on start condition issuance for retransmission Figure 13.30 shows the timing of start condition issuance

Página 308 - Transmission start

Rev. 1.00, 05/04, page 342 of 544 9. Note on when I2C bus interface stop condition instruction is issued In cases where the rise time of the 9th clo

Página 309 - (Internal Clock)

Rev. 1.00, 05/04, page 343 of 544 10. Note on IRIC flag clear when the wait function is used If the rise time of SCL exceeds the stipulated value or

Página 310

Rev. 1.00, 05/04, page 344 of 544 11. Note on ICDR read and ICCR access in slave transmit mode In I2C bus interface slave transmit mode, do not read

Página 311 - C Bus Interface (IIC)

Rev. 1.00, 05/04, page 345 of 544 12. Note on TRS bit setting in slave mode In I2C bus interface slave mode, if the TRS bit value in ICCR is set afte

Página 312 - C Bus Interface

Rev. 1.00, 05/04, page 4 of 544 1.3.2 Pin Functions in Each Operating Mode Table 1.1 Pin Functions in Each Operating Mode Pin Name Pin No. Sing

Página 313 - Figure 13.2 I

Rev. 1.00, 05/04, page 346 of 544 13. Note on ICDR read in transmit mode and ICDR write in receive mode If ICDR is read in transmit mode (TRS = 1) or

Página 314 - 13.2 Input/Output Pins

Rev. 1.00, 05/04, page 347 of 544 SASLAR/WSASLAR/W ADATA2SASLAR/W ASLAR/WADATA3ADATA4DATA1I2C bus interface(Master transmit mode)Transmit data matchT

Página 315 - 13.3 Register Descriptions

Rev. 1.00, 05/04, page 348 of 544

Página 316

IFKEY10A_000020020700 Rev. 1.00, 05/04, page 349 of 544 Section 14 Keyboard Buffer Controller This LSI has three on-chip keyboard buffer controlle

Página 317

Rev. 1.00, 05/04, page 350 of 544 Figure 14.2 shows how the keyboard buffer controller is connected. VccKCLK inKCLK outKD inKD outKeyboard buffer con

Página 318

Rev. 1.00, 05/04, page 351 of 544 14.3 Register Descriptions The keyboard buffer controller has the following registers for each channel. • Keyboard

Página 319

Rev. 1.00, 05/04, page 352 of 544 Bit Bit Name Initial Value R/W Description 3 KBIE 0 R/W Keyboard Interrupt Enable Enables or disables interrup

Página 320 - C Bus Mode Register (ICMR)

Rev. 1.00, 05/04, page 353 of 544 14.3.2 Keyboard Control Register L (KBCRL) KBCRL enables the receive counter count and controls the keyboard buffe

Página 321

Rev. 1.00, 05/04, page 354 of 544 14.3.3 Keyboard Data Buffer Register (KBBR) KBBR stores receive data. Its value is valid only when KBF = 1. Bit Bi

Página 322 - C Transfer Rate

Rev. 1.00, 05/04, page 355 of 544 14.4 Operation 14.4.1 Receive Operation In a receive operation, both KCLK (clock) and KD (data) are outputs on the

Página 323 - ICCR controls the I

Rev. 1.00, 05/04, page 5 of 544 Pin Name Pin No. Single-Chip Modes Flash Memory TFP-144 Mode 2, Mode 3 (EXPE = 0) Programmer Mode 31 P

Página 324

Rev. 1.00, 05/04, page 356 of 544 123KCLK (pin state)KD (pin state)KCLK (input)KCLK (output)KB7 to KB0PERKBSKBFStart bitParity bitStop bitReceive pro

Página 325

Rev. 1.00, 05/04, page 357 of 544 StartSet KBIOE bitKCLKI = 0?Read KBCRHKCLKIand KDI bits both1?Set I/O inhibit (KCLKO = 0)KBE = 0 (KBBR reception pr

Página 326

Rev. 1.00, 05/04, page 358 of 544 Read KBCRHTransmit end state(KCLK = high, KD = high)YesNote: * To switch to reception after transmission, set KBE

Página 327

Rev. 1.00, 05/04, page 359 of 544 14.4.3 Receive Abort This LSI (system side) can forcibly abort transmission from the device connected to it (keyboa

Página 328

Rev. 1.00, 05/04, page 360 of 544 Receive data processingClear KBF flag(KCLK = High)Processing 1Receive operation endsnormally[1] On the system side

Página 329

Rev. 1.00, 05/04, page 361 of 544 14.4.4 KCLKI and KDI Read Timing Figure 14.9 shows the KCLKI and KDI read timing. T1T2φ*Internal readsignalKCLK, K

Página 330

Rev. 1.00, 05/04, page 362 of 544 14.4.6 KBF Setting Timing and KCLK Control Figure 14.11 shows the KBF setting timing and the KCLK pin states. KCLK

Página 331 - C Bus Status Register (ICSR)

Rev. 1.00, 05/04, page 363 of 544 14.4.7 Receive Timing Figure 14.12 shows the receive timing. N + 1 N + 2NKCLK (pin)Note: * The φ clock shown here

Página 332

Rev. 1.00, 05/04, page 364 of 544 14.4.8 KCLK Fall Interrupt Operation In this device, clearing the KBFSEL bit to 0 in KBCRH enables the KBF bit in K

Página 333

Rev. 1.00, 05/04, page 365 of 544 14.5 Usage Notes 14.5.1 KBIOE Setting and KCLK Falling Edge Detection When KBIOE is 0, the internal KCLK and inter

Página 334

Rev. 1.00, 05/04, page iv of xxxiv General Precautions on Handling of Product 1. Treatment of NC Pins Note: Do not connect anything to the NC pins.

Página 335

Rev. 1.00, 05/04, page 6 of 544 Pin Name Pin No. Single-Chip Modes Flash Memory TFP-144 Mode 2, Mode 3 (EXPE = 0) Programmer Mode 61 P

Página 336 - 13.3.8 I

Rev. 1.00, 05/04, page 366 of 544 14.5.2 Module Stop Mode Setting Keyboard buffer controller operation can be enabled or disabled using the module st

Página 337

IFHSTL0A_020020040200 Rev. 1.00, 05/04, page 367 of 544 Section 15 Host Interface (LPC) This LSI has an on-chip LPC interface. The LPC performs se

Página 338

Rev. 1.00, 05/04, page 368 of 544 Figure 15.1 shows a block diagram of the LPC. TWR1–15IDR3IDR2IDR1H'0060/64H'0062/66LADR3SIRQCR0SIRQCR1TWR

Página 339

Rev. 1.00, 05/04, page 369 of 544 15.2 Input/Output Pins Table 15.1 lists the input and output pins of the LPC module. Table 15.1 Pin Configuration

Página 340

Rev. 1.00, 05/04, page 370 of 544 15.3 Register Descriptions The LPC has the following registers. • Host interface control register 0 (HICR0) • Ho

Página 341 - 13.4 Operation

Rev. 1.00, 05/04, page 371 of 544 15.3.1 Host Interface Control Registers 0 and 1 (HICR0, HICR1) HICR0 and HICR1 contain control bits that enable or

Página 342 - C Bus Data Format Symbols

Rev. 1.00, 05/04, page 372 of 544 R/W Bit Bit Name Initial Value Slave Host Description 4 FGA20E 0 R/W — Fast A20 Gate Function Enable Enables o

Página 343 - 13.4.2 Initialization

Rev. 1.00, 05/04, page 373 of 544 R/W Bit Bit Name Initial Value Slave Host Description 2 PMEE 0 R/W — PME output Enable Controls PME output in

Página 344 - [1] Initialization

Rev. 1.00, 05/04, page 374 of 544 • HICR1 R/W Bit Bit Name Initial Value Slave Host Description 7 LPCBSY 0 R/W — LPC Busy Indicates that the host in

Página 345

Rev. 1.00, 05/04, page 375 of 544 R/W Bit Bit Name Initial Value Slave Host Description 5 IRQBSY 0 R — SERIRQ Busy Indicates that the host interface&

Página 346

Rev. 1.00, 05/04, page 7 of 544 Pin Name Pin No. Single-Chip Modes Flash Memory TFP-144 Mode 2, Mode 3 (EXPE = 0) Programmer Mode 91 P

Página 347 - 21436587989

Rev. 1.00, 05/04, page 376 of 544 R/W Bit Bit Name Initial Value Slave Host Description 3 SDWNB 0 R/W — LPC Software Shutdown Bit Controls host

Página 348 - (HNDS = 1)

Rev. 1.00, 05/04, page 377 of 544 15.3.2 Host Interface Control Registers 2 and 3 (HICR2, HICR3) Bits 6 to 0 in HICR2 control interrupts from the ho

Página 349

Rev. 1.00, 05/04, page 378 of 544 R/W Bit Bit Name Initial Value Slave Host Description 3 IBFIE3 0 R/W — IDR3 and TWR Receive Completion Interrupt

Página 350 - (MLS = WAIT = 0, HNDS = 1)

Rev. 1.00, 05/04, page 379 of 544 15.3.3 LPC Channel 3 Address Register (LADR3) LADR3 comprises two 8-bit readable/writable registers that perform L

Página 351 - Read ICDR

Rev. 1.00, 05/04, page 380 of 544 Table 15.2 Register Selection I/O Address Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Transfer Cycle Host Register Selectio

Página 352 - Set WAIT = 0 in ICMR

Rev. 1.00, 05/04, page 381 of 544 15.3.5 Output Data Registers 1 to 3 (ODR1 to ODR3) The ODR registers are 8-bit readable/writable registers for the

Página 353

Rev. 1.00, 05/04, page 382 of 544 I/O Address Bits 15 to 4 Bit 3 Bit 2 Bit 1 Bit 0 Transfer Cycle Host Register Selection 0000 0000 0110 0 1

Página 354 - (MLS = ACKB = 0, WAIT = 1)

Rev. 1.00, 05/04, page 383 of 544 • STR2 R/W Bit Bit Name Initial Value Slave Host Description 7 6 5 4 DBU27 DBU26 DBU25 DBU24 0 0 0 0 R/W R/W R/

Página 355

Rev. 1.00, 05/04, page 384 of 544 • STR3 (TWRE = 1 or SELSTR3 = 0) R/W Bit Bit Name Initial Value Slave HostDescription 7 IBF3B 0 R R Bidirecti

Página 356 - Slave receive mode

Rev. 1.00, 05/04, page 385 of 544 R/W Bit Bit Name Initial Value Slave Host Description 3 C/D3 0 R R Command/Data When the host processor writes to a

Página 357

Rev. 1.00, 05/04, page 8 of 544 Pin Name Pin No. Single-Chip Modes Flash Memory TFP-144 Mode 2, Mode 3 (EXPE = 0) Programmer Mode 121

Página 358 - (MLS = 0, HNDS= 1)

Rev. 1.00, 05/04, page 386 of 544 • STR3 (TWRE = 0 and SELSTR3 = 1) R/W Bit Bit Name Initial Value Slave Host Description 7 6 5 4 DBU37 DBU36 DBU35

Página 359 - [12] Detect stop condition

Rev. 1.00, 05/04, page 387 of 544 15.3.8 SERIRQ Control Registers 0 and 1 (SIRQCR0, SIRQCR1) The SIRQCR registers contain status bits that indicate

Página 360

Rev. 1.00, 05/04, page 388 of 544 R/W Bit Bit Name Initial Value Slave Host Description 4 SMIE3B 0 R/W — Host SMI Interrupt Enable 3B Enables or

Página 361 - (MLS = ACKB = 0, HNDS = 0)

Rev. 1.00, 05/04, page 389 of 544 R/W Bit Bit Name Initial Value Slave Host Description 2 SMIE2 0 R/W — Host SMI Interrupt Enable 2 Enables or d

Página 362 - Set TRS = 0 in ICCR

Rev. 1.00, 05/04, page 390 of 544 R/W Bit Bit Name Initial Value Slave Host Description 0 IRQ1E1 0 R/W — Host IRQ1 Interrupt Enable 1 Enables o

Página 363

Rev. 1.00, 05/04, page 391 of 544 R/W Bit Bit Name Initial Value Slave Host Description 6 IRQ10E3 0 R/W — Host IRQ10 Interrupt Enable 3 Enables

Página 364 - (MLS = 0)

Rev. 1.00, 05/04, page 392 of 544 R/W Bit Bit Name Initial Value Slave Host Description 4 IRQ6E3 0 R/W — Host IRQ6 Interrupt Enable 3 Enables o

Página 365

Rev. 1.00, 05/04, page 393 of 544 R/W Bit Bit Name Initial Value Slave Host Description 2 IRQ10E2 0 R/W — Host IRQ10 Interrupt Enable 2 Enables

Página 366 - C bus format, wait inserted)

Rev. 1.00, 05/04, page 394 of 544 R/W Bit Bit Name Initial Value Slave Host Description 0 IRQ6E2 0 R/W — Host IRQ6 Interrupt Enable 2 Enables or

Página 367 - User processing

Rev. 1.00, 05/04, page 395 of 544 15.3.9 Host Interface Select Register (HISEL) HISEL selects the function of bits 7 to 4 in STR3 and specifies the

Página 368 - System clock

Rev. 1.00, 05/04, page 9 of 544 1.3.3 Pin Functions Table 1.2 Pin Functions Pin No. Type Symbol TFP-144 I/O Name and Function VCC 1, 86 Input

Página 369

Rev. 1.00, 05/04, page 396 of 544 15.4 Operation 15.4.1 Host Interface Activation The host interface is activated by setting one of bits LPC3E to LP

Página 370 - 13.5 Interrupt Sources

Rev. 1.00, 05/04, page 397 of 544 15.4.2 LPC I/O Cycles There are ten kinds of LPC transfer cycle: memory read, memory write, I/O read, I/O write, D

Página 371 - 13.6 Usage Notes

Rev. 1.00, 05/04, page 398 of 544 The timing of the LFRAME, LCLK, and LAD signals is shown in figures 15.2 and 15.3. ADDRStartLFRAMELAD3–LAD0Number o

Página 372

Rev. 1.00, 05/04, page 399 of 544 Regular A20 Gate Operation: Output of the A20 gate signal can be controlled by an H'D1 command followed by dat

Página 373 - Table 13.10 I

Rev. 1.00, 05/04, page 400 of 544 Table 15.4 Fast A20 Gate Output Signals HA0 Data/Command Internal CPU Interrupt Flag (IBF) GA20 (P81) Remarks 1

Página 374 - (read BBSY = 0)

Rev. 1.00, 05/04, page 401 of 544 15.4.4 Host Interface Shutdown Function (LPCPD) The host interface can be placed in the shutdown state according t

Página 375

Rev. 1.00, 05/04, page 402 of 544 Table 15.5 shows the scope of the host interface pin shutdown. Table 15.5 Scope of Host Interface Pin Shutdown Abb

Página 376

Rev. 1.00, 05/04, page 403 of 544 The scope of the initialization in each mode is shown in table 15.6. Table 15.6 Scope of Initialization in Each Ho

Página 377 - [2] IRIC clear

Rev. 1.00, 05/04, page 404 of 544 Figure 15.5 shows the timing of the LPCPD and LRESET signals. LPCPDLRESETLAD3–LAD0LFRAMELCLKAt least 30 µsAt least

Página 378

Rev. 1.00, 05/04, page 405 of 544 15.4.5 Host Interface Serialized Interrupt Operation (SERIRQ) A host interrupt request can be issued from the host

Página 379

Rev. 1.00, 05/04, page 10 of 544 Pin No. Type Symbol TFP-144 I/O Name and Function FTCI 78 Input The counter clock input pin. FTOA 79 Output

Página 380

Rev. 1.00, 05/04, page 406 of 544 Serial Interrupt Transfer Cycle Frame Count Contents Drive Source Number of States Notes 0 Start Slave Host 6

Página 381 - R/W ASLA

Rev. 1.00, 05/04, page 407 of 544 15.4.6 Host Interface Clock Start Request (CLKRUN) A request to restart the clock (LCLK) can be sent to the host p

Página 382

Rev. 1.00, 05/04, page 408 of 544 15.5 Interrupt Sources 15.5.1 IBFI1, IBFI2, IBFI3, and ERRI The host interface has four interrupt requests for the

Página 383 - 14.1 Features

Rev. 1.00, 05/04, page 409 of 544 Table 15.8 summarizes the methods of setting and clearing these bits, and figure 15.8 shows the processing flowchar

Página 384 - 14.2 Input/Output Pins

Rev. 1.00, 05/04, page 410 of 544 Slave CPU Master CPUODR1 writeWrite 1 to IRQ1E1OBF1 = 0?YesNoNoYesAll bytestransferred?SERIRQ IRQ1 outputSERIRQ IRQ

Página 385 - 14.3 Register Descriptions

Rev. 1.00, 05/04, page 411 of 544 15.6 Usage Notes 15.6.1 Module Stop Mode Setting LPC operation can be enabled or disabled using the module stop con

Página 386

Rev. 1.00, 05/04, page 412 of 544 Table 15.9 Host Address Example Register Host Address when LADR3 = H'A24F Host Address when LADR3 = H'3

Página 387

ADCMS33B_010020040200 Rev. 1.00, 05/04, page 413 of 544 Section 16 A/D Converter This LSI includes a successive-approximation-type 10-bit A/D conv

Página 388

Rev. 1.00, 05/04, page 414 of 544 A block diagram of the A/D converter is shown in figure 16.1. Module data busControl circuitInternal data bus10-bit

Página 389 - 14.4 Operation

Rev. 1.00, 05/04, page 415 of 544 16.2 Input/Output Pins Table 16.1 summarizes the pins used by the A/D converter. The 6 analog input pins are divide

Página 390

Rev. 1.00, 05/04, page 11 of 544 Pin No. Type Symbol TFP-144 I/O Name and Function LAD3 to LAD0 124 to 121 Input/ Output LPC command, address, a

Página 391

Rev. 1.00, 05/04, page 416 of 544 16.3 Register Descriptions The A/D converter has the following registers. • A/D data register A (ADDRA) • A/D dat

Página 392 - Receive

Rev. 1.00, 05/04, page 417 of 544 16.3.2 A/D Control/Status Register (ADCSR) ADCSR controls A/D conversion operations. Bit Bit Name Initial Value R/

Página 393

Rev. 1.00, 05/04, page 418 of 544 Bit Bit NameInitial Value R/W Description Channel Select 2 to 0 Select analog input channels. The input channel s

Página 394

Rev. 1.00, 05/04, page 419 of 544 16.4 Operation The A/D converter operates by successive approximation with 10-bit resolution. It has two operating

Página 395

Rev. 1.00, 05/04, page 420 of 544 Figure 16.2 shows the operation timing. 1. Scan mode is selected (SCAN = 1), scan group 0 is selected (CH2 = 0), a

Página 396

Rev. 1.00, 05/04, page 421 of 544 16.4.3 Input Sampling and A/D Conversion Time The A/D converter has a built-in sample-and-hold circuit. The A/D co

Página 397 - 14.4.7 Receive Timing

Rev. 1.00, 05/04, page 422 of 544 Table 16.3 A/D Conversion Time (Single Mode) CKS = 0 CKS = 1 Item Symbol Min. Typ. Max. Min. Typ. Max. A/D conv

Página 398

Rev. 1.00, 05/04, page 423 of 544 16.5 Interrupt Sources The A/D converter generates an A/D conversion end interrupt (ADI) at the end of A/D conversi

Página 399 - 14.5 Usage Notes

Rev. 1.00, 05/04, page 424 of 544 H'001H'00011024210241022102410231024FSQuantization errorDigital outputIdeal A/D conversioncharacteristicA

Página 400

Rev. 1.00, 05/04, page 425 of 544 16.7 Usage Notes 16.7.1 Permissible Signal Source Impedance This LSI's analog input (3-V version) is designed

Página 401 - 15.1 Features

Rev. 1.00, 05/04, page 12 of 544 Pin No. Type Symbol TFP-144 I/O Name and Function I2C bus interface (IIC) SCL0 SCL1 ExSCLA* ExSCLB* 14 135 53 51

Página 402

Rev. 1.00, 05/04, page 426 of 544 16.7.3 Setting Range of Analog Power Supply and Other Pins If conditions shown below are not met, the reliability

Página 403 - 15.2 Input/Output Pins

Rev. 1.00, 05/04, page 427 of 544 AVCC*1AN0 to AN5AVSSNotes: Values are reference values.2. Rin: Input impedance1.*1Rin*2100 Ω0.1 µF0.01 µF10 µFAVr

Página 404 - 15.3 Register Descriptions

Rev. 1.00, 05/04, page 428 of 544

Página 405 - • HICR0

Rev. 1.00, 05/04, page 429 of 544 Section 17 RAM This LSI has an on-chip high-speed static RAM. The RAM is connected to the CPU by a 16-bit data bu

Página 406

Rev. 1.00, 05/04, page 430 of 544

Página 407

ROMF360A_010020040200 Rev. 1.00, 05/04, page 431 of 544 Section 18 ROM This LSI has an on-chip ROM (flash memory). The features of the flash memor

Página 408 - • HICR1

Rev. 1.00, 05/04, page 432 of 544 • Programmer mode In addition to on-board programming mode, programmer mode is supported to program or erase the f

Página 409

Rev. 1.00, 05/04, page 433 of 544 18.2 Mode Transitions When the mode pins are set in the reset state and a reset-start is executed, this LSI enters

Página 410

Rev. 1.00, 05/04, page 434 of 544 <Flash memory><This LSI><RAM><Host>Programming control programSCIApplication program (old v

Página 411

Rev. 1.00, 05/04, page 435 of 544 <Flash memory><This LSI><RAM><Host>Programming/erase control programSCIBoot programNew appl

Página 412 - • HICR3

CPU210A_020020040200 Rev. 1.00, 05/04, page 13 of 544 Section 2 CPU The H8S/2000 CPU is a high-speed central processing unit with an internal 32-b

Página 413

Rev. 1.00, 05/04, page 436 of 544 18.3 Block Configuration Figure 18.5 shows the block configuration of flash memory. The thick lines indicate erasin

Página 414

Rev. 1.00, 05/04, page 437 of 544 18.4 Input/Output Pins The flash memory is controlled by means of the pins shown in table 18.2. Table 18.2 Pin Con

Página 415

Rev. 1.00, 05/04, page 438 of 544 18.5.1 Flash Memory Control Register 1 (FLMCR1) FLMCR1, used together with FLMCR2, makes the flash memory transit

Página 416 - • STR1

Rev. 1.00, 05/04, page 439 of 544 18.5.2 Flash Memory Control Register 2 (FLMCR2) FLMCR2 monitors the state of flash memory programming/erasing prot

Página 417 - • STR2

Rev. 1.00, 05/04, page 440 of 544 18.5.3 Erase Block Registers 1 and 2 (EBR1, EBR2) EBR1 and EBR2 are used to specify the flash memory erase block.

Página 418

Rev. 1.00, 05/04, page 441 of 544 18.6 Operating Modes The flash memory is connected to the CPU via a 16-bit data bus, enabling byte data and word da

Página 419

Rev. 1.00, 05/04, page 442 of 544 18.7.1 Boot Mode Table 18.5 shows the boot mode operations between reset end and branching to the programming contr

Página 420

Rev. 1.00, 05/04, page 443 of 544 7. Boot mode can be cleared by a reset. Cancel the reset*2 after driving the reset pin low, waiting at least 20 st

Página 421 - • SIRQCR0

Rev. 1.00, 05/04, page 444 of 544 Table 18.6 System Clock Frequencies for which Automatic Adjustment of LSI Bit Rate is Possible Host Bit Rate Syst

Página 422

Rev. 1.00, 05/04, page 445 of 544 18.7.2 User Program Mode On-board programming/erasing of an individual flash memory block can also be performed in

Página 423

Rev. 1.00, 05/04, page 14 of 544 • Two CPU operating modes Normal mode Advanced mode • Power-down state Transition to power-down state by SLEEP ins

Página 424 - • SIRQCR1

Rev. 1.00, 05/04, page 446 of 544 18.8 Flash Memory Programming/Erasing A software method, using the CPU, is employed to program and erase flash mem

Página 425

Rev. 1.00, 05/04, page 447 of 544 STARTEnd of programmingSet SWE bit in FLMCR1Start of programmingWrite pulse application subroutineWait (x) µsSub-Ro

Página 426

Rev. 1.00, 05/04, page 448 of 544 18.8.2 Erase/Erase-Verify When erasing flash memory, the erase/erase-verify flowchart shown in figure 18.10 should

Página 427

Rev. 1.00, 05/04, page 449 of 544 End of erasingSTARTSet SWE bit in FLMCR1Set ESU bit in FLMCR2Set E bit in FLMCR1Wait (x) µsWait (y) µsn = 1Set EBR1

Página 428

Rev. 1.00, 05/04, page 450 of 544 18.9 Program/Erase Protection There are three kinds of flash memory program/erase protection: hardware protection,

Página 429

Rev. 1.00, 05/04, page 451 of 544 The FLMCR1, FLMCR2, EBR1, and EBR2 settings are retained, but program mode or erase mode is aborted at the point at

Página 430 - 15.4 Operation

Rev. 1.00, 05/04, page 452 of 544 18.11 Programmer Mode In programmer mode, the on-chip flash memory can be programmed/erased by a PROM programmer vi

Página 431

Rev. 1.00, 05/04, page 453 of 544 18.12 Usage Notes The following lists notes on the use of on-board programming modes and programmer mode. 1. Perfo

Página 432 - Master will

Rev. 1.00, 05/04, page 454 of 544

Página 433

Rev. 1.00, 05/04, page 455 of 544 Section 19 Clock Pulse Generator This LSI incorporates a clock pulse generator, which generates the system clock

Página 434

Rev. 1.00, 05/04, page 15 of 544 2.1.2 Differences from H8/300 CPU In comparison to the H8/300 CPU, the H8S/2000 CPU has the following enhancements.

Página 435

Rev. 1.00, 05/04, page 456 of 544 19.1 Oscillator Clock pulses can be supplied either by connecting a crystal resonator, or by providing external clo

Página 436

Rev. 1.00, 05/04, page 457 of 544 19.1.2 External Clock Input Method Figure 19.4 shows a typical method of connecting an external clock signal. To l

Página 437

Rev. 1.00, 05/04, page 458 of 544 Table 19.3 External Clock Input Conditions VCC =3.0 to 3.6 V Item Symbol Min Max Unit Test Conditions External clo

Página 438 - At least 60 µs

Rev. 1.00, 05/04, page 459 of 544 tDEXT*RES(Internal and external)EXTALSTBYVCC3.0 VVIHφNote: * The external clock output stabilization delay time (t

Página 439

Rev. 1.00, 05/04, page 460 of 544 19.5 Subclock Input Circuit The subclock input circuit controls subclock input from the EXCL pin. To use the subcl

Página 440

Rev. 1.00, 05/04, page 461 of 544 19.7 Clock Select Circuit The clock select circuit selects the system clock that is used in this LSI. A clock gene

Página 441 - Pull-up enable

Rev. 1.00, 05/04, page 462 of 544

Página 442 - 15.5 Interrupt Sources

Rev. 1.00, 05/04, page 463 of 544 Section 20 Power-Down Modes For operating modes after the reset state is cancelled, this LSI has not only the nor

Página 443

Rev. 1.00, 05/04, page 464 of 544 20.1.1 Standby Control Register (SBYCR) SBYCR controls power-down modes. Bit Bit Name Initial Value R/W Descriptio

Página 444

Rev. 1.00, 05/04, page 465 of 544 Table 20.1 Operating Frequency and Wait Time STS2 STS1 STS0 Wait Time 10 MHz 8 MHz 6 MHz 4 MHz Unit 0 0 0

Página 445 - 15.6 Usage Notes

Rev. 1.00, 05/04, page v of xxxiv Configuration of This Manual This manual comprises the following items: 1. General Precautions on Handling of Prod

Página 446

Rev. 1.00, 05/04, page 16 of 544 2.2 CPU Operating Modes The H8S/2000 CPU has two operating modes: normal and advanced. Normal mode supports a maxim

Página 447 - Section 16 A/D Converter

Rev. 1.00, 05/04, page 466 of 544 Bit Bit Name Initial Value R/W Description 6 LSON 0 R/W Low-Speed On Flag Specifies the operating mode to be e

Página 448 - Bus interface

Rev. 1.00, 05/04, page 467 of 544 20.1.3 Module Stop Control Registers H and L (MSTPCRH, MSTPCRL) MSTPCRH and MSTPCRL specify on-chip peripheral mod

Página 449 - 16.2 Input/Output Pins

Rev. 1.00, 05/04, page 468 of 544 20.2 Mode Transitions and LSI States Figure 20.1 shows the enabled mode transition diagram. The mode transition fr

Página 450 - 16.3 Register Descriptions

Rev. 1.00, 05/04, page 469 of 544 Table 20.2 LSI Internal States in Each Operating Mode Function High- Speed Medium- Speed Sleep Module Stop Watch

Página 451

Rev. 1.00, 05/04, page 470 of 544 20.3 Medium-Speed Mode The CPU makes a transition to medium-speed mode as soon as the current bus cycle ends accord

Página 452

Rev. 1.00, 05/04, page 471 of 544 20.4 Sleep Mode The CPU makes a transition to sleep mode if the SLEEP instruction is executed when the SSBY bit in

Página 453 - 16.4 Operation

Rev. 1.00, 05/04, page 472 of 544 When the RES pin is driven low, system clock oscillation is started. At the same time as system clock oscillation s

Página 454 - State of channel 2 (AN2)

Rev. 1.00, 05/04, page 473 of 544 20.6 Hardware Standby Mode The CPU makes a transition to hardware standby mode from any mode when the STBY pin is

Página 455

Rev. 1.00, 05/04, page 474 of 544 20.7 Watch Mode The CPU makes a transition to watch mode when the SLEEP instruction is executed in high-speed mode

Página 456

Rev. 1.00, 05/04, page 475 of 544 20.8 Subsleep Mode The CPU makes a transition to subsleep mode when the SLEEP instruction is executed in subactive

Página 457 - 16.5 Interrupt Sources

Rev. 1.00, 05/04, page 17 of 544 H'0000H'0001H'0002H'0003H'0004H'0005H'0006H'0007H'0008H'0009H&apos

Página 458 - Nonlinearity

Rev. 1.00, 05/04, page 476 of 544 20.9 Subactive Mode The CPU makes a transition to subactive mode when the SLEEP instruction is executed in high-spe

Página 459 - 16.7 Usage Notes

Rev. 1.00, 05/04, page 477 of 544 20.10 Module Stop Mode Module stop mode can be individually set for each on-chip peripheral module. When the corre

Página 460

Rev. 1.00, 05/04, page 478 of 544 20.12 Usage Notes 20.12.1 I/O Port Status The status of the I/O ports is retained in software standby mode. Theref

Página 461 - To A/D converterAN0 to AN5

Rev. 1.00, 05/04, page 479 of 544 Section 21 List of Registers The register list gives information on the on-chip I/O register addresses, how the r

Página 462

Rev. 1.00, 05/04, page 480 of 544 21.1 Register Addresses (Address Order) The data bus width indicates the numbers of bits by which the register is

Página 463 - Section 17 RAM

Rev. 1.00, 05/04, page 481 of 544 Register Name Abbreviation Number of Bits Address Module Data Bus Width Number of Access States Bidirectional data

Página 464

Rev. 1.00, 05/04, page 482 of 544 Register Name Abbreviation Number of Bits Address Module Data Bus Width Number of Access States Wakeup event inter

Página 465 - Section 18 ROM

Rev. 1.00, 05/04, page 483 of 544 Register Name Abbreviation Number of Bits Address Module Data Bus Width Number of Access States Keyboard control r

Página 466 - • Programmer mode

Rev. 1.00, 05/04, page 484 of 544 Register Name Abbreviation Number of Bits Address Module Data Bus Width Number of Access States Low power control

Página 467 - 18.2 Mode Transitions

Rev. 1.00, 05/04, page 485 of 544 Register Name Abbreviation Number of Bits Address Module Data Bus Width Number of Access States Output control reg

Página 468 - Figure 18.3 Boot Mode

Rev. 1.00, 05/04, page 18 of 544 2.2.2 Advanced Mode • Address space Linear access to a maximum address space of 16 Mbytes is possible. • Extended

Página 469 - Boot program

Rev. 1.00, 05/04, page 486 of 544 Register Name Abbreviation Number of Bits Address Module Data Bus Width Number of Access States Port 8 data direct

Página 470 - 18.3 Block Configuration

Rev. 1.00, 05/04, page 487 of 544 Register Name Abbreviation Number of Bits Address Module Data Bus Width Number of Access States I2C bus mode regis

Página 471 - 18.5 Register Descriptions

Rev. 1.00, 05/04, page 488 of 544 Register Name Abbreviation Number of Bits Address Module Data Bus Width Number of Access States Input capture regi

Página 472

Rev. 1.00, 05/04, page 489 of 544 21.2 Register Bits Register addresses and bit names of the on-chip peripheral modules are described below. Each lin

Página 473

Rev. 1.00, 05/04, page 490 of 544 Register Abbreviation Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module TWR1 Bit 7 Bit 6 Bit 5 Bit 4 Bit

Página 474

Rev. 1.00, 05/04, page 491 of 544 Register Abbreviation Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module WUEMRB WUEMR7 WUEMR6 WUEMR5 W

Página 475 - 18.6 Operating Modes

Rev. 1.00, 05/04, page 492 of 544 Register Abbreviation Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module ICRA ICRA7 ICRA6 ICRA5 ICRA4 ICRA3 IC

Página 476

Rev. 1.00, 05/04, page 493 of 544 Register Abbreviation Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module TIER ICIAE ICIBE ICICE ICIDE O

Página 477 - Transfer of programming

Rev. 1.00, 05/04, page 494 of 544 Register Abbreviation Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module PAODR PA7ODR PA6ODR PA5ODR PA4ODR PA3

Página 478 - Possible

Rev. 1.00, 05/04, page 495 of 544 Register Abbreviation Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module TCR_0 CMIEB CMIEA OVIE CCLR1 C

Página 479 - Program/erase?

Rev. 1.00, 05/04, page 19 of 544 The memory indirect addressing mode (@@aa:8) employed in the JMP and JSR instructions uses an 8-bit absolute address

Página 480

Rev. 1.00, 05/04, page 496 of 544 Register Abbreviation Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module TCR_X CMIEB CMIEA OVIE CCLR1 CCLR0 CKS

Página 481 - End of programming

Rev. 1.00, 05/04, page 497 of 544 21.3 Register States in Each Operating Mode Register Abbrevia- tion Reset High-Speed/ Medium- Speed Watch Sleep Su

Página 482

Rev. 1.00, 05/04, page 498 of 544 Register Abbrevia- tion Reset High-Speed/ Medium- Speed Watch Sleep Sub- Active Sub-SleepModule Stop Software Stand

Página 483 - Set block start address

Rev. 1.00, 05/04, page 499 of 544 Register Abbrevia- tion Reset High-Speed/ Medium- Speed Watch Sleep Sub- Active Sub-SleepModule Stop Software Stand

Página 484

Rev. 1.00, 05/04, page 500 of 544 Register Abbrevia- tion Reset High-Speed/ Medium- Speed Watch Sleep Sub- Active Sub-SleepModule Stop Software Stand

Página 485

Rev. 1.00, 05/04, page 501 of 544 Register Abbrevia- tion Reset High-Speed/ Medium- Speed Watch Sleep Sub- Active Sub-SleepModule Stop Software Stand

Página 486 - 18.11 Programmer Mode

Rev. 1.00, 05/04, page 502 of 544 Register Abbrevia- tion Reset High-Speed/ Medium- Speed Watch Sleep Sub- Active Sub-SleepModule Stop Software Stand

Página 487 - 18.12 Usage Notes

Rev. 1.00, 05/04, page 503 of 544 Register Abbrevia- tion Reset High-Speed/ Medium- Speed Watch Sleep Sub- Active Sub-SleepModule Stop Software Stand

Página 488

Rev. 1.00, 05/04, page 504 of 544 Register Abbrevia- tion Reset High-Speed/ Medium- Speed Watch Sleep Sub- Active Sub-SleepModule Stop Software Stand

Página 489 - Subclock

Rev. 1.00, 05/04, page 505 of 544 21.4 Register Select Conditions Lower Address Register Name Register Select Condition Module Name H'FE00 T

Página 490 - 19.1 Oscillator

Rev. 1.00, 05/04, page 20 of 544 2.3 Address Space Figure 2.5 shows a memory map of the H8S/2000 CPU. The H8S/2000 CPU provides linear access to a ma

Página 491

Rev. 1.00, 05/04, page 506 of 544 Lower Address Register Name Register Select Condition Module Name TWR0MW H'FE20 TWR0SW H'FE21 TWR1 H&a

Página 492

Rev. 1.00, 05/04, page 507 of 544 Lower Address Register Name Register Select Condition Module Name H'FE44 WUEMRB No condition INT H'FE

Página 493

Rev. 1.00, 05/04, page 508 of 544 Lower Address Register Name Register Select Condition Module Name H'FEE8 ICRA H'FEE9 ICRB H'FEEA

Página 494 - 19.5 Subclock Input Circuit

Rev. 1.00, 05/04, page 509 of 544 Lower Address Register Name Register Select Condition Module Name OCRAH OCRS = 0 in TOCR H'FF94 OCRBH OCR

Página 495 - 19.8 Usage Notes

Rev. 1.00, 05/04, page 510 of 544 Lower Address Register Name Register Select Condition Module Name H'FFAA PAODR No condition PORT H'FF

Página 496

Rev. 1.00, 05/04, page 511 of 544 Lower Address Register Name Register Select Condition Module Name H'FFC8 TCR_0 MSTP12 = 0 TMR_0, TMR_1 H

Página 497 - 20.1 Register Descriptions

Rev. 1.00, 05/04, page 512 of 544 Lower Address Register Name Register Select Condition Module Name H'FFEA TCSR_1 No condition WDT_1 TCNT_1

Página 498

Rev. 1.00, 05/04, page 513 of 544 Section 22 Electrical Characteristics 22.1 Absolute Maximum Ratings Table 22.1 lists the absolute maximum rating

Página 499

Rev. 1.00, 05/04, page 514 of 544 22.2 DC Characteristics Table 22.2 lists the DC characteristics. Permitted output current values and bus drive char

Página 500

Rev. 1.00, 05/04, page 515 of 544 Item Symbol Min. Typ. Max. Unit Test Conditions All output pins (except RESO)*5 — — 0.4 V IOL = 1.6 mA Ports 1 to 3

Página 501 - • MSTPCRL

Rev. 1.00, 05/04, page 21 of 544 2.4 Register Configuration The H8S/2000 CPU has the internal registers shown in figure 2.6. There are two types of r

Página 502

Rev. 1.00, 05/04, page 516 of 544 Table 22.2 DC Characteristics (2) Conditions: VCC = 3.0 V to 3.6 V*5, VCCB = 3.0 V to 5.5 V, AVCC*1 = 3.0 V to 3.6

Página 503

Rev. 1.00, 05/04, page 517 of 544 Item Symbol Min. Typ. Max. Unit Test Conditions 3.0 — 3.6 Operating Analog power supply voltage*1 AVCC 2.0 — 3.6 V

Página 504 - 20.3 Medium-Speed Mode

Rev. 1.00, 05/04, page 518 of 544 Table 22.3 Permissible Output Currents Conditions: VCC = 3.0 V to 3.6 V, VCCB = 3.0 V to 5.5 V, VSS = 0 V, Ta = –2

Página 505 - 20.5 Software Standby Mode

Rev. 1.00, 05/04, page 519 of 544 600 ΩThis LSIPorts 1 to 3LED Figure 22.2 LED Drive Circuit (Example) Table 22.4 Bus Drive Characteristics Condit

Página 506 - NMI exception

Rev. 1.00, 05/04, page 520 of 544 Conditions: VCC = 3.0 V to 3.6 V, VCCB = 3.0 V to 5.5 V, VSS = 0 V, Ta = –20 to +75°C Applicable Pins: PS2AC, PS2A

Página 507 - 20.6 Hardware Standby Mode

Rev. 1.00, 05/04, page 521 of 544 22.3.1 Clock Timing Table 22.5 shows the clock timing. The clock timing specified here covers clock (φ) output and

Página 508 - 20.7 Watch Mode

Rev. 1.00, 05/04, page 522 of 544 22.3.2 Control Signal Timing Table 22.6 shows the control signal timing. The only external interrupts that can ope

Página 509 - 20.8 Subsleep Mode

Rev. 1.00, 05/04, page 523 of 544 22.3.3 Timing of On-Chip Peripheral Modules Tables 22.7 to 22.10 show the on-chip peripheral module timing. The on

Página 510 - 20.9 Subactive Mode

Rev. 1.00, 05/04, page 524 of 544 Condition 10 MHz Item Symbol Min. Max. Unit Test Conditions Transmit data delay time (synchronous) tTXD — 100 ns

Página 511 - 20.11 Direct Transitions

Rev. 1.00, 05/04, page 525 of 544 Table 22.9 I2C Bus Timing Conditions: VCC = 3.0 V to 3.6 V, VSS = 0 V, φ = 5 MHz to maximum operating frequency,

Página 512 - 20.12 Usage Notes

Rev. 1.00, 05/04, page 22 of 544 2.4.1 General Registers The H8S/2000 CPU has eight 32-bit general registers. These general registers are all functio

Página 513

Rev. 1.00, 05/04, page 526 of 544 Table 22.10 LPC Module Timing Conditions: VCC = 3.0 V to 3.6 V, VSS = 0 V, φ = 4 MHz to maximum operating frequenc

Página 514

Rev. 1.00, 05/04, page 527 of 544 22.5 Flash Memory Characteristics Table 22.12 shows the flash memory characteristics. Table 22.12 Flash Memory Ch

Página 515

Rev. 1.00, 05/04, page 528 of 544 Item Symbol Min. Typ. Max. Unit Test Conditions Wait time after SWE-bit setting*1 x 1 — — µs Wait time after ESU-

Página 516

Rev. 1.00, 05/04, page 529 of 544 22.6 Usage Note The method of connecting an external capacitor is shown in figure 22.4. Connect the system power su

Página 517

Rev. 1.00, 05/04, page 530 of 544 tOSC1tOSC1EXTALVCCSTBYRESφtDEXTtDEXT Figure 22.6 Oscillation Settling Timing φNMIIRQi(i = 0, 1, 2, 6, 7)tOSC2 Fig

Página 518

Rev. 1.00, 05/04, page 531 of 544 22.7.2 Control Signal Timing The control signal timings are shown below. tRESWtRESSφtRESSRES Figure 22.8 Reset I

Página 519

Rev. 1.00, 05/04, page 532 of 544 22.7.3 On-Chip Peripheral Module Timing The on-chip peripheral module timings are shown below. φPorts 1 to 9, and

Página 520

Rev. 1.00, 05/04, page 533 of 544 φTMO0, TMO1TMOX, ExTMOX, TMOY, TMOA, TMOBtTMOD Figure 22.13 8-Bit Timer Output Timing φTMCI0, TMCI1TMIX, TMIY, Ex

Página 521

Rev. 1.00, 05/04, page 534 of 544 SCK1, ExSCK1tSCKWtSCKrtSCKftScyc Figure 22.17 SCK Clock Input Timing TxD1, ExTxD1(transmit data)RxD1, ExRxD1(rece

Página 522

Rev. 1.00, 05/04, page 535 of 544 1. ReceptionφKCLK/KD*KCLK/KD*tKBIStKBIHTransmission (b)tKBF2. Transmission (a)φKCLK/KD*T1T2tKBODNote: φ shown h

Página 523 - 21.2 Register Bits

Rev. 1.00, 05/04, page 23 of 544 SP (ER7)Free areaStack area Figure 2.8 Stack 2.4.2 Program Counter (PC) This 24-bit counter indicates the address

Página 524

Rev. 1.00, 05/04, page 536 of 544 LCLKLAD3 to LAD0,SERIRQ, CLKRUN(Transmit signal)LAD3 to LAD0,SERIRQ, CLKRUNLFRAME(Receive signal)tTXDtRXHtRXStOFFL

Página 525

Rev. 1.00, 05/04, page 537 of 544 Appendix A. I/O Port States in Each Processing State Table A.1 I/O Port States in Each Processing State Port Name

Página 526

Rev. 1.00, 05/04, page 538 of 544 B. Product Codes Product Type Product Code Mark Code Package (Package Code) H8S/2111B-B HD64F2111BVB F2111BVTE10B

Página 527

Rev. 1.00, 05/04, page 539 of 544 C. Package Dimensions For package dimensions, dimensions described in Renesas Semiconductor Packages Data Book have

Página 528

Rev. 1.00, 05/04, page 540 of 544

Página 529

Rev. 1.00, 05/04, page 541 of 544 Index 16-bit count mode... 210 16-bit free-running timer (FRT) ... 157

Página 530

Rev. 1.00, 05/04, page 542 of 544 ICIX... 215 IICI ...

Página 531

Rev. 1.00, 05/04, page 543 of 544 ICXR...302, 482, 491, 499, 507 IDR ...380, 481, 490, 498, 506 IER...

Página 532

Rev. 1.00, 05/04, page 544 of 544 TCONRI ...203, 488, 496, 504, 512 TCONRS ...203, 488, 496, 504, 512 TCOR ...191

Página 533

Renesas 16-Bit Single-Chip MicrocomputerHardware ManualH8S/2111BPublication Date: Rev.1.00, May 14, 2004Published by: Sales St

Página 534

Rev. 1.00, 05/04, page 24 of 544 2.4.4 Condition-Code Register (CCR) This 8-bit register contains internal CPU status information, including an inte

Página 535

Colophon 1.0Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japanhttp://www.renesas.comRenesa

Página 537

H8S/2111BHardware Manual

Página 538

Rev. 1.00, 05/04, page 25 of 544 Bit Bit Name Initial Value R/W Description 0 C Undefined R/W Carry Flag Set to 1 when a carry occurs, and cleared t

Página 539

Rev. 1.00, 05/04, page vi of xxxiv Preface The H8S/2111B is a microcomputer (MCU) made up of the H8S/2000 CPU employing Renesas Technology's ori

Página 540

Rev. 1.00, 05/04, page 26 of 544 2.5 Data Formats The H8S/2000 CPU can process 1-bit, 4-bit BCD, 8-bit (byte), 16-bit (word), and 32-bit (longword) d

Página 541

Rev. 1.00, 05/04, page 27 of 544 15 0MSB LSB15 0MSB LSB31 16MSB15 0LSBEn RnERn: En: Rn:RnH:RnL:MSB: LSB : General register ERGeneral register EGenera

Página 542

Rev. 1.00, 05/04, page 28 of 544 2.5.2 Memory Data Formats Figure 2.10 shows the data formats in memory. The H8S/2000 CPU can access word data and l

Página 543

Rev. 1.00, 05/04, page 29 of 544 2.6 Instruction Set The H8S/2000 CPU has 65 types of instructions. The instructions are classified by function as sh

Página 544

Rev. 1.00, 05/04, page 30 of 544 2.6.1 Table of Instructions Classified by Function Tables 2.3 to 2.10 summarize the instructions in each functional

Página 545

Rev. 1.00, 05/04, page 31 of 544 Table 2.3 Data Transfer Instructions Instruction Size*1 Function MOV B/W/L (EAs) → Rd, Rs → (EAd) Moves data betwee

Página 546

Rev. 1.00, 05/04, page 32 of 544 Table 2.4 Arithmetic Operations Instructions (1) Instruction Size* Function ADD SUB B/W/L Rd ± Rs → Rd, Rd ± #IMM →

Página 547

Rev. 1.00, 05/04, page 33 of 544 Table 2.4 Arithmetic Operations Instructions (2) Instruction Size*1 Function DIVXS B/W Rd ÷ Rs → Rd Performs signe

Página 548 - 22.2 DC Characteristics

Rev. 1.00, 05/04, page 34 of 544 Table 2.5 Logic Operations Instructions Instruction Size* Function AND B/W/L Rd ∧ Rs → Rd, Rd ∧ #IMM → Rd Performs

Página 549

Rev. 1.00, 05/04, page 35 of 544 Table 2.7 Bit Manipulation Instructions (1) Instruction Size* Function BSET B 1 → (<bit-No.> of <EAd>)

Página 550

Rev. 1.00, 05/04, page vii of xxxiv Rules: Register name: The following notation is used for cases when the same or a similar function, e.g. serial

Página 551

Rev. 1.00, 05/04, page 36 of 544 Table 2.7 Bit Manipulation Instructions (2) Instruction Size* Function BXOR B C ⊕ (<bit-No.> of <EAd>)

Página 552 - Darlington pair

Rev. 1.00, 05/04, page 37 of 544 Table 2.8 Branch Instructions Instruction Size Function Branches to a specified address if a specified condition i

Página 553 - Ports 1 to 3

Rev. 1.00, 05/04, page 38 of 544 Table 2.9 System Control Instructions Instruction Size* Function TRAPA — Starts trap-instruction exception handlin

Página 554 - 22.3 AC Characteristics

Rev. 1.00, 05/04, page 39 of 544 2.6.2 Basic Instruction Formats The H8S/2000 CPU instructions consist of 2-byte (1-word) units. An instruction cons

Página 555

Rev. 1.00, 05/04, page 40 of 544 2.7 Addressing Modes and Effective Address Calculation The H8S/2000 CPU supports the eight addressing modes listed

Página 556

Rev. 1.00, 05/04, page 41 of 544 2.7.3 Register Indirect with Displacement—@(d:16, ERn) or @(d:32, ERn) A 16-bit or 32-bit displacement contained in

Página 557

Rev. 1.00, 05/04, page 42 of 544 2.7.6 Immediate—#xx:8, #xx:16, or #xx:32 The 8-bit (#xx:8), 16-bit (#xx:16), or 32-bit (#xx:32) immediate data cont

Página 558

Rev. 1.00, 05/04, page 43 of 544 2.7.8 Memory Indirect—@@aa:8 This mode can be used by the JMP and JSR instructions. The instruction code contains an

Página 559

Rev. 1.00, 05/04, page 44 of 544 2.7.9 Effective Address Calculation Table 2.13 indicates how effective addresses are calculated in each addressing m

Página 560 - — — ±7.5 LSB

Rev. 1.00, 05/04, page 45 of 544 Table 2.13 Effective Address Calculation (2) No5op3123310Don't careabs@aa:87H'FFFFop3123310Don't car

Página 561

Rev. 1.00, 05/04, page viii of xxxiv

Página 562

Rev. 1.00, 05/04, page 46 of 544 2.8 Processing States The H8S/2000 CPU has four main processing states: the reset state, exception handling state, p

Página 563 - 22.6 Usage Note

Rev. 1.00, 05/04, page 47 of 544 Program executionstateSleep modeException-handling stateSoftware standby modeRES = highReset state*1STBY = high, RES

Página 564 - (i = 0, 1, 2, 6, 7)

Rev. 1.00, 05/04, page 48 of 544 2.9 Usage Notes 2.9.1 Note on TAS Instruction Usage When using the TAS instruction, use registers ER0, ER1, ER4 and

Página 565

Rev. 1.00, 05/04, page 49 of 544 2.9.4 EEPMOV Instruction 1. EEPMOV is a block-transfer instruction and transfers the byte size of data indicated by

Página 566 - Ports 1 to 9, and A to G

Rev. 1.00, 05/04, page 50 of 544

Página 567 - TMIA, TMIB

Rev. 1.00, 05/04, page 51 of 544 Section 3 MCU Operating Modes 3.1 MCU Operating Mode Selection This LSI has two operating modes (modes 2 and 3).

Página 568 - (transmit data)

Rev. 1.00, 05/04, page 52 of 544 3.2 Register Descriptions The following registers are related to the operating mode. Mode control register (MDCR) Sy

Página 569 - Figure 22.22 I

Rev. 1.00, 05/04, page 53 of 544 3.2.2 System Control Register (SYSCR) SYSCR selects a system pin function, monitors a reset source, selects the int

Página 570 - (Transmit signal)

Rev. 1.00, 05/04, page 54 of 544 Bit Bit Name Initial Value R/W Description 1 HIE 0 R/W Host Interface Enable Controls CPU access to the keyboar

Página 571 - Appendix

Rev. 1.00, 05/04, page 55 of 544 3.2.3 Serial Timer Control Register (STCR) STCR enables or disables register access, IIC operating mode, and on-chip

Página 572 - B. Product Codes

Rev. 1.00, 05/04, page ix of xxxiv Contents Section 1 Overview...

Página 573 - C. Package Dimensions

Rev. 1.00, 05/04, page 56 of 544 Bit Bit NameInitial Value R/W Description 3 FLSHE 0 R/W Flash Memory Control Register Enable Enables or disable

Página 574

Rev. 1.00, 05/04, page 57 of 544 3.4 Address Map Figures 3.1 and 3.2 show the address map in each operating mode. Mode 2 (EXPE = 0)Advanced modeSingl

Página 575

Rev. 1.00, 05/04, page 58 of 544 Mode 2 (EXPE = 0)Advanced modeSingle-chip modeOn-chip ROMInternal I/Oregisters 2On-chip RAMInternal I/Oregisters 1On

Página 576

Rev. 1.00, 05/04, page 59 of 544 Section 4 Exception Handling 4.1 Exception Handling Types and Priority As table 4.1 indicates, exception handling

Página 577

Rev. 1.00, 05/04, page 60 of 544 4.2 Exception Sources and Exception Vector Table Different vector addresses are assigned to different exception sou

Página 578

Rev. 1.00, 05/04, page 61 of 544 4.3 Reset A reset has the highest exception priority. When the RES pin goes low, all processing halts and this LSI e

Página 579 - Hardware Manual

Rev. 1.00, 05/04, page 62 of 544 4.3.2 Interrupts after Reset If an interrupt is accepted after a reset and before the stack pointer (SP) is initial

Página 580 - RENESAS SALES OFFICES

Rev. 1.00, 05/04, page 63 of 544 4.4 Interrupt Exception Handling Interrupts are controlled by the interrupt controller. The sources to start interr

Página 581

Rev. 1.00, 05/04, page 64 of 544 4.6 Stack Status after Exception Handling Figure 4.2 shows the stack after completion of trap instruction exception

Página 582

Rev. 1.00, 05/04, page 65 of 544 4.7 Usage Note When accessing word data or longword data, this LSI assumes that the lowest address bit is 0. The sta

Modelos relacionados HD64F2111B

Comentários a estes Manuais

Sem comentários