R4F24568NVFQV Renesas Electronics America, R4F24568NVFQV Datasheet

MCU 128KKB FLASH 48K 144-LQFP

R4F24568NVFQV

Manufacturer Part Number
R4F24568NVFQV
Description
MCU 128KKB FLASH 48K 144-LQFP
Manufacturer
Renesas Electronics America
Series
H8® H8S/2400r
Datasheets

Specifications of R4F24568NVFQV

Core Processor
H8S/2600
Core Size
16/32-Bit
Speed
32MHz
Connectivity
EBI/EMI, I²C, IrDA, SCI, SSU, UART/USART, USB
Peripherals
DMA, POR, PWM, WDT
Number Of I /o
96
Program Memory Size
256KB (256K x 8)
Program Memory Type
FLASH
Ram Size
48K x 8
Voltage - Supply (vcc/vdd)
3 V ~ 3.6 V
Data Converters
A/D 16x10b; D/A 2x8b
Oscillator Type
External
Operating Temperature
-20°C ~ 75°C
Package / Case
144-LQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
R4F24568NVFQV
Manufacturer:
REA
Quantity:
15
Part Number:
R4F24568NVFQV
Manufacturer:
Renesas Electronics America
Quantity:
10 000
16
H8S/2456, H8S/2456R, H8S/2454 Group
Renesas 16-Bit Single-Chip Microcomputer
H8S Family / H8S/2400 Series
www.renesas.com
All information contained in these materials, including products and product
specifications, represents information on the product at the time of publication and is
subject to change by Renesas Electronics Corp. without notice. Please review the
latest information published by Renesas Electronics Corp. through various means,
including the Renesas Electronics Corp. website (http://www.renesas.com).
The revision list summarizes the locations of
revisions and additions. Details should always
be checked by referring to the relevant text.
User’s Manual: Hardware
H8S/2456
H8S/2456R
H8S/2454
Rev.3.50 Jul 2010
R4F2456
R4S2456
R4F2456R
R4S2456R
R4F2454
R4S2454

Related parts for R4F24568NVFQV

R4F24568NVFQV Summary of contents

Page 1

The revision list summarizes the locations of revisions and additions. Details should always be checked by referring to the relevant text. H8S/2456, H8S/2456R, H8S/2454 Group 16 Renesas 16-Bit Single-Chip Microcomputer H8S Family / H8S/2400 Series All information contained in these ...

Page 2

Page ii of xxx ...

Page 3

All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm ...

Page 4

General Precautions in the Handling of MPU/MCU Products The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed usage notes on the products covered by this manual, refer to the relevant sections of the manual. If ...

Page 5

Purpose and Target Readers This manual is designed to provide the user with an understanding of the hardware functions and electrical characteristics of the MCU intended for users designing application systems incorporating the MCU. A basic knowledge ...

Page 6

Description of Numbers and Symbols Aspects of the notations for register names, bit names, numbers, and symbolic names in this manual are explained below. (1) Overall notation In descriptions involving the names of bits and bit fields within this ...

Page 7

Description of Registers Each register description includes a bit chart, illustrating the arrangement of bits, and a table of bits, describing the meanings of the bit settings. The standard format and notation for bit charts and tables are described ...

Page 8

Description of Abbreviations The abbreviations used in this manual are listed below. • Abbreviations specific to this product Abbreviation Description BSC Bus controller CPG Clock pulse generator INT Interrupt controller SCI Serial communication interface TMR 8-bit timer TPU 16-bit ...

Page 9

Section 1 Overview................................................................................................1 1.1 Features.................................................................................................................................. 1 1.1.1 Applications.............................................................................................................. 1 1.1.2 Overview of Specifications....................................................................................... 1 1.2 List of Products...................................................................................................................... 9 1.3 Block Diagrams ................................................................................................................... 13 1.4 Pin Description .................................................................................................................... 15 1.4.1 Pin Assignments ..................................................................................................... 15 1.4.2 Pin Assignments in Each Operating ...

Page 10

Register Indirect with Displacement—@(d:16, ERn) or @(d:32, ERn)................. 75 2.7.4 Register Indirect with Post-Increment or Pre-Decrement—@ERn+ or @-ERn..... 75 2.7.5 Absolute Address—@aa:8/@aa:16/@aa:24/@aa:32.............................................. 75 2.7.6 Immediate—#xx:8/#xx:16/#xx:32.......................................................................... 76 2.7.7 Program-Counter Relative—@(d:8, PC) or @(d:16, PC) ...................................... 76 2.7.8 Memory Indirect—@@aa:8 ................................................................................... ...

Page 11

Section 5 Interrupt Controller ............................................................................109 5.1 Features.............................................................................................................................. 109 5.2 Input/Output Pins............................................................................................................... 111 5.3 Register Descriptions ......................................................................................................... 112 5.3.1 Interrupt Control Register (INTCR) ..................................................................... 113 5.3.2 Interrupt Priority Registers (IPRA to IPRN)............................................. 114 5.3.3 IRQ Enable Register (IER) ...

Page 12

Area 0 Burst ROM Interface Control Register (BROMCRH) Area 1 Burst ROM Interface Control Register (BROMCRL) .............................. 169 6.3.7 Bus Control Register (BCR) ................................................................................. 170 6.3.8 Address/Data Multiplexed I/O Control Register (MPXCR) ................................. 172 6.3.9 DRAM Control Register (DRAMCR) ...

Page 13

Byte Access Control ............................................................................................. 236 6.7.11 Burst Operation..................................................................................................... 238 6.7.12 Refresh Control..................................................................................................... 244 6.7.13 DMAC and EXDMAC Single Address Transfer Mode and DRAM Interface..... 252 6.8 Synchronous DRAM Interface........................................................................................... 255 6.8.1 Setting Continuous Synchronous DRAM Space................................................... 255 6.8.2 Address ...

Page 14

External Bus Release Function and CBR Refreshing/Auto Refreshing................ 318 6.15.4 BREQO Output Timing ........................................................................................ 319 6.15.5 Notes on Usage of the Synchronous DRAM ........................................................ 319 Section 7 DMA Controller (DMAC)................................................................. 321 7.1 Features.............................................................................................................................. 321 7.2 Input/Output Pins............................................................................................................... 323 7.3 ...

Page 15

Section 8 EXDMA Controller (EXDMAC) ......................................................407 8.1 Features.............................................................................................................................. 407 8.2 Input/Output Pins............................................................................................................... 409 8.3 Register Descriptions ......................................................................................................... 410 8.3.1 EXDMA Source Address Register (EDSAR)....................................................... 411 8.3.2 EXDMA Destination Address Register (EDDAR)............................................... 411 8.3.3 EXDMA Transfer Count Register (EDTCR)........................................................ 412 8.3.4 ...

Page 16

Operation ........................................................................................................................... 491 9.5.1 Normal Mode........................................................................................................ 494 9.5.2 Repeat Mode......................................................................................................... 495 9.5.3 Block Transfer Mode ............................................................................................ 496 9.5.4 Chain Transfer ...................................................................................................... 497 9.5.5 Interrupt Sources................................................................................................... 498 9.5.6 Operation Timing.................................................................................................. 498 9.5.7 Number of DTC Execution States ........................................................................ 499 9.6 ...

Page 17

Port 3 Open Drain Control Register (P3ODR) ..................................................... 565 10.3.5 Pin Functions ........................................................................................................ 566 10.4 Port 4.................................................................................................................................. 570 10.4.1 Port 4 Register (PORT4)....................................................................................... 570 10.4.2 Pin Functions ........................................................................................................ 570 10.5 Port 5.................................................................................................................................. 572 10.5.1 Port 5 Data Direction Register ...

Page 18

Pin Functions ........................................................................................................ 621 10.10.7 Port B Input Pull-Up MOS States......................................................................... 629 10.11 Port C ................................................................................................................................. 630 10.11.1 Port C Data Direction Register (PCDDR) ............................................................ 630 10.11.2 Port C Data Register (PCDR) ............................................................................... 631 10.11.3 Port C Register (PORTC) ...

Page 19

Port H Data Register (PHDR)............................................................................... 677 10.16.3 Port H Register (PORTH)..................................................................................... 677 10.16.4 Port H Open Drain Control Register (PHODR).................................................... 678 10.16.5 Pin Functions ........................................................................................................ 679 10.17 Port J .................................................................................................................................. 682 10.17.1 Port J Data Direction Register (PJDDR)............................................................... 682 ...

Page 20

Interrupt Sources................................................................................................................ 772 11.6 DTC Activation.................................................................................................................. 776 11.7 DMAC Activation.............................................................................................................. 776 11.8 A/D Converter Activation.................................................................................................. 776 11.9 Operation Timing............................................................................................................... 777 11.9.1 Input/Output Timing ............................................................................................. 777 11.9.2 Interrupt Signal Timing ........................................................................................ 782 11.10 Usage Notes ....................................................................................................................... 786 11.10.1 Module Stop ...

Page 21

Inverted Pulse Output ........................................................................................... 818 12.4.8 Pulse Output Triggered by Input Capture ............................................................. 819 12.5 Usage Notes ....................................................................................................................... 820 12.5.1 Module Stop Function Setting .............................................................................. 820 12.5.2 Operation of Pulse Output Pins............................................................................. 820 Section 13 8-Bit Timers (TMR).........................................................................821 13.1 ...

Page 22

Interrupts in Module Stop State ............................................................................ 846 Section 14 Watchdog Timer (WDT) ................................................................. 847 14.1 Features.............................................................................................................................. 847 14.2 Input/Output Pin ................................................................................................................ 848 14.3 Register Descriptions ......................................................................................................... 849 14.3.1 Timer Counter (TCNT)......................................................................................... 849 14.3.2 Timer Control/Status Register (TCSR)................................................................. 849 14.3.3 ...

Page 23

Clock..................................................................................................................... 897 15.4.4 SCI Initialization (Asynchronous Mode).............................................................. 898 15.4.5 Data Transmission (Asynchronous Mode) ........................................................... 899 15.4.6 Serial Data Reception (Asynchronous Mode) ...................................................... 901 15.5 Multiprocessor Communication Function.......................................................................... 905 15.5.1 Multiprocessor Serial Data Transmission ............................................................. 906 15.5.2 Multiprocessor Serial Data ...

Page 24

Section 16 USB Function Module (USB) .........................................................949 16.1 Features.............................................................................................................................. 949 16.2 Input/Output Pins............................................................................................................... 950 16.3 Register Descriptions ......................................................................................................... 951 16.3.1 Interrupt Flag Register 0 (IFR0) ........................................................................... 952 16.3.2 Interrupt Flag Register 1 (IFR1) ........................................................................... 954 16.3.3 Interrupt Flag Register 2 ...

Page 25

Cable Connection.................................................................................................. 989 16.5.3 Cable Disconnection ............................................................................................. 990 16.5.4 Suspend and Resume Operations.......................................................................... 991 16.5.5 Control Transfer.................................................................................................... 998 16.5.6 EP1 Bulk-Out Transfer ....................................................................................... 1004 16.5.7 EP2 Bulk-In Transfer.......................................................................................... 1005 16.5.8 EP3 Interrupt-In Transfer.................................................................................... 1007 16.6 Processing of USB Standard ...

Page 26

I C Bus Shift Register (ICDRS).......................................................................... 1036 17.4 Operation ......................................................................................................................... 1037 2 17.4 Bus Format.................................................................................................... 1037 17.4.2 Master Transmit Operation................................................................................. 1038 17.4.3 Master Receive Operation .................................................................................. 1040 17.4.4 Slave Transmit Operation ................................................................................... 1043 17.4.5 Slave Receive ...

Page 27

Section 19 D/A Converter................................................................................1091 19.1 Features............................................................................................................................ 1091 19.2 Input/Output Pins............................................................................................................. 1093 19.3 Register Descriptions ....................................................................................................... 1093 19.3.1 D/A Data Registers 2 and 3 (DADR2 and DADR3)........................................... 1093 19.3.2 D/A Control Register 23 (DACR23) .................................................................. 1094 19.4 Operation ......................................................................................................................... 1096 19.5 ...

Page 28

Section 22 Flash Memory................................................................................1143 22.1 Memory Map ................................................................................................................... 1145 22.2 Register Descriptions ....................................................................................................... 1146 22.2.1 Flash Memory Control Register 1 (FLMCR1).................................................... 1147 22.2.2 Flash Memory Data Block Protect Register (FLMDBPR) ................................. 1148 22.2.3 Flash Memory Status Register (FLMSTR)......................................................... 1149 22.3 ...

Page 29

Connecting a Crystal Resonator.......................................................................... 1204 23.2.2 External Clock Input........................................................................................... 1205 23.3 System-Clock PLL Circuit and Divider........................................................................... 1207 23.4 PLL Circuit for the USB Module..................................................................................... 1208 23.5 Usage Notes ..................................................................................................................... 1209 23.5.1 Notes on Clock Pulse Generator ......................................................................... 1209 23.5.2 ...

Page 30

Section 26 Electrical Characteristics ...............................................................1287 26.1 Electrical Characteristics for H8S/2456 Group and H8S/2456R Group ......................... 1287 26.1.1 Absolute Maximum Ratings ............................................................................... 1287 26.1.2 DC Characteristics .............................................................................................. 1288 26.1.3 AC Characteristics .............................................................................................. 1292 26.1.4 A/D Conversion Characteristics ......................................................................... 1300 26.1.5 D/A ...

Page 31

H8S/2456, H8S/2456R, H8S/2454 Group 1.1 Features The H8S/2456 Group, H8S/2454 Group, and H8S/2456R Group are CISC (Complex Instruction Set Computer) microprocessors that integrate an H8S/2600 CPU core which has an internal 16-bit architecture and is upward-compatible with Renesas-original H8/300, H8/300H, ...

Page 32

Section 1 Overview Table 1.1 Overview of Specifications Module/ Type Function Memory ROM RAM CPU CPU Operating mode Page 2 of 1392 Description • Flash memory version ⎯ User ROM: 256 Kbytes and 128 Kbytes ⎯ Data flash: 8 Kbytes ...

Page 33

H8S/2456, H8S/2456R, H8S/2454 Group Module/ Type Function CPU MCU operating mode Interrupts Interrupt (sources) controller REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 Description • Mode 1: Expanded mode with on-chip ROM disabled, 16-bit bus (MD2 and MD1 pins are low and ...

Page 34

Section 1 Overview Module/ Type Function DMA DMA controller (DMAC) EXDMA controller (EXDMAC) Data transfer controller (DTC) External Bus controller bus (BSC) extension Page 4 of 1392 Description • DMA transfer is possible on four channels • Three activation sources ...

Page 35

H8S/2456, H8S/2456R, H8S/2454 Group Module/ Type Function Clock Clock pulse generator (CPG) A/D A/D converter converter (ADC) D/A D/A converter converter (DAC) REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 Description • This LSI has a single on-chip clock pulse generator circuit ...

Page 36

Section 1 Overview Module/ Type Function Timer 16-bit timer pulse unit (TPU) 8-bit timer (TMR) • Programmable pulse generator (PPG) Watchdog Watchdog timer timer (WDT) Serial Serial interface communication interface (SCI) Page 6 of 1392 Description • 16-bit timer × ...

Page 37

H8S/2456, H8S/2456R, H8S/2454 Group Module/ Type Function Smart Card/SIM 2 High bus interface function 2 (IIC2) communi- cations Synchronous serial communication unit (SSU) USB function module I/O ports REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 Description SCI supports Smart ...

Page 38

Section 1 Overview Module/ Type Function Package Operating frequency/ power supply voltage Operating environment temperature (°C) Page 8 of 1392 Description H8S/2456 Group, H8S/2456R Group: • 144-pin QFP package (PLQP0144KA-A) (code: FP-144LV, body size: 20 × 20 mm, pin pitch: ...

Page 39

H8S/2456, H8S/2456R, H8S/2454 Group 1.2 List of Products Table 1.2 lists the products and figure 1.1 shows how to read the product type name. Table 1.2 Product Code Lineup Product Type Type Code H8S/2456R R4F24569NVRFQV Group R4F24568NVRFQV R4F24565NVRFQV R4S24562NVRFQV R4S24561NVRFQV ...

Page 40

... Section 1 Overview Product Type Type Code H8S/2456 R4F24569NVFQV Group R4F24568NVFQV R4F24565NVFQV R4S24562NVFQV R4S24561NVFQV R4F24569DVFQV R4F24568NVFQV R4F24565NVFQV R4S24562NVFQV R4S24561NVFQV R4F24569NVLPV R4F24568NVLPV R4F24565NVLPV R4S24562NVLPV R4S24561NVLPV R4F24569DVLPV R4F24568DVLPV R4F24565DVLPV R4S24562DVLPV R4S24561DVLPV Page 10 of 1392 Flash RAM Operating Memory Size Size Voltage 256 Kbytes 64 Kbytes 3.0 to 3.6 V 256 Kbytes 48 Kbytes 3 ...

Page 41

H8S/2456, H8S/2456R, H8S/2454 Group Product Type Type Code H8S/2454 R4F24549NVFPV Group R4F24548NVFPV R4F24545NVFPV R4S24542NVFPV R4S24541NVFPV R4F24549DVFPV R4F24548NVFPV R4F24545NVFPV R4S24542NVFPV R4S24541NVFPV R4F24549NVFAU R4F24548NVFAU R4F24545NVFAU R4S24542NVLFAU R4S24541NVFAU R4F24549DVFAU R4F24548DVFAU R4F24545DVFAU R4S24542DVFAU R4S24541DVFAU REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 Flash RAM Operating Memory ...

Page 42

Section 1 Overview Product type name 2456 Figure 1.1 Meaning of Product Type Name Page 12 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group Indicates treatment of outer leads V: Sn-2Bi U: Sn ...

Page 43

H8S/2456, H8S/2456R, H8S/2454 Group 1.3 Block Diagrams MD2 MD1 MD0 EXTAL XTAL EMLE STBY RES WDTOVF NMI USD+ USD- PF7/φ PF6/AS/AH PF5/RD PF4/HWR PF3/LWR /SSO0-C * PF2/LCAS/DQML /IRQ15-A /SSI0-C * PF1/UCAS/DQMU /IRQ14-A /SSCK0-C PF0/WAIT-A /ADTRG0-B/SCS0-C PG6/BREQ-A PG5/BACK-A PG4/BREQO-A PG3/CS3/RAS3/CAS * ...

Page 44

Section 1 Overview MD2 MD1 MD0 EXTAL XTAL EMLE STBY RES WDTOVF NMI USD+ USD- PF7/φ PF6/AS/AH PF5/RD PF4/HWR PF3/LWR/SSO0-C PF2/CS6/LCAS/SSI0-C PF1/CS5/UCAS/SSCK0-C PF0/WAIT-A/OE-A /ADTRG0-B /SCS0-C PG6/BREQ-A PG5/BACK-A PG4/BREQO-A/CS4 PG3/CS3/RAS3 PG2/CS2/RAS2 PG1/CS1 PG0/CS0 P85/PO5-B/TIOCB4-B/TMO1-B/SCK3 P83/PO3-B/TIOCD3-B/TMCI1-B/RxD3 P81/PO1-B/TIOCB3-B/TMRI1-B/TxD3 Figure 1.3 Block Diagram of ...

Page 45

H8S/2456, H8S/2456R, H8S/2454 Group 1.4 Pin Description 1.4.1 Pin Assignments 1 PG2/CS2/RAS2/RAS * 1 PG3/CS3/RAS3/CAS * AVcc Vref P40/AN0_0 P41/AN1_0 P42/AN2_0 P43/AN3_0 P44/AN4_0 P45/AN5_0 P46/AN6_0 P47/AN7_0 P90/AN8_1 P91/AN9_1 P92/AN10_1 P93/AN11_1 P94/AN12_1/DA2 P95/AN13_1/DA3 P96/AN14_1 P97/AN15_1 AVss PG4/BREQO-A/ETCK * 4 PG5/BACK-A/ETMS * ...

Page 46

Section 1 Overview Vss MD1 MD0 B MD2 Vcc P31 C PC0 P80 PC1 D PC4 PC2 PC3 E PC7 Vss PC5 F PB3 PC6 PB1 G PB6 PB2 PA0 H Vss PB7 PA3 J PA5 ...

Page 47

H8S/2456, H8S/2456R, H8S/2454 Group PG2/CS2/RAS2 PG3/CS3/RAS3 AV Vref P40/IRQ0-B/AN0_0 P41/IRQ1-B/AN1_0 P42/IRQ2-B/AN2_0 P43/IRQ3-B/AN3_0 P44/IRQ4-B/AN4_0 P45/IRQ5-B/AN5_0 P46/IRQ6-B/AN6_0 P47/IRQ7-B/AN7_0 P94/AN12_1/DA2 P95/AN13_1/DA3 AV PG4/BREQO-A/CS4/ETCK * PG5/BACK-A/ETMS * PG6/BREQ-A/ETDI * P50/BREQO-B/IRQ0-A/PO0-B/TIOCA3-B/TMRI0-B/TxD2/SDA3 P51/BREQ-B/IRQ1-A/PO2-B/TIOCC3-B/TMCI0-B/RxD2/SCL3 P52/BACK-B/IRQ2-A/PO4-B/TIOCA4-B/TMO0-B/SCK2 P53/IRQ3-A/ADTRG0-A/ETRST * P35/OE-B/SCK1/SCL0 P34/SCK0/SCK4-A/SDA0 P33/RxD1/SCL1 P32/RxD0/IrRxD/SDA1 P31/TxD1 P30/TxD0/IrTxD MD0 MD1 Notes: 1. ...

Page 48

Section 1 Overview 1.4.2 Pin Assignments in Each Operating Mode Table 1.3 Pin Assignments in Each Operating Mode of H8S/2456 Group and H8S/2456R Group Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 1 MD2 B1 2 Vss A1 3 P80/IRQ0-B/ C2 EDREQ2 ...

Page 49

H8S/2456, H8S/2456R, H8S/2454 Group Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 20 A13 H4 21 A14 G1 22 A15 H2 23 A16 G3 24 A17 J4 25 Vss H1 26 A18 J2 27 A19 H3 28 A20/IRQ4 PA5/A21/ J1 ...

Page 50

Section 1 Overview Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 36 PH1/CS5/ M1 RAS5/ SDRAMφ* 37 PH2/CS6/ N2 IRQ6-B 38 PH3/CS7/ M2 OE-A/ CKE-A*/ IRQ7-B WDTOVF 39 M3 NMI VCL L3 42 P10/PO8/ N3 TIOCA0 43 P11/PO9/ M4 ...

Page 51

H8S/2456, H8S/2456R, H8S/2454 Group Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 51 P20/IRQ8-B/ L6 PO0-A/ TIOCA3 P21/IRQ9-B/ PO1-A/ TIOCB3 P22/ IRQ10-B/ PO2-A/ TIOCC3 P23/ IRQ11-B/ PO3-A/ TIOCD3-A/ TxD4 P24/ IRQ12-B/ PO4-A/ TIOCA4-A/ RxD4-A ...

Page 52

Section 1 Overview Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 60 P84/IRQ4-B/ N8 EDACK2 61 P85/IRQ5-B/ M8 PO5-B/ TIOCB4-B/ TMO1-B/ SCK3/ EDACK3 62 PJ2 L9 63 PE0/D0/AD0 K9 64 PE1/D1/AD1 N9 65 PE2/D2/AD2 M9 66 PE3/D3/AD3 L10 67 PE4/D4/AD4 K10 68 ...

Page 53

H8S/2456, H8S/2456R, H8S/2454 Group Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 83 P62/ J10 IRQ10-A/ TEND0/ TMCI0-A 84 PF0/WAIT-A/ J11 ADTRG0-B/ SCS0-C 85 PF1/UCAS/ H12 DQMU* IRQ14-A/ SSCK0-C 86 PF2/LCAS/ H10 DQML* IRQ15-A/ SSI0-C 87 PF3/LWR/ J13 SSO0-C HWR 88 H11 ...

Page 54

Section 1 Overview Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 105 P64/ D12 IRQ12-A/ DACK0/ TMO0-A 106 P65/ C13 IRQ13-A/ DACK1/ TMO1-A 107 C12 PG0/CS0 108 B13 PG1/CS1 109 PG2/CS2/ A12 RAS2/RAS* 110 PG3/CS3/ A13 RAS3/CAS* 111 B11 AVcc 112 B12 ...

Page 55

H8S/2456, H8S/2456R, H8S/2454 Group Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 128 P97/AN15_1 D6 129 AVss A7 130 PG4/ B6 BREQO-A 131 PG5/ C7 BACK-A 132 PG6/BREQ-A PG6/BREQ-A PG6/BREQ-A PG6/BREQ-A PG6 D5 133 P50/ A6 BREQO-B/ IRQ0-A/ PO0-B/ TIOCA3-B/ TMRI0-B/ TxD2/ ...

Page 56

Section 1 Overview Pin No. PLQP0144KA-A PTLG0145JB-A Mode 1 141 P31/TxD1 B3 142 P30/TxD0/ C4 IrTxD 143 MD0 A3 144 MD1 A2 ⎯ Note: Not supported in the H8S/2456 Group. Page 26 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group ...

Page 57

H8S/2456, H8S/2456R, H8S/2454 Group Table 1.4 Pin Assignments in Each Operating Mode of H8S/2454 Group Pin No. PLQP0120LA-A, PLQP0120KA-A Mode 1 1 MD2 2 Vcc Vss ...

Page 58

Section 1 Overview Pin No. PLQP0120LA-A, PLQP0120KA-A Mode 1 26 A20/IRQ4-A 27 PA5/A21/ IRQ5-A/ SSCK0-B 28 PA6/A22/ IRQ6-A/SSI0-B 29 PA7/A23/CS7/ IRQ7-A/SSO0-B 30 EMLE WDTOVF 31 NMI 32 33 VCL 34 P10/DREQ0/ PO8/TIOCA0 35 P11/DREQ1/ PO9/TIOCB0 36 P12/TEND0/ PO10/TIOCC0/ TCLKA 37 ...

Page 59

H8S/2456, H8S/2456R, H8S/2454 Group Pin No. PLQP0120LA-A, PLQP0120KA-A Mode 1 42 P20/PO0-A/ TIOCA3-A/ TMRI0-A/ PUPD+ 43 DrVcc 44 USD+ 45 USD- 46 DrVss 47 P25/WAIT-B/ PO5-A/ TIOCB4-A/ TMO1-A/VBUS 48 P26/PO6/ TIOCA5/SDA2/ ADTRG1 49 P27/PO7/ TIOCB5/SCL2 50 P85/PO5-B/ TIOCB4-B/ TMO1-B/SCK3 51 ...

Page 60

Section 1 Overview Pin No. PLQP0120LA-A, PLQP0120KA-A Mode 1 66 D13/AD13 67 D14/AD14 68 D15/AD15 69 PF0/WAIT-A/ OE-A/ ADTRG0-B/ SCS0-C 70 PF1/CS5/UCAS/ SSCK0-C 71 PF2/CS6/ LCAS/SSI0-C 72 PF3/LWR/ SSO0-C HWR PF6/AS/AH 76 PLLVcc RES 77 78 ...

Page 61

H8S/2456, H8S/2456R, H8S/2454 Group Pin No. PLQP0120LA-A, PLQP0120KA-A Mode 1 91 PG2/CS2/RAS2 PG2/CS2/RAS2 PG2/CS2/RAS2 PG2/CS2/RAS2 92 PG3/CS3/RAS3 PG3/CS3/RAS3 PG3/CS3/RAS3 PG3/CS3/RAS3 93 AVcc 94 Vref 95 P40/IRQ0-B/ AN0_0 96 P41/IRQ1-B/ AN1_0 97 P42/IRQ2-B/ AN2_0 98 P43/IRQ3-B/ AN3_0 99 P44/IRQ4-B/ AN4_0 100 ...

Page 62

Section 1 Overview Pin No. PLQP0120LA-A, PLQP0120KA-A Mode 1 110 P51/BREQ-B/ IRQ1-A/PO2-B/ TIOCC3-B/ TMCI0-B/ RxD2/SCL3 111 P52/BACK-B/ IRQ2-A/PO4-B/ TIOCA4-B/ TMO0-B/SCK2 112 P53/IRQ3-A/ ADTRG0-A 113 P35/OE-B/ SCK1/SCL0 114 P34/SCK0/ SCK4-A/SDA0 115 P33/RxD1/SCL1 P33/RxD1/SCL1 P33/RxD1/SCL1 P33/RxD1/SCL1 P33/RxD1/SCL1 NC 116 P32/RxD0/ IrRxD/SDA1 117 ...

Page 63

H8S/2456, H8S/2456R, H8S/2454 Group 1.4.3 Pin Functions Table 1.5 Pin Functions H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A Power V 4, 72, 98, CC supply 10, 18, SS 25, 50, 70, 95, 102 PLLV 91 CC PLLV 93 ...

Page 64

Section 1 Overview H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A Clock XTAL 96 EXTAL 97 φ 94 SDRAMφ Operating MD2 1 mode MD1 144 control MD0 143 RES System 92 control STBY 103 EMLE 32 Page 34 of ...

Page 65

H8S/2456, H8S/2456R, H8S/2454 Group H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A Address A23 26, bus Data bus D15 73, 71 Address/ ...

Page 66

Section 1 Overview H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A BREQO-A Bus 130 control BREQO-B 133 BACK-A 131 BACK-B 135 UCAS 85 LCAS 86 DQMU * 1 85 DQML * 1 86 RAS2 109 RAS3 110 RAS4 * 2 35 RAS5 ...

Page 67

H8S/2456, H8S/2456R, H8S/2454 Group H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A WAIT-A Bus 84 control WAIT-B 56 OE-A 38 OE-B 137 1 CKE- CKE-B* 137 NMI Interrupts 40 IRQ15-A 86, 85, to 106 to 104, IRQ8- ...

Page 68

Section 1 Overview H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A EDRAK3 EXDMA 49 controller EDRAK2 48 (EXDMAC 16-bit timer TCLKH 22 pulse TCLKG 20 unit (TPU) TCLKF 17 TCLKE 16 TCLKD 49 TCLKC 47 TCLKB 45 TCLKA 44 TIOCA0 ...

Page 69

H8S/2456, H8S/2456R, H8S/2454 Group H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A 16-bit timer TIOCB4-A 56 pulse TIOCA4-B 135 unit (TPU) TIOCB4-B 61 TIOCA5 57 TIOCB5 58 TIOCA6 14 TIOCB6 15 TIOCC6 16 TIOCD6 17 TIOCA7 19 TIOCB7 20 TIOCA8 21 TIOCB8 ...

Page 70

Section 1 Overview H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A Program- PO15 mable PO8 pulse PO7 58 generator PO6 57 (PPG) PO5-A 56 PO0-A 51 PO5-B 61 PO4-B 135 PO3-B 59 PO2-B 134 PO1-B 33 PO0-B 133 ...

Page 71

H8S/2456, H8S/2456R, H8S/2454 Group H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A Serial TxD4-B 24 communi- TxD3 33 cation TxD2 133 interface (SCI)/ TxD1 141 Smart Card TxD0/ 142 interface IrTxD (SCI_0 with IrDA RxD4-B 26 function) RxD3 59 RxD2 134 RxD1 ...

Page 72

Section 1 Overview H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A Synchro- SSO0-A 46 nous serial SSO0-B 31 communi- SSO0-C 87 cation unit (SSU) SSI0-A 47 SSI0-B 30 SSI0-C 86 SSCK0-A 48 SSCK0-B 29 SSCK0-C 85 SCS0-A 49 SCS0-B 28 SCS0-C 84 ...

Page 73

H8S/2456, H8S/2456R, H8S/2454 Group H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A A/D AV 111 CC converter, D/A converter AV 129 SS Vref 112 I/O ports P17 P10 P27 to P25 P20 51 P35 to ...

Page 74

Section 1 Overview H8S/2456, H8S/2456R Type Symbol PLQP0144KA-A PTLG0145JB-A 2 I/O ports P97* , 128 , 127 2 P96* P95, P94, 126, 125 P93 to 124 to 121 2 P90* PA7 26, PA0 24, 23 PB7 to ...

Page 75

H8S/2456, H8S/2456R, H8S/2454 Group The H8S/2600 CPU is a high-speed central processing unit with an internal 32-bit architecture that is upward-compatible with the H8/300 and H8/300H CPUs. The H8S/2600 CPU has sixteen 16-bit general registers, can address a 16-Mbyte linear ...

Page 76

Section 2 CPU • High-speed operation All frequently-used instructions execute in one or two states 8/16/32-bit register-register add/subtract: 1 state 8 × 8-bit register-register multiply: 2 states 16 ÷ 8-bit register-register divide: 12 states 16 × 16-bit register-register multiply: 3 ...

Page 77

H8S/2456, H8S/2456R, H8S/2454 Group Instruction Mnemonic MULXU MULXU.B Rs, Rd MULXU.W Rs, ERd MULXS MULXS.B Rs, Rd MULXS.W Rs, ERd CLRMAC CLRMAC LDMAC LDMAC ERs, MACH LDMAC ERs, MACL STMAC STMAC MACH, ERd STMAC MACL, ERd Note: * The number ...

Page 78

Section 2 CPU • Higher speed Basic instructions execute twice as fast. Note: Normal mode is not available in this LSI. 2.1.3 Differences from H8/300H CPU In comparison to the H8/300H CPU, the H8S/2600 CPU has the following enhancements. • ...

Page 79

H8S/2456, H8S/2456R, H8S/2454 Group 2.2 CPU Operating Modes The H8S/2600 CPU has two operating modes: normal and advanced. Normal mode supports a maximum 64-Kbyte address space. Advanced mode supports a maximum 16-Mbyte total address space. The mode is selected by ...

Page 80

Section 2 CPU H'0000 H'0001 H'0002 H'0003 H'0004 H'0005 H'0006 H'0007 H'0008 H'0009 H'000A H'000B Figure 2.1 Exception Vector Table (Normal Mode) SP (16 bits) (a) Subroutine Branch Notes: 1. When EXR is not used not stored on ...

Page 81

H8S/2456, H8S/2456R, H8S/2454 Group 2.2.2 Advanced Mode • Address Space Linear access is provided to a 16-Mbyte maximum address space. • Extended Registers (En) The extended registers (E0 to E7) can be used as 16-bit registers the upper ...

Page 82

Section 2 CPU The memory indirect addressing mode (@@aa:8) employed in the JMP and JSR instructions uses an 8-bit absolute address included in the instruction code to specify a memory operand that contains a branch address. In advanced mode the ...

Page 83

H8S/2456, H8S/2456R, H8S/2454 Group 2.3 Address Space Figure 2.5 shows a memory map of the H8S/2600 CPU. The H8S/2600 CPU provides linear access to a maximum 64-Kbyte address space in normal mode, and a maximum 16-Mbyte (architecturally 4-Gbyte) address space ...

Page 84

Section 2 CPU 2.4 Registers The H8S/2600 CPU has the internal registers shown in figure 2.6. There are two types of registers: general registers and control registers. Control registers are a 24-bit program counter (PC bit extended register ...

Page 85

H8S/2456, H8S/2456R, H8S/2454 Group 2.4.1 General Registers The H8S/2600 CPU has eight 32-bit general registers. These general registers are all functionally alike and can be used as both address registers and data registers. When a general register is used as ...

Page 86

Section 2 CPU SP (ER7) 2.4.2 Program Counter (PC) This 24-bit counter indicates the address of the next instruction the CPU will execute. The length of all CPU instructions is 2 bytes (one word), so the least significant PC bit ...

Page 87

H8S/2456, H8S/2456R, H8S/2454 Group 2.4.4 Condition-Code Register (CCR) This 8-bit register contains internal CPU status information, including an interrupt mask bit (I) and half-carry (H), negative (N), zero (Z), overflow (V), and carry (C) flags. Operations can be performed on ...

Page 88

Section 2 CPU Bit Bit Name Initial Value 2 Z Undefined 1 V Undefined 0 C Undefined 2.4.5 Multiply-Accumulate Register (MAC) This 64-bit register stores the results of multiply-and-accumulate operations. It consists of two 32- bit registers denoted MACH and ...

Page 89

H8S/2456, H8S/2456R, H8S/2454 Group 2.5 Data Formats The H8S/2600 CPU can process 1-bit, 4-bit (BCD), 8-bit (byte), 16-bit (word), and 32-bit (longword) data. Bit-manipulation instructions operate on 1-bit data by accessing bit …, 7) ...

Page 90

Section 2 CPU Data Type Register Number Word data Rn Word data En 15 MSB Longword data ERn 31 MSB Legend: ERn : General register General register General register R RnH : General register ...

Page 91

H8S/2456, H8S/2456R, H8S/2454 Group 2.5.2 Memory Data Formats Figure 2.10 shows the data formats in memory. The H8S/2600 CPU can access word data and longword data in memory, but word or longword data must begin at an even address. If ...

Page 92

Section 2 CPU 2.6 Instruction Set The H8S/2600 CPU has 69 types of instructions. The instructions are classified by function in table 2.1. Table 2.1 Instruction Classification Function Instructions Data transfer MOV POP * , PUSH * 1 LDM, STM ...

Page 93

H8S/2456, H8S/2456R, H8S/2454 Group 2. Bcc is the general name for conditional branch instructions. 3. Cannot be used in this LSI. 4. Only register ER0, ER1, ER4, or ER5 should be used when using the TAS instruction. 2.6.1 Table of ...

Page 94

Section 2 CPU Symbol Description → Move ∼ NOT (logical complement) :8/:16/:24/:32 8-, 16-, 24-, or 32-bit length Note: * General registers include 8-bit registers (R0H to R7H, R0L to R7L), 16-bit registers ( E7), and ...

Page 95

H8S/2456, H8S/2456R, H8S/2454 Group Table 2.4 Arithmetic Operations Instructions (1) Size * Instruction Function Rd ± Rs → Rd, Rd ± #IMM → Rd ADD B/W/L Performs addition or subtraction on data in two general registers SUB immediate ...

Page 96

Section 2 CPU Table 2.4 Arithmetic Operations Instructions (2) Size * 1 Instruction Function Rd ÷ Rs → Rd DIVXS B/W Performs signed division on data in two general registers: either 16 bits ÷ 8 bits → 8-bit quotient and ...

Page 97

H8S/2456, H8S/2456R, H8S/2454 Group Table 2.5 Logic Operations Instructions Size * Instruction Function Rd ∧ Rs → Rd, Rd ∧ #IMM → Rd AND B/W/L Performs a logical AND operation on a general register and another general register or immediate ...

Page 98

Section 2 CPU Table 2.7 Bit Manipulation Instructions (1) Size * Instruction Function 1 → (<bit-No.> of <EAd>) BSET B Sets a specified bit in a general register or memory operand to 1. The bit number is specified by 3-bit ...

Page 99

H8S/2456, H8S/2456R, H8S/2454 Group Table 2.7 Bit Manipulation Instructions (2) Size * Instruction Function C ⊕ (<bit-No.> of <EAd>) → C BXOR B Exclusive-ORs the carry flag with a specified bit in a general register or memory operand and stores ...

Page 100

Section 2 CPU Table 2.8 Branch Instructions Instruction Size Function ⎯ Bcc Branches to a specified address if a specified condition is true. The branching conditions are listed below. Mnemonic BRA (BT) BRN (BF) BHI BLS BCC (BHS) BCS (BLO) ...

Page 101

H8S/2456, H8S/2456R, H8S/2454 Group Table 2.9 System Control Instructions Size * Instruction Function ⎯ TRAPA Starts trap-instruction exception handling. ⎯ RTE Returns from an exception-handling routine. ⎯ SLEEP Causes a transition to a power-down state. (EAs) → CCR, (EAs) → ...

Page 102

Section 2 CPU Table 2.10 Block Data Transfer Instructions Instruction Size Function ⎯ if R4L ≠ 0 then EEPMOV.B else next; ⎯ ≠ 0 then EEPMOV.W else next; Transfers a data block. Starting from the address set in ...

Page 103

H8S/2456, H8S/2456R, H8S/2454 Group (1) Operation field only (2) Operation field and register fields op (3) Operation field, register fields, and effective address extension op (4) Operation field, effective address extension, and condition field op Figure 2.11 Instruction Formats (Examples) ...

Page 104

Section 2 CPU 2.7 Addressing Modes and Effective Address Calculation The H8S/2600 CPU supports the eight addressing modes listed in table 2.11. The usable address modes are different in each instruction. Arithmetic and logic instructions can use the register direct ...

Page 105

H8S/2456, H8S/2456R, H8S/2454 Group 2.7.3 Register Indirect with Displacement—@(d:16, ERn) or @(d:32, ERn) A 16-bit or 32-bit displacement contained in the instruction is added to an address register (ERn) specified by the register field of the instruction code, and the ...

Page 106

Section 2 CPU Table 2.12 Absolute Address Access Ranges Absolute Address Data address 8 bits (@aa:8) 16 bits (@aa:16) 32 bits (@aa:32) Program instruction 24 bits (@aa:24) address Note: * Not available in this LSI. 2.7.6 Immediate—#xx:8/#xx:16/#xx:32 The instruction code ...

Page 107

H8S/2456, H8S/2456R, H8S/2454 Group 2.7.8 Memory Indirect—@@aa:8 This mode can be used by the JMP and JSR instructions. The instruction code contains an 8-bit absolute address specifying a memory operand. This memory operand contains a branch address. The upper bits ...

Page 108

Section 2 CPU 2.7.9 Effective Address Calculation Table 2.13 indicates how effective addresses are calculated in each addressing mode. In normal mode the upper 8 bits of the effective address are ignored in order to generate a 16-bit address. Note: ...

Page 109

H8S/2456, H8S/2456R, H8S/2454 Group Table 2.13 Effective Address Calculation (2) Addressing Mode and Instruction Format Absolute address Immediate Note: * Normal mode is not available in this LSI. REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 Effective Address Calculation PC contents Sign ...

Page 110

Section 2 CPU 2.8 Processing States The H8S/2600 CPU has five main processing states: the reset state, exception handling state, program execution state, bus-released state, and program stop state. Figure 2.13 indicates the state transitions. • Reset State The CPU ...

Page 111

H8S/2456, H8S/2456R, H8S/2454 Group Bus-released state Exception handling state RES = High Reset state * 1 Reset state Notes: 1. From any state except hardware standby mode, a transition to the reset state occurs whenever the RES pin goes low. ...

Page 112

Section 2 CPU 2.9 Usage Note 2.9.1 Usage Notes on Bit-wise Operation Instructions The BSET, BCLR, BNOT, BST, and BIST instructions are used to read data in byte-wise, operate the data in bit-wise, and write the result of the bit-wise ...

Page 113

H8S/2456, H8S/2456R, H8S/2454 Group Section 3 MCU Operating Modes 3.1 Operating Mode Selection The H8S/2456 Group, H8S/2454 Group, and H8S/2456R Group have five operating modes (modes and 7). The operating mode is selected by the setting of ...

Page 114

Section 3 MCU Operating Modes 3.2 Register Descriptions The following registers are related to operating mode setting. • Mode control register (MDCR) • System control register (SYSCR) 3.2.1 Mode Control Register (MDCR) MDCR monitors the current operating mode of this ...

Page 115

H8S/2456, H8S/2456R, H8S/2454 Group 3.2.2 System Control Register (SYSCR) SYSCR selects saturation operation for the MAC instruction, controls CPU access to the flash memory control registers, sets the external bus mode, and enables or disables on-chip RAM. Bit Bit Name ...

Page 116

Section 3 MCU Operating Modes Bit Bit Name Initial Value ⎯ 1 EXPE 0 RAME 1 Page 86 of 1392 R/W Descriptions R/W External Bus Mode Enable Sets the external bus mode. In modes 1, 2, and 4, this bit ...

Page 117

H8S/2456, H8S/2456R, H8S/2454 Group 3.3 Operating Mode Descriptions 3.3.1 Mode 1 The CPU can access a 16-Mbyte address space in advanced mode. The on-chip ROM is disabled. Ports function as an address bus, ports D and E ...

Page 118

Section 3 MCU Operating Modes 3.3.4 Mode 4 The CPU can access a 16-Mbyte address space in advanced mode. The on-chip ROM is enabled. The program in the on-chip ROM connected to the first half of area 0 is executed. ...

Page 119

H8S/2456, H8S/2456R, H8S/2454 Group 3.3.6 Pin Functions Table 3.2 shows the pin functions in each operating mode. Table 3.2 Pin Functions in Each Operating Mode Port Port A PA7 to PA5 PA4 to PA0 Port B Port C Port D ...

Page 120

Section 3 MCU Operating Modes 3.4 Memory Map in Each Operating Mode Figures 3.1 to 3.5 show memory maps in each operating mode. Page 90 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 ...

Page 121

H8S/2456, H8S/2456R, H8S/2454 Group RAM: 64 Kbytes/48 Kbytes Modes 1 and 2 (Expanded mode with on-chip ROM disabled) H'000000 External address space H'FE8000 Reserved area * H'FEC000 On-chip RAM/External address space/ Reserved area * H'FF0000 O n-chip RAM/External address space* ...

Page 122

Section 3 MCU Operating Modes ROM: 256 Kbytes RAM: 64 Kbytes / 48 Kbytes Mode 4 (Expanded mode with on-chip ROM enabled) H'000000 On-chip ROM H'040000 Reserved area * H'080000 External address space H'F00000 Data flash area 8 Kbytes H'F02000 ...

Page 123

H8S/2456, H8S/2456R, H8S/2454 Group RAM: 48 Kbytes Modes 1 and 2 (Expanded mode with on-chip ROM disabled) H'000000 External address H'FE8000 Reserved area * H'FF0000 On-chip RAM/ External address space * H'FFC000 Reserved area * H'FFD000 External address space H'FFFA00 ...

Page 124

Section 3 MCU Operating Modes ROM: 128 Kbytes RAM: 48 Kbytes Mode 4 (Expanded mode with on-chip ROM enabled) H'000000 On-chip ROM H'020000 Reserved area* H'080000 External address space H'F00000 Data flash area 8 Kbytes H'F02000 External address space H'FE8000 ...

Page 125

H8S/2456, H8S/2456R, H8S/2454 Group H'000000 H'FE8000 H'FEC000 H'FF0000 H'FFC000 H'FFD000 H'FFFA00 H'FFFF00 H'FFFF20 H'FFFFFF Notes: 1. This area is specified as the external address space by clearing the RAME bit in SYSCR reserved area should not ...

Page 126

Section 3 MCU Operating Modes Page 96 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 ...

Page 127

H8S/2456, H8S/2456R, H8S/2454 Group Section 4 Exception Handling 4.1 Exception Handling Types and Priority As table 4.1 indicates, exception handling may be caused by a reset, trace, interrupt, illegal instruction, or trap instruction. Exception handling is prioritized as shown in ...

Page 128

Section 4 Exception Handling 4.2 Exception Sources and Exception Vector Table Different vector addresses are assigned to different exception sources. Table 4.2 lists the exception sources and their vector addresses. Since the usable modes differ depending on the product, for ...

Page 129

H8S/2456, H8S/2456R, H8S/2454 Group Exception Source External interrupt IRQ7 IRQ8 * 5 IRQ9 * 5 IRQ10 * IRQ11 * IRQ12 * IRQ13 * External interrupt IRQ14 * IRQ15 * Internal interrupt * 4 Notes: 1. Lower 16 bits of the ...

Page 130

Section 4 Exception Handling 4.3 Reset A reset has the highest exception priority. When the RES pin goes low, all processing halts and this LSI enters the reset. To ensure that this LSI is reset, hold the RES pin low ...

Page 131

H8S/2456, H8S/2456R, H8S/2454 Group φ RES Internal address bus Internal read signal Internal write signal Internal data bus (1)(3) Reset exception handling vector address (when reset, (1)=H'000000, (3)=H'000002) (2)(4) Start address (contents of reset exception handling vector address) (5) Start ...

Page 132

Section 4 Exception Handling φ RES Address bus RD HWR, LWR D15 to D0 (1)(3) Reset exception handling vector address (when reset, (1)=H'000000, (3)=H'000002) (2)(4) Start address (contents of reset exception handling vector address) (5) Start address ((5)=(2)(4)) (6) First ...

Page 133

H8S/2456, H8S/2456R, H8S/2454 Group 4.4 Trace Exception Handling Traces are enabled in interrupt control mode 2. Trace mode is not activated in interrupt control mode 0, irrespective of the state of the T bit. For details on interrupt control modes, ...

Page 134

Section 4 Exception Handling 4.5 Interrupt Exception Handling Interrupts are controlled by the interrupt controller. The interrupt controller has two interrupt control modes and can assign interrupts other than NMI to eight priority/mask levels to enable multiplexed interrupt control. The ...

Page 135

H8S/2456, H8S/2456R, H8S/2454 Group 4.6 Trap Instruction Exception Handling Trap instruction exception handling starts when a TRAPA instruction is executed. Trap instruction exception handling can be executed at all times in the program execution state. The trap instruction exception handling ...

Page 136

Section 4 Exception Handling 4.7 Illegal Instruction Exception Handling Illegal instruction exception handling starts when the CPU executing an illegal instruction code is detected. Illegal instruction exception handling can be executed at all times in the program execution state. The ...

Page 137

H8S/2456, H8S/2456R, H8S/2454 Group 4.8 Stack Status after Exception Handling Figure 4.3 shows the stack after completion of trap instruction exception handling and interrupt exception handling. Normal Modes * 2 Advanced Modes Notes: 1. Ignored on return. 2. Normal modes ...

Page 138

Section 4 Exception Handling 4.9 Usage Note When accessing word data or longword data, this LSI assumes that the lowest address bit is 0. The stack should always be accessed by word transfer instruction or longword transfer instruction, and the ...

Page 139

H8S/2456, H8S/2456R, H8S/2454 Group Section 5 Interrupt Controller 5.1 Features • Two interrupt control modes Any of two interrupt control modes can be set by means of the INTM1 and INTM0 bits in the interrupt control register (INTCR). • Priorities ...

Page 140

Section 5 Interrupt Controller A block diagram of the interrupt controller is shown in figure 5.1. INTM1 INTM0 INTCR NMIEG NMI input NMI input unit IRQ input unit IRQ input ISR ITSR ISCR Internal interrupt sources SWDTEND to SSTXI Interrupt ...

Page 141

H8S/2456, H8S/2456R, H8S/2454 Group 5.2 Input/Output Pins Table 5.1 shows the pin configuration of the interrupt controller. Table 5.1 Pin Configuration Name I/O NMI Input IRQ15-A to IRQ0-A* Input IRQ15-B to IRQ0-B* IRQ7-A to IRQ0-A and IRQ7-B to IRQ0-B in ...

Page 142

Section 5 Interrupt Controller 5.3 Register Descriptions The interrupt controller has the following registers. • Interrupt control register (INTCR) • IRQ sense control register H (ISCRH) • IRQ sense control register L (ISCRL) • IRQ enable register (IER) • IRQ ...

Page 143

H8S/2456, H8S/2456R, H8S/2454 Group 5.3.1 Interrupt Control Register (INTCR) INTCR selects the interrupt control mode, and the detected edge for NMI. Bit Bit Name Initial Value ⎯ All 0 5 INTM1 0 4 INTM0 0 3 NMIEG 0 ...

Page 144

Section 5 Interrupt Controller 5.3.2 Interrupt Priority Registers (IPRA to IPRN) IPR are eleven 16-bit readable/writable registers that set priorities (levels for interrupts other than NMI. The correspondence between interrupt sources and IPR settings ...

Page 145

H8S/2456, H8S/2456R, H8S/2454 Group Bit Bit Name Initial Value ⎯ IPR6 1 5 IPR5 1 4 IPR4 1 ⎯ IPR2 1 1 IPR1 1 0 IPR0 1 REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 R/W ...

Page 146

Section 5 Interrupt Controller 5.3.3 IRQ Enable Register (IER) IER controls enabling and disabling of interrupt requests IRQ15 to IRQ0. Bit Bit Name Initial Value 15 IRQ15E 0 14 IRQ14E 0 13 IRQ13E 0 12 IRQ12E 0 11 IRQ11E 0 ...

Page 147

H8S/2456, H8S/2456R, H8S/2454 Group Bit Bit Name Initial Value 5 IRQ5E 0 4 IRQ4E 0 3 IRQ3E 0 2 IRQ2E 0 1 IRQ1E 0 0 IRQ0E 0 Note: These bits are reserved in the H8S/2454 Group. * REJ09B0467-0350 Rev. 3.50 ...

Page 148

Section 5 Interrupt Controller 5.3.4 IRQ Sense Control Registers H and L (ISCRH, ISCRL) ISCR select the source that generates an interrupt request at pins IRQ15 to IRQ0. • ISCRH (H8S/2456 Group only) Bit Bit Name Initial Value 15 IRQ15SCB ...

Page 149

H8S/2456, H8S/2456R, H8S/2454 Group Bit Bit Name Initial Value 9 IRQ12SCB 0 8 IRQ12SCA 0 7 IRQ11SCB 0 6 IRQ11SCA 0 5 IRQ10SCB 0 4 IRQ10SCA 0 REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 R/W Description R/W IRQ12 Sense Control B ...

Page 150

Section 5 Interrupt Controller Bit Bit Name Initial Value 3 IRQ9SCB 0 2 IRQ9SCA 0 1 IRQ8SCB 0 0 IRQ8SCA 0 Page 120 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group R/W Description R/W IRQ9 Sense Control B R/W IRQ9 Sense Control ...

Page 151

H8S/2456, H8S/2456R, H8S/2454 Group • ISCRL Bit Bit Name Initial Value 15 IRQ7SCB 0 14 IRQ7SCA 0 13 IRQ6SCB 0 12 IRQ6SCA 0 11 IRQ5SCB 0 10 IRQ5SCA 0 REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 R/W Description R/W IRQ7 Sense ...

Page 152

Section 5 Interrupt Controller Bit Bit Name Initial Value 9 IRQ4SCB 0 8 IRQ4SCA 0 7 IRQ3SCB 0 6 IRQ3SCA 0 5 IRQ2SCB 0 4 IRQ2SCA 0 Page 122 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group R/W Description R/W IRQ4 Sense ...

Page 153

H8S/2456, H8S/2456R, H8S/2454 Group Bit Bit Name Initial Value 3 IRQ1SCB 0 2 IRQ1SCA 0 1 IRQ0SCB 0 0 IRQ0SCA 0 REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 R/W Description R/W IRQ1 Sense Control B R/W IRQ1 Sense Control A 00: ...

Page 154

Section 5 Interrupt Controller 5.3.5 IRQ Status Register (ISR) ISR is an IRQ15 to IRQ0 interrupt request flag register. Bit Bit Name Initial Value 2 15 IRQ15F IRQ14F IRQ13F IRQ12F* 0 ...

Page 155

H8S/2456, H8S/2456R, H8S/2454 Group 5.3.6 IRQ Pin Select Register (ITSR) ITSR selects input pins IRQ15 to IRQ0. • H8S/2456 Group Bit Bit Name Initial Value 15 ITS15 0 14 ITS14 0 13 ITS13 0 ⎯ ⎯ ...

Page 156

Section 5 Interrupt Controller Bit Bit Name Initial Value 5 ITS5 0 4 ITS4 0 3 ITS3 0 2 ITS2 0 1 ITS1 0 0 ITS0 0 Page 126 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group R/W Description Selects the IRQ5 ...

Page 157

H8S/2456, H8S/2456R, H8S/2454 Group • H8S/2454 Group Bit Bit Name Initial Value R ⎯ All 0 7 ITS7 0 6 ITS6 0 5 ITS5 0 4 ITS4 0 3 ITS3 0 2 ITS2 0 1 ITS1 0 ...

Page 158

Section 5 Interrupt Controller 5.3.7 Software Standby Release IRQ Enable Register (SSIER) SSIER selects the IRQ pins used to recover from the software standby state. Bit Bit Name Initial Value 15 SSI15 SSI14 SSI13 ...

Page 159

H8S/2456, H8S/2456R, H8S/2454 Group 5.4 Interrupt Sources 5.4.1 External Interrupts The H8S/2456 Group and H8S/2456R Group each have seventeen external interrupts: NMI and IRQ15 to IRQ0. The H8S/2454 Group has nine external interrupts: NMI and IRQ7 to IRQ0. These interrupts ...

Page 160

Section 5 Interrupt Controller IRQnSCA, IRQnSCB Edge/ level detection circuit IRQn input Note for H8S/2456 Group and H8S/2456R Group for H8S/2454 Group Figure 5.2 Block Diagram of IRQ Interrupts 5.4.2 ...

Page 161

H8S/2456, H8S/2456R, H8S/2454 Group 5.5 Interrupt Exception Handling Vector Table Table 5.2 shows interrupt exception handling sources, vector addresses, and interrupt priorities. For default priorities, the lower the vector number, the higher the priority. When interrupt control mode 2 is ...

Page 162

Section 5 Interrupt Controller Origin of Interrupt Interrupt Vector Source Source Number Refresh CMI 35 controller ⎯ Reserved for 36 system use 37 A/D_0 ADI0 38 Reserved for 39 system use TPU_0 TGI0A 40 TGI0B 41 TGI0C 42 TGI0D 43 ...

Page 163

H8S/2456, H8S/2456R, H8S/2454 Group Origin of Interrupt Interrupt Vector Source Source Number TPU_3 Reserved for 61 system use 62 63 TPU_4 TGI4A 64 TGI4B 65 TCI4V 66 TCI4U 67 TPU_5 TGI5A 68 TGI5B 69 TCI5V 70 TCI5U 71 TMR_0 CMIA0 ...

Page 164

Section 5 Interrupt Controller Origin of Interrupt Interrupt Vector Source Source Number EXDMAC * 2 Reserved for 84 system use 85 86 EXDMTEND2 87 EXDMTEND3 SCI_0 ERI0 88 RXI0 89 TXI0 90 TEI0 91 SCI_1 ERI1 92 RXI1 93 TXI1 ...

Page 165

H8S/2456, H8S/2456R, H8S/2454 Group Origin of Interrupt Interrupt Vector Source Source Number A/D_1 ADI1 112 Reserved for 113 system use 114 115 IIC2_0 IICI0 116 Reserved for 117 system use IIC2_1 IICI1 118 Reserved for 119 system use TPU_6 TGI6A ...

Page 166

Section 5 Interrupt Controller Origin of Interrupt Interrupt Vector Source Source Number TPU_10 TGI10A 138 TGI10B 139 TCI10V 140 TCI10U 141 TPU_11 TGI11A 142 TGI11B 143 TCI11V 144 TCI11U 145 USB USBINTN0 146 USBINTN1 147 USBINTN2 148 USBINTN3 149 USBINTN0 ...

Page 167

H8S/2456, H8S/2456R, H8S/2454 Group Origin of Interrupt Interrupt Vector Source Source Number ⎯ Reserved for 158 system use 159 160 161 162 163 164 165 166 167 168 169 Reserved for 170 system use | 255 Notes: 1. Lower 16 ...

Page 168

Section 5 Interrupt Controller 5.6 Interrupt Control Modes and Interrupt Operation The interrupt controller has two modes: interrupt control mode 0 and interrupt control mode 2. Interrupt operations differ depending on the interrupt control mode. The interrupt control mode is ...

Page 169

H8S/2456, H8S/2456R, H8S/2454 Group 5.6.1 Interrupt Control Mode 0 In interrupt control mode 0, interrupt requests except for NMI are masked by the I bit of CCR in the CPU. Figure 5.3 shows a flowchart of the interrupt acceptance operation ...

Page 170

Section 5 Interrupt Controller IRQ0 Figure 5.3 Flowchart of Procedure Up to Interrupt Acceptance Page 140 of 1392 Program execution status Interrupt generated? Yes Yes NMI Yes No Yes IRQ1 Yes Save PC and CCR I ...

Page 171

H8S/2456, H8S/2456R, H8S/2454 Group 5.6.2 Interrupt Control Mode 2 In interrupt control mode 2, mask control is done in eight levels for interrupt requests except for NMI by comparing the EXR interrupt mask level ( bits) in the ...

Page 172

Section 5 Interrupt Controller Level 7 interrupt? Yes Mask level 6 or below? Yes Figure 5.4 Flowchart of Procedure Up to Interrupt Acceptance Page 142 of 1392 Program execution status No Interrupt generated? Yes Yes NMI Level ...

Page 173

H8S/2456, H8S/2456R, H8S/2454 Group 5.6.3 Interrupt Exception Handling Sequence Figure 5.5 shows the interrupt exception handling sequence. The example shown is for the case where interrupt control mode 0 is set in advanced mode, and the program area and stack ...

Page 174

Section 5 Interrupt Controller Figure 5.5 Interrupt Exception Handling Page 144 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 ...

Page 175

H8S/2456, H8S/2456R, H8S/2454 Group 5.6.4 Interrupt Response Times Table 5.4 shows interrupt response times - the interval between generation of an interrupt request and execution of the first instruction in the interrupt handling routine. The execution status symbols used in ...

Page 176

Section 5 Interrupt Controller Table 5.5 Number of States in Interrupt Handling Routine Execution Statuses Symbol Instruction fetch S I Branch address read S J Stack manipulation S K [Legend] m: Number of wait states in an external device access. ...

Page 177

H8S/2456, H8S/2456R, H8S/2454 Group 5.7 Usage Notes 5.7.1 Conflict between Interrupt Generation and Disabling When an interrupt enable bit is cleared mask interrupts, the masking becomes effective after execution of the instruction. When an interrupt enable bit ...

Page 178

Section 5 Interrupt Controller 5.7.2 Instructions that Disable Interrupts Instructions that disable interrupts are LDC, ANDC, ORC, and XORC. After any of these instructions is executed, all interrupts including NMI are disabled and the next instruction is always executed. When ...

Page 179

H8S/2456, H8S/2456R, H8S/2454 Group 5.7.6 IRQ Status Register (ISR) Depending on the pin status following a reset, IRQnF may be set to 1. Therefore, always read ISR and clear after resets. REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 ...

Page 180

Section 5 Interrupt Controller Page 150 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group REJ09B0467-0350 Rev. 3.50 Jul 07, 2010 ...

Page 181

H8S/2456, H8S/2456R, H8S/2454 Group Section 6 Bus Controller (BSC) This LSI has an on-chip bus controller (BSC) that manages the external address space divided into eight areas. The bus controller also has a bus arbitration function, and controls the operation ...

Page 182

Section 6 Bus Controller (BSC) • Idle cycle insertion Idle cycles can be inserted between external read cycles to different areas Idle cycles can be inserted before the write cycle after a read cycle Idle cycles can be inserted before ...

Page 183

H8S/2456, H8S/2456R, H8S/2454 Group EXDMAC address bus Internal address bus Internal bus master bus request signal EXDMAC bus request signal* Internal bus master bus acknowledge signal EXDMAC bus acknowledge signal* Internal bus control signals CPU bus request signal DTC bus ...

Page 184

Section 6 Bus Controller (BSC) 6.2 Input/Output Pins Table 6.1 shows the pin configuration of the bus controller. Table 6.1 Pin Configuration Name Address strobe Address hold Read High write/write enable Low write Chip select 0 Chip select 1 Chip ...

Page 185

H8S/2456, H8S/2456R, H8S/2454 Group Name Chip select 4/ row address strobe 4/ write enable * 1 Chip select 5/ row address strobe 5/ SDRAMφ Chip select 6 Chip select 7 Upper column address strobe/ upper data mask enable ...

Page 186

Section 6 Bus Controller (BSC) Name Data transfer acknowledge 1 (DMAC) Data transfer acknowledge 0 (DMAC) Data transfer acknowledge 3 * (EXDMAC) Data transfer acknowledge (EXDMAC) Notes: 1. Not supported by the H8S/2456 Group and H8S/2454 Group ...

Page 187

H8S/2456, H8S/2456R, H8S/2454 Group 6.3 Register Descriptions The bus controller has the following registers. • Bus width control register (ABWCR) • Access state control register (ASTCR) • Wait control register AH (WTCRAH) • Wait control register AL (WTCRAL) • Wait ...

Page 188

Section 6 Bus Controller (BSC) 6.3.1 Bus Width Control Register (ABWCR) ABWCR designates each area in the external address space as either 8-bit access space or 16-bit access space. Initial Value * Bit Bit Name 7 ABW7 1/0 6 ABW6 ...

Page 189

H8S/2456, H8S/2456R, H8S/2454 Group 6.3.3 Wait Control Registers AH, AL, BH, and BL (WTCRAH, WTCRAL, WTCRBH, and WTCRBL) WTCRA and WTCRB select the number of program wait states for each area in the external address space. In addition, CAS latency ...

Page 190

Section 6 Bus Controller (BSC) Bit Bit Name Initial Value 10 W62 1 9 W61 1 8 W60 1 Page 160 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group R/W Description R/W Area 6 Wait Control R/W These bits ...

Page 191

H8S/2456, H8S/2456R, H8S/2454 Group • WTCRAL Bit Bit Name Initial Value ⎯ W52 1 5 W51 1 4 W50 1 ⎯ W42 1 1 W41 1 0 W40 1 REJ09B0467-0350 Rev. 3.50 Jul 07, ...

Page 192

Section 6 Bus Controller (BSC) • WTCRBH Bit Bit Name Initial Value ⎯ W32 1 13 W31 1 12 W30 1 ⎯ Page 162 of 1392 H8S/2456, H8S/2456R, H8S/2454 Group R/W Description R Reserved This ...

Page 193

H8S/2456, H8S/2456R, H8S/2454 Group Bit Bit Name Initial Value 10 W22 1 9 W21 1 8 W20 1 [Legend] X: Don't care. Note: The synchronous DRAM interface is not supported by the H8S/2456 Group and * H8S/2454 Group. REJ09B0467-0350 Rev. ...

Page 194

Section 6 Bus Controller (BSC) • WTCRBL Bit Bit Name Initial Value ⎯ W12 1 5 W11 1 4 W10 1 ⎯ W02 1 1 W01 1 0 W00 1 Page 164 of 1392 ...

Page 195

H8S/2456, H8S/2456R, H8S/2454 Group 6.3.4 Read Strobe Timing Control Register (RDNCR) RDNCR selects the read strobe signal (RD) negation timing in a basic bus interface read access. Bit Bit Name Initial Value 7 RDN7 0 6 RDN6 0 5 RDN5 ...

Page 196

Section 6 Bus Controller (BSC) φ RD RDNn = 0 Data RD RDNn = 1 Data Figure 6.2 Read Strobe Negation Timing (Example of 3-State Access Space) Page 166 of 1392 Bus cycle H8S/2456, H8S/2456R, H8S/2454 ...

Page 197

H8S/2456, H8S/2456R, H8S/2454 Group CS Assertion Period Control Registers H, L (CSACRH, CSACRL) 6.3.5 CSACRH and CSACRL select whether or not the assertion period of the basic bus interface chip select signals (CSn) and address signals extended. ...

Page 198

Section 6 Bus Controller (BSC) φ Address CS RD Read Data HWR, LWR Write Data Figure 6.3 CS and Address Assertion Period Extension (Example of 3-State Access Space and RDNn = 0) Page 168 of 1392 Bus cycle T T ...

Page 199

H8S/2456, H8S/2456R, H8S/2454 Group 6.3.6 Area 0 Burst ROM Interface Control Register (BROMCRH) Area 1 Burst ROM Interface Control Register (BROMCRL) BROMCRH and BROMCRL are used to make burst ROM interface settings. Area 0 and area 1 burst ROM interface ...

Page 200

Section 6 Bus Controller (BSC) 6.3.7 Bus Control Register (BCR) BCR is used for idle cycle settings, selection of the external bus released state protocol, enabling or disabling of the write data buffer function, and enabling or disabling of WAIT ...

Related keywords