background image

518

Internal data bus

Output enable

SCIF

Serial
transmission
output

R

SCP4MD0

PCRW

Reset

C

Q

Q

D

R

SCP4MD1

PCRW

Reset

C

Q

D

R

SCP4DT1

PDRW

Reset

SCPT[4]/TxD2

C

D

PCRW:
PDRW:

SCPCR write
SCPDR write

Legend

Figure 16.3   SCPT[4]/TxD2 Pin

Summary of Contents for SH7709S

Page 1: ...ordingly although Hitachi Hitachi Ltd Hitachi Semiconductors and other Hitachi brand names are mentioned in the document these names have in fact all been changed to Renesas Technology Corp Thank you for your understanding Except for our corporate trademark logo and corporate statement no changes whatsoever have been made to the contents of the document and these changes do not constitute any alte...

Page 2: ...Hitachi SuperH RISC engine SH7709S Hardware Manual ADE 602 250 Rev 1 0 09 21 01 Hitachi Ltd ...

Page 3: ...of bodily injury such as aerospace aeronautics nuclear power combustion control transportation traffic safety equipment or medical equipment for life support 4 Design your application so that the product is used within the ranges guaranteed by Hitachi particularly for maximum rating operating supply voltage range heat radiation characteristics installation conditions and other characteristics Hita...

Page 4: ...he information of the hardware functions and electrical characteristics of the SH7709S The SH3 SH 3E SH3 DSP Programming Manual contains detailed information of executable instructions Please read the Programming Manual together with this manual How to Use the Book To understand general functions Read the manuala from the beginning The manual explains the CPU system control functions peripheral fu...

Page 5: ...ument No C C Compiler Assembler Optimizing Linkage Editor User s Manual ADE 702 246 Simulator Debugger User s Manual ADE 702 186 Hitachi Embedded Workshop User s Manual ADE 702 201 Application note Name of Document Document No C C Compiler Guide ADE xxx xxx ...

Page 6: ...ion Features 26 2 3 1 Execution Environment 26 2 3 2 Addressing Modes 28 2 3 3 Instruction Formats 32 2 4 Instruction Set 35 2 4 1 Instruction Set Classified by Function 35 2 4 2 Instruction Code Map 51 2 5 Processor States and Processor Modes 54 2 5 1 Processor States 54 2 5 2 Processor Modes 55 Section 3 Memory Management Unit MMU 57 3 1 Overview 57 3 1 1 Features 57 3 1 2 Role of MMU 57 3 1 3 S...

Page 7: ...es 87 3 7 Usage Note 87 Section 4 Exception Handling 89 4 1 Overview 89 4 1 1 Features 89 4 1 2 Register Configuration 89 4 2 Exception Handling Function 89 4 2 1 Exception Handling Flow 89 4 2 2 Exception Vector Addresses 90 4 2 3 Acceptance of Exceptions 92 4 2 4 Exception Codes 94 4 2 5 Exception Request Masks 95 4 2 6 Returning from Exception Handling 95 4 3 Register Descriptions 96 4 4 Except...

Page 8: ...ion 123 6 1 4 Register Configuration 124 6 2 Interrupt Sources 125 6 2 1 NMI Interrupt 125 6 2 2 IRQ Interrupts 125 6 2 3 IRL Interrupts 126 6 2 4 PINT Interrupts 128 6 2 5 On Chip Peripheral Module Interrupts 128 6 2 6 Interrupt Exception Handling and Priority 129 6 3 INTC Registers 135 6 3 1 Interrupt Priority Registers A to E IPRA IPRE 135 6 3 2 Interrupt Control Register 0 ICR0 136 6 3 3 Inter...

Page 9: ...ster BRSR 171 7 2 12 Branch Destination Register BRDR 172 7 2 13 Break ASID Register A BASRA 173 7 2 14 Break ASID Register B BASRB 173 7 3 Operation Description 174 7 3 1 Flow of the User Break Operation 174 7 3 2 Break on Instruction Fetch Cycle 175 7 3 3 Break by Data Access Cycle 175 7 3 4 Sequential Break 176 7 3 5 Value of Saved Program Counter 176 7 3 6 PC Trace 177 7 3 7 Usage Examples 178...

Page 10: ...8 9 2 1 CPG Block Diagram 208 9 2 2 CPG Pin Configuration 210 9 2 3 CPG Register Configuration 210 9 3 Clock Operating Modes 211 9 4 Register Descriptions 215 9 4 1 Frequency Control Register FRQCR 215 9 5 Changing the Frequency 217 9 5 1 Changing the Multiplication Rate 217 9 5 2 Changing the Division Ratio 217 9 6 Overview of WDT 218 9 6 1 Block Diagram of WDT 218 9 6 2 Register Configuration 21...

Page 11: ... 260 10 2 12 Cautions on Accessing Refresh Control Related Registers 261 10 2 13 MCS0 Control Register MCSCR0 262 10 2 14 MCS1 Control Register MCSCR1 263 10 2 15 MCS2 Control Register MCSCR2 263 10 2 16 MCS3 Control Register MCSCR3 263 10 2 17 MCS4 Control Register MCSCR4 263 10 2 18 MCS5 Control Register MCSCR5 263 10 2 19 MCS6 Control Register MCSCR6 263 10 2 20 MCS7 Control Register MCSCR7 263...

Page 12: ...tch Timer CMT 380 11 4 1 Overview 380 11 4 2 Register Descriptions 381 11 4 3 Operation 384 11 4 4 Compare Match 385 11 5 Examples of Use 387 11 5 1 Example of DMA Transfer between On Chip IrDA and External Memory 387 11 5 2 Example of DMA Transfer between A D Converter and External Memory 388 11 5 3 Example of DMA Transfer between External Memory and SCIF Transmitter Indirect Address On 389 11 6 ...

Page 13: ...ter RWKCNT 417 13 2 6 Date Counter RDAYCNT 418 13 2 7 Month Counter RMONCNT 418 13 2 8 Year Counter RYRCNT 419 13 2 9 Second Alarm Register RSECAR 419 13 2 10 Minute Alarm Register RMINAR 420 13 2 11 Hour Alarm Register RHRAR 420 13 2 12 Day of Week Alarm Register RWKAR 421 13 2 13 Date Alarm Register RDAYAR 422 13 2 14 Month Alarm Register RMONAR 422 13 2 15 RTC Control Register 1 RCR1 423 13 2 1...

Page 14: ...view 458 14 3 2 Operation in Asynchronous Mode 460 14 3 3 Multiprocessor Communication 470 14 3 4 Synchronous Operation 479 14 4 SCI Interrupts 489 14 5 Usage Notes 490 Section 15 Smart Card Interface 493 15 1 Overview 493 15 1 1 Features 493 15 1 2 Block Diagram 494 15 1 3 Pin Configuration 495 15 1 4 Smart Card Interface Registers 495 15 2 Register Descriptions 496 15 2 1 Smart Card Mode Registe...

Page 15: ...1 16 2 9 FIFO Control Register SCFCR 539 16 2 10 FIFO Data Count Register SCFDR 541 16 3 Operation 542 16 3 1 Overview 542 16 3 2 Serial Operation 543 16 4 SCIF Interrupts 555 16 5 Usage Notes 556 Section 17 IrDA 559 17 1 Overview 559 17 1 1 Features 559 17 1 2 Block Diagram 560 17 1 3 Pin Configuration 563 17 1 4 Register Configuration 564 17 2 Register Description 565 17 2 1 Serial Mode Register...

Page 16: ...93 19 3 2 Port B Data Register PBDR 594 19 4 Port C 595 19 4 1 Register Description 595 19 4 2 Port C Data Register PCDR 596 19 5 Port D 597 19 5 1 Register Description 597 19 5 2 Port D Data Register PDDR 598 19 6 Port E 599 19 6 1 Register Description 599 19 6 2 Port E Data Register PEDR 600 19 7 Port F 601 19 7 1 Register Description 601 19 7 2 Port F Data Register PFDR 602 19 8 Port G 603 19 8...

Page 17: ...le Mode MULTI 0 627 20 4 2 Multi Mode MULTI 1 SCN 0 629 20 4 3 Scan Mode MULTI 1 SCN 1 631 20 4 4 Input Sampling and A D Conversion Time 633 20 4 5 External Trigger Input Timing 634 20 5 Interrupts 635 20 6 Definitions of A D Conversion Accuracy 635 20 7 Usage Notes 636 20 7 1 Setting Analog Input Voltage 636 20 7 2 Processing of Analog Input Pins 636 20 7 3 Access Size and Read Data 637 Section 2...

Page 18: ...ser Debugger AUD 659 Section 23 Electrical Characteristics 661 23 1 Absolute Maximum Ratings 661 23 2 DC Characteristics 663 23 3 AC Characteristics 667 23 3 1 Clock Timing 668 23 3 2 Control Signal Timing 679 23 3 3 AC Bus Timing 682 23 3 4 Basic Timing 684 23 3 5 Burst ROM Timing 687 23 3 6 Synchronous DRAM Timing 690 23 3 7 PCMCIA Timing 708 23 3 8 Peripheral Module Signal Timing 715 23 3 9 H U...

Page 19: ...xiv Appendix B Memory Mapped Control Registers 747 B 1 Register Address Map 747 B 2 Register Bits 753 Appendix C Product Lineup 765 Appendix D Package Dimensions 766 ...

Page 20: ...microprocessor SH 1 or SH 2 High speed data transfers can be performed by an on chip direct memory access controller DMAC and an external memory access support function enables direct connection to different types of memory The SH7709S microprocessor also supports an infrared communication function an A D converter and a D A converter A powerful built in power management function keeps power consu...

Page 21: ...identifier ASID 8 bits 256 logical address space Five stage pipeline Clock pulse generator CPG Clock mode An input clock can be selected from the external input EXTAL or CKIO or crystal oscillator Three types of clocks generated CPU clock 1 24 times the input clock maximum 200 MHz Bus clock 1 4 times the input clock maximum 66 67 MHz Peripheral clock 1 4 4 times the input clock maximum 33 34 MHz P...

Page 22: ... 0 areas 2 to 6 each a maximum of 64 Mbytes with the following features settable for each area Bus size 8 16 or 32 bits Number of wait cycles also supports a hardware wait function Setting the type of space enables direct connection to SRAM Synchronous DRAM and burst ROM Supports PCMCIA interface 2 channels Outputs chip select signal CS0 CS2 CS6 for corresponding area Synchronous DRAM refresh func...

Page 23: ...terface 2 SCI2 SCIF 16 byte FIFO for transmission reception DMA can be transferred Hardware flow control Direct memory access controller DMAC 4 channels Burst mode and cycle steal mode I O port Twelve 8 bit ports A D converter ADC 10 bits 4 LSB 8 channels Conversion time 16 µs Input range 0 Vcc max 3 6 V D A converter DAC 8 bits 4 LSB 2 channels Conversion time 10 µs Output range 0 Vcc max 3 6 V P...

Page 24: ...A 2 0 0 15 0 1 V when an IRL or IRLS interrupt is used Table 1 2 Characteristics Item Characteristics Power supply voltage I O 3 3 0 3 V Internal 2 0 0 15 V 200 MHz model 1 9 0 15 V 167 MHz model 1 8 0 25 0 15 V 133 MHz model 1 7 0 25 0 15 V 100 MHz model Operating frequency Internal frequency maximum 200 MHz 200 MHz model 167 MHz 167 MHz model 133 34 MHz 133 MHz model 100 MHz 100 MHz model extern...

Page 25: ... state controller Cache memory Cache memory controller Compare match timer Clock pulse generator watchdog timer Central processing unit D A converter Direct memory access controller Hitachi user debugging interface INTC IrDA MMU RTC SCI SCIF TLB TMU UBC Interrupt controller Serial communicatiion interface with IrDA Memory management unit Realtime clock Serial communication interface with smart car...

Page 26: ...TD 5 PTJ 5 PTJ 4 V CC Q CASU PTJ 3 V SS Q CASL PTJ 2 PTJ 1 RAS3L PTJ 0 CKE PTK 5 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 STATUS0 PTJ 6 STATUS1 PTJ 7 TCLK PTH 7 IRQOUT VSSQ CKIO VCCQ TxD0 SCPT 0 SCK0 SCPT 1 TxD1 SCPT 2 SCK1 SCPT 3 Tx...

Page 27: ... 2 1 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 A B C D E F G H J K L M N P R T U V W A B C D E F G H J K L M N P R T U V W Note The pin area enclosed in broken lines is an inner view SH7709S BP 240A Top view Figure 1 3 Pin Assignment BP 240A ...

Page 28: ...t input port H 11 F2 IRQ3 IRL3 PTH 3 I External interrupt request input port H 12 F3 IRQ4 PTH 4 I External interrupt request input port H 13 F4 D31 PTB 7 I O Data bus input output port B 14 G1 D30 PTB 6 I O Data bus input output port B 15 G2 D29 PTB 5 I O Data bus input output port B 16 G3 D28 PTB 4 I O Data bus input output port B 17 G4 D27 PTB 3 I O Data bus input output port B 18 H1 D26 PTB 2 I...

Page 29: ...port A 32 M4 D16 PTA 0 I O Data bus input output port A 33 M3 VssQ Input output power supply 0 V 34 M2 D15 I O Data bus 35 M1 VccQ Input output power supply 3 3 V 36 N4 D14 I O Data bus 37 N3 D13 I O Data bus 38 N2 D12 I O Data bus 39 N1 D11 I O Data bus 40 P4 D10 I O Data bus 41 P3 D9 I O Data bus 42 P2 D8 I O Data bus 43 P1 D7 I O Data bus 44 R4 D6 I O Data bus 45 R3 VssQ Input output power supp...

Page 30: ... 63 V6 A8 O Address bus 64 U6 A9 O Address bus 65 T6 A10 O Address bus 66 W7 A11 O Address bus 67 V7 A12 O Address bus 68 U7 A13 O Address bus 69 T7 VssQ Input output power supply 0 V 70 W8 A14 O Address bus 71 V8 VccQ Input output power supply 3 3 V 72 U8 A15 O Address bus 73 T8 A16 O Address bus 74 W9 A17 O Address bus 75 V9 A18 O Address bus 76 T9 A19 O Address bus 77 U9 A20 O Address bus 78 V1...

Page 31: ... DQM SDRAM PCMCIA input output port read input output port K 92 T14 WE3 DQMUU ICIOWR PTK 7 O I O D31 D24 select signal DQM SDRAM PCMCIA input output port write input output port K 93 U14 RD WR O Read write 94 V14 AUDSYNC PTE 7 O I O AUD synchronous input output port E 95 W14 VssQ Input output power supply 0 V 96 T15 CS0 MCS 0 O Chip select 0 mask ROM chip select 0 97 U15 VccQ Input output power su...

Page 32: ...t output port J 109 T19 VssQ Input output power supply 0 V 110 T17 CASU PTJ 3 O I O Lower 32 Mbytes address SDRAM CAS input output port J 111 R19 VccQ Input output power supply 3 3 V 112 U17 PTJ 4 I O Input output port J 113 R17 PTJ 5 I O Input output port J 114 R16 DACK0 PTD 5 O I O DMA acknowledge 0 input output port D 115 P19 DACK1 PTD 7 O I O DMA acknowledge 1 input output port D 116 P18 PTE 6...

Page 33: ...s Power supply 0 V 133 K19 AUDATA 1 PTG 1 O I AUD data input port G 134 J17 Vcc Power supply 4 J16 Vcc Power supply 4 135 J18 AUDATA 0 PTG 0 O I AUD data input port G 136 J19 TRST PTF 7 PINT 15 I Test reset input port F port interrupt 137 H16 TMS PTF 6 PINT 14 I Test mode switch input port F port interrupt 138 H17 TDI PTF 5 PINT 13 I Test data input input port F port interrupt 139 H18 TCK PTF 4 PN...

Page 34: ...ower supply 4 C19 Vcc Power supply 4 155 C18 XTAL O Clock oscillator pin 156 D18 EXTAL I External clock crystal oscillator pin 157 B16 STATUS0 PTJ 6 O I O Processor status input output port J 158 B17 STATUS1 PTJ 7 O I O Processor status input output port J 159 B15 TCLK PTH 7 I O TMU or RTC clock input output input output port H 160 A16 IRQOUT O Interrupt request notification 161 C16 VssQ Input out...

Page 35: ... 7 PINT 7 O I O I Mask ROM chip select input output port C port interrupt 178 D11 MCS 6 PTC 6 PINT 6 O I O I Mask ROM chip select input output port C port interrupt 179 C11 MCS 5 PTC 5 PINT 5 O I O I Mask ROM chip select input output port C port interrupt 180 B10 MCS 4 PTC 4 PINT 4 O I O I Mask ROM chip select input output port C port interrupt 181 C10 VssQ Input output power supply 0 V 182 D10 WA...

Page 36: ...t input port L 202 D4 AN 3 PTL 3 I A D converter input input port L 203 A5 AN 4 PTL 4 I A D converter input input port L 204 C4 AN 5 PTL 5 I A D converter input input port L 205 A4 AVcc Analog power supply 3 3 V 206 B5 AN 6 DA 1 PTL 6 I A D converter input input port L 207 B3 AN 7 DA 0 PTL 7 I A D converter input input port L 208 B4 AVss Analog power supply 0 V Notes 1 Must be connected to the pow...

Page 37: ...used on the user system alone without an emulator and the H UDI hold this pin at high level 6 B2 B1 C1 U1 V1 W1 V2 W2 W3 W17 W18 W19 V18 V19 B19 A19 B18 A18 A17 A3 A2 and A1 are NC pins Do not connect anything to these pins ...

Page 38: ... R0_BANK0 R7_BANK0 accessed only by the LDC STC instructions When the RB bit is 0 BANK0 general registers R0_BANK0 R7_BANK0 and nonbanked general registers R8 R15 function as the general register set with BANK1 general registers R0_BANK1 R7_BANK1 accessed only by the LDC STC instructions In user mode the 16 registers comprising bank 0 general registers R0_BANK0 R7_BANK0 and non banked registers R8...

Page 39: ...7_BANK0 2 R8 R9 R10 R11 R12 R13 R14 R15 SR GBR MACH MACL PR PC User mode register configuration Notes 1 2 R0 functions as an index register in the indexed register indirect addressing mode and indexed GBR indirect addressing mode Banked register Figure 2 1 User Mode Register Configuration ...

Page 40: ...vileged mode register configuration RB 0 R0_BANK1 1 2 R1_BANK1 2 R2_BANK1 2 R3_BANK1 2 R4_BANK1 2 R5_BANK1 2 R6_BANK1 2 R7_BANK1 2 Notes 1 2 3 R0 functions as an index register in the indexed register indirect addressing mode and indexed GBR indirect addressing mode Banked register When the RB bit of the SR register is 1 the register can be accessed for general use When the RB bit is 0 it can only...

Page 41: ...register bank R0_BANK0 R7_BANK0 or R0_BANK1 R7_BANK1 being accessed according to the processor mode For details see figure 2 1 User Mode Register Configulation and figure 2 2 Privileged Mode Register Configulation The general register configuration is shown in figure 2 3 31 0 R0 1 2 General Registers Notes R0 functions as an index register in the indexed register indirect addressing mode and index...

Page 42: ...31 0 System Registers Multiply and Accumulate High and Low Registers MACH L Store the results of multiply and accumulate operations Procedure Register PR Stores the return address for exiting a subroutine procedure Program Counter PC Indicates the address four addresses two instructions ahead of the currently executing instruction Initialized to H A0000000 by a reset PR PC MACH MACL Figure 2 4 Sys...

Page 43: ... general registers and R0_BANK0 R7_BANK0 can be accessed by LDC STC instructions RB 0 R0_BANK0 R7_BANK0 and R8 R15 are general registers and R0_BANK1 R7_BANK1 can be accessed by LDC STC instructions RB is set to 1 on generation of an exception or interrupt and is initialized to 1 by a reset Block bit BL 1 Exceptions and interrupts are suppressed See section 4 Exception Handling for details BL 0 Ex...

Page 44: ...this rule is not observed A byte operand can be accessed from any address Big endian or little endian byte order can be selected for the data format The endian mode should be set with the MD5 external pin in a power on reset Big endian mode is selected when the MD5 pin is low and little endian when high The endian mode cannot be changed dynamically Bit positions are numbered left to right from mos...

Page 45: ...gical operations TST AND OR and XOR instructions Load Store Architecture The SH7709S features a load store architecture in which basic operations are executed in registers Operations requiring memory access are executed in registers following register loading except for bit manipulation operations such as logical AND functions which are executed directly in memory Delayed Branching Unconditional b...

Page 46: ... than inserted directly into the instruction code The memory table is accessed by the MOV instruction using PC relative addressing with displacement as follows MOV W disp PC R0 Absolute Addresses As with word and longword literals absolute addresses must also be stored in a table in main memory The value of the absolute address is transferred to a register and the operand access is specified by in...

Page 47: ... Rn Register indirect with post increment Rn Effective address is register Rn contents A constant is added to Rn after instruction execution 1 for a byte operand 2 for a word operand 4 for a longword operand Rn Rn 1 2 4 Rn 1 2 4 Rn After instruction execution Byte Rn 1 Rn Word Rn 2 Rn Longword Rn 4 Rn Register indirect with pre decrement Rn Effective address is register Rn contents decremented by ...

Page 48: ...extended Rn disp 1 2 4 Byte Rn disp Word Rn disp 2 Longword Rn disp 4 Indexed register indirect R0 Rn Effective address is sum of register Rn and R0 contents Rn R0 Rn R0 Rn R0 GBR indirect with displacement disp 8 GBR Effective address is register GBR contents with 8 bit displacement disp added After disp is zero extended it is multiplied by 1 byte 2 word or 4 longword according to the operand siz...

Page 49: ...and size With a longword operand the lower 2 bits of PC are masked PC H FFFFFFFC 2 4 x for longword disp zero extended PC disp 2 or PC H FFFFFFFC disp 4 Word PC disp 2 Longword PC H FFFF FFFC disp 4 PC relative disp 8 Effective address is register PC contents with 8 bit displacement disp added after being sign extended and multiplied by 2 PC 2 disp sign extended PC disp 2 PC disp 2 disp 12 Effecti...

Page 50: ...ruction is sign extended imm 8 8 bit immediate data imm of TRAPA instruction is zero extended and multiplied by 4 Note For the addressing modes below that use a displacement disp the assembler descriptions in this manual show the value before scaling 1 2 or 4 is performed according to the operand size This is done to clarify the operation of the IC Refer to the relevant assembler notation rules fo...

Page 51: ...rce Operand Destination Operand Instruction Example 0 format xxxx xxxx xxxx xxxx 15 0 NOP n format xxxx xxxx xxxx nnnn 15 0 nnnn register direct MOVT Rn Control register or system register nnnn register direct STS MACH Rn Control register or system register nnnn register indirect with pre decrement STC L SR Rn m format xxxx mmmm xxxx xxxx 15 0 mmmm register direct Control register or system regist...

Page 52: ...gister indirect with post increment multiply and accumulate operation MACH MACL MAC W Rm Rn mmmm register indirect with post increment nnnn register direct MOV L Rm Rn mmmm register direct nnnn register indirect with pre decrement MOV L Rm Rn mmmm register direct nnnn indexed register indirect MOV L Rm R0 Rn md format xxxx dddd 15 0 mmmm xxxx mmmmdddd register indirect with displacement R0 registe...

Page 53: ...displacement MOV L R0 disp GBR dddddddd PC relative with displacement R0 register direct MOVA disp PC R0 dddddddd PC relative BF label d12 format dddd xxxx 15 0 dddd dddd dddddddddddd PC relative BRA label label disp PC nd8 format dddd nnnn xxxx 15 0 dddd dddddddd PC relative with displacement nnnn register direct MOV L disp PC Rn i format i i i i xxxx 15 0 xxxx i i i i iiiiiiii immediate Indexed ...

Page 54: ...Swap of upper and lower bytes XTRCT Extraction of middle of linked registers Arithmetic 21 ADD Binary addition 33 operations ADDC Binary addition with carry ADDV Binary addition with overflow check CMP cond Comparison DIV1 Division DIV0S Initialization of signed division DIV0U Initialization of unsigned division DMULS Signed double precision multiplication DMULU Unsigned double precision multiplic...

Page 55: ...y subtraction with underflow check Logic 6 AND Logical AND 14 operations NOT Bit inversion OR Logical OR TAS Memory test and bit set TST Logical AND and T bit set XOR Exclusive OR Shift 12 ROTL One bit left rotation 16 ROTR One bit right rotation ROTCL One bit left rotation with T bit ROTCR One bit right rotation with T bit SHAL One bit arithmetic left shift SHAR One bit arithmetic right shift SHL...

Page 56: ...h to subroutine procedure JMP Unconditional branch JSR Branch to subroutine procedure RTS Return from subroutine procedure System 15 CLRMAC MAC register clear 75 control CLRT Clear T bit CLRS Clear S bit LDC Load to control register LDS Load to system register LDTLB Load PTE to TLB NOP No operation PREF Prefetch data to cache RTE Return from exception handling SETS Set S bit SETT Set T bit SLEEP S...

Page 57: ...ts in SR Logical AND of each bit Logical OR of each bit Exclusive OR of each bit Logical NOT of each bit n bit shift Privileged mode Indicates whether privileged mode applies Execution cycles Value when no wait states are inserted The execution cycles listed in the table are minimums The actual number of cycles may be increased in cases such as the followsing 1 When contention occurs between instr...

Page 58: ...n extension Rn 0110nnnnmmmm0001 1 MOV L Rm Rn Rm Rn 0110nnnnmmmm0010 1 MOV B Rm Rn Rn 1 Rn Rm Rn 0010nnnnmmmm0100 1 MOV W Rm Rn Rn 2 Rn Rm Rn 0010nnnnmmmm0101 1 MOV L Rm Rn Rn 4 Rn Rm Rn 0010nnnnmmmm0110 1 MOV B Rm Rn Rm Sign extension Rn Rm 1 Rm 0110nnnnmmmm0100 1 MOV W Rm Rn Rm Sign extension Rn Rm 2 Rm 0110nnnnmmmm0101 1 MOV L Rm Rn Rm Rn Rm 4 Rm 0110nnnnmmmm0110 1 MOV B R0 disp Rn R0 disp Rn 1...

Page 59: ... GBR 11000000dddddddd 1 MOV W R0 disp GBR R0 disp 2 GBR 11000001dddddddd 1 MOV L R0 disp GBR R0 disp 4 GBR 11000010dddddddd 1 MOV B disp GBR R0 disp GBR Sign extension R0 11000100dddddddd 1 MOV W disp GBR R0 disp 2 GBR Sign extension R0 11000101dddddddd 1 MOV L disp GBR R0 disp 4 GBR R0 11000110dddddddd 1 MOVA disp PC R0 disp 4 PC R0 11000111dddddddd 1 MOVT Rn T Rn 0000nnnn00101001 1 SWAP B Rm Rn ...

Page 60: ...signed data 1 T 0011nnnnmmmm0010 1 Comparison result CMP GE Rm Rn If Rn Rm with signed data 1 T 0011nnnnmmmm0011 1 Comparison result CMP HI Rm Rn If Rn Rm with unsigned data 1 T 0011nnnnmmmm0110 1 Comparison result CMP GT Rm Rn If Rn Rm with signed data 1 T 0011nnnnmmmm0111 1 Comparison result CMP PZ Rn If Rn 0 1 T 0100nnnn00010001 1 Comparison result CMP PL Rn If Rn 0 1 T 0100nnnn00010101 1 Compa...

Page 61: ...W Rm Rn A word in Rm is sign extended Rn 0110nnnnmmmm1111 1 EXTU B Rm Rn A byte in Rm is zero extended Rn 0110nnnnmmmm1100 1 EXTU W Rm Rn A word in Rm is zero extended Rn 0110nnnnmmmm1101 1 MAC L Rm Rn Signed operation of Rn Rm MAC MAC Rn 4 Rn Rm 4 Rm 32 32 64 64 bits 0000nnnnmmmm1111 2 to 5 MAC W Rm Rn Signed operation of Rn Rm MAC MAC Rn 2 Rn Rm 2 Rm 16 16 64 64 bits 0100nnnnmmmm1111 2 to 5 MUL ...

Page 62: ...ow T 0110nnnnmmmm1010 1 Borrow SUB Rm Rn Rn Rm Rn 0011nnnnmmmm1000 1 SUBC Rm Rn Rn Rm T Rn Borrow T 0011nnnnmmmm1010 1 Borrow SUBV Rm Rn Rn Rm Rn Underflow T 0011nnnnmmmm1011 1 Underflow Note The normal number of execution cycles is shown The value in parentheses is the number of cycles required in case of contention with the preceding or following instruction ...

Page 63: ... Rn 0010nnnnmmmm1011 1 OR imm R0 R0 imm R0 11001011iiiiiiii 1 OR B imm R0 GBR R0 GBR imm R0 GBR 11001111iiiiiiii 3 TAS B Rn If Rn is 0 1 T 1 MSB of Rn 0100nnnn00011011 3 Test result TST Rm Rn Rn Rm if the result is 0 1 T 0010nnnnmmmm1000 1 Test result TST imm R0 R0 imm if the result is 0 1 T 11001000iiiiiiii 1 Test result TST B imm R0 GBR R0 GBR imm if the result is 0 1 T 11001100iiiiiiii 3 Test r...

Page 64: ...SHAD Rm Rn Rn 0 Rn Rm Rn Rn 0 Rn Rm MSB Rn 0100nnnnmmmm1100 1 SHAL Rn T Rn 0 0100nnnn00100000 1 MSB SHAR Rn MSB Rn T 0100nnnn00100001 1 LSB SHLD Rm Rn Rn 0 Rn Rm Rn Rn 0 Rn Rm 0 Rn 0100nnnnmmmm1101 1 SHLL Rn T Rn 0 0100nnnn00000000 1 MSB SHLR Rn 0 Rn T 0100nnnn00000001 1 LSB SHLL2 Rn Rn 2 Rn 0100nnnn00001000 1 SHLR2 Rn Rn 2 Rn 0100nnnn00001001 1 SHLL8 Rn Rn 8 Rn 0100nnnn00011000 1 SHLR8 Rn Rn 8 Rn...

Page 65: ... nop 10001001dddddddd 3 1 BT S label Delayed branch If T 1 disp 2 PC PC if T 0 nop 10001101dddddddd 2 1 BRA label Delayed branch disp 2 PC PC 1010dddddddddddd 2 BRAF Rm Delayed branch Rm PC PC 0000mmmm00100011 2 BSR label Delayed branch PC PR disp 2 PC PC 1011dddddddddddd 2 BSRF Rm Delayed branch PC PR Rm PC PC 0000mmmm00000011 2 JMP Rm Delayed branch Rm PC 0100mmmm00101011 2 JSR Rm Delayed branch...

Page 66: ...3 LDC Rm R2_BANK Rm R2_BANK 0100mmmm10101110 3 LDC Rm R3_BANK Rm R3_BANK 0100mmmm10111110 3 LDC Rm R4_BANK Rm R4_BANK 0100mmmm11001110 3 LDC Rm R5_BANK Rm R5_BANK 0100mmmm11011110 3 LDC Rm R6_BANK Rm R6_BANK 0100mmmm11101110 3 LDC Rm R7_BANK Rm R7_BANK 0100mmmm11111110 3 LDC L Rm SR Rm SR Rm 4 Rm 0100mmmm00000111 7 LSB LDC L Rm GBR Rm GBR Rm 4 Rm 0100mmmm00010111 5 LDC L Rm VBR Rm VBR Rm 4 Rm 0100...

Page 67: ...010110 1 LDS L Rm PR Rm PR Rm 4 Rm 0100mmmm00100110 1 LDTLB PTEH PTEL TLB 0000000000111000 1 NOP No operation 0000000000001001 1 PREF Rm Rm cache 0000mmmm10000011 2 RTE Delayed branch SSR SR SPC PC 0000000000101011 4 SETS 1 S 0000000001011000 1 SETT 1 T 0000000000011000 1 1 SLEEP Sleep 0000000000011011 4 STC SR Rn SR Rn 0000nnnn00000010 1 STC GBR Rn GBR Rn 0000nnnn00010010 1 STC VBR Rn VBR Rn 0000...

Page 68: ...Rn Rn 4 Rn R0_BANK Rn 0100nnnn10000011 2 STC L R1_BANK Rn Rn 4 Rn R1_BANK Rn 0100nnnn10010011 2 STC L R2_BANK Rn Rn 4 Rn R2_BANK Rn 0100nnnn10100011 2 STC L R3_BANK Rn Rn 4 Rn R3_BANK Rn 0100nnnn10110011 2 STC L R4_BANK Rn Rn 4 Rn R4_BANK Rn 0100nnnn11000011 2 STC L R5_BANK Rn Rn 4 Rn R5_BANK Rn 0100nnnn11010011 2 STC L R6_BANK Rn Rn 4 Rn R6_BANK Rn 0100nnnn11100011 2 STC L R7_BANK Rn Rn 4 Rn R7_B...

Page 69: ...truction is also used by the next instruction 2 With the addressing modes using displacement disp listed below the assembler descriptions in this manual show the value before scaling 1 2 or 4 is performed This is done to clarify the operation of the chip For the actual assembler descriptions refer to the individual assembler notation rules disp 4 Rn Register indirect with displacement disp 8 Rn GB...

Page 70: ...D 1000 CLRT SETT CLRMAC LDTLB 0000 0000 01MD 1000 CLRS SETS 0000 0000 Fx 1001 NOP DIV0U 0000 0000 Fx 1010 0000 0000 Fx 1011 RTS SLEEP RTE 0000 Rn Fx 1000 0000 Rn Fx 1001 MOVT Rn 0000 Rn Fx 1010 STS MACH Rn STS MACL Rn STS PR Rn 0000 Rn Fx 1011 0000 Rn Rm 11MD MOV B R0 Rm Rn MOV W R0 Rm Rn MOV L R0 Rm Rn MAC L Rm Rn 0001 Rn Rm disp MOV L Rm disp 4 Rn 0010 Rn Rm 00MD MOV B Rm Rn MOV W Rm Rn MOV L Rm...

Page 71: ...0111 LDC L Rm R0_BANK LDC L R m R 1_ BANK LDC L Rm R2_BANK LDC L Rm R3_BANK 0100 Rm 11MD 0111 LDC L Rm R4_BANK LDC L Rm R5_BANK LDC L Rm R6_BANK LDC L Rm R7_BANK 0100 Rn Fx 1000 SHLL2 Rn SHLL8 Rn SHLL16 Rn 0100 Rn Fx 1001 SHLR2 Rn SHLR8 Rn SHLR16 Rn 0100 Rm Fx 1010 LDS Rm MACH LDS Rm MACL LDS Rm PR 0100 Rm Rn Fx 1011 JSR Rm TAS B Rn JMP Rm 0100 Rn Rm 1100 SHAD Rm Rn 0100 Rn Rm 1101 SHLD Rm Rn 0100...

Page 72: ...8 1001 Rn disp MOV W DISP 8 PC RN 1010 disp BRA label 12 1011 disp BSR label 12 1100 00MD imm disp MOV B R0 disp 8 GBR MOV W R0 disp 8 GBR MOV L R0 disp 8 GBR TRAPA imm 8 1100 01MD disp MOV B disp 8 GBR R0 MOV W disp 8 GBR R0 MOV L disp 8 GBR R0 MOVA disp 8 PC R0 1100 10MD imm TST imm 8 R0 AND imm 8 R0 XOR imm 8 R0 OR imm 8 R0 1100 11MD imm TST B imm 8 R0 GBR AND B imm 8 R0 GBR XOR B imm 8 R0 GBR ...

Page 73: ...he CPU s processor state flow is altered by a reset general exception or interrupt exception handling In the case of a reset the CPU branches to address H A0000000 and starts executing the user coded exception handling program In the case of a general exception or interrupt the program counter PC contents are saved in the saved program counter SPC and the status register SR contents are saved in t...

Page 74: ...t clearance SLEEP instruction with STBY bit set Interrupt Reset state Power down state SLEEP instruction with STBY bit cleared Bus request Bus request clearance Figure 2 8 Processor State Transitions 2 5 2 Processor Modes There are two processor modes privileged mode and user mode The processor mode is determined by the processor mode bit MD in the status register SR User mode is selected when the...

Page 75: ...56 ...

Page 76: ...tially more virtual memory than physical memory is provided and the process is mapped onto this virtual memory Thus a process only has to consider operation in virtual memory Mapping from virtual memory to physical memory is handled by the MMU The MMU is normally controlled by the operating system switching physical memory to allow the virtual memory required by a process to be mapped onto physica...

Page 77: ... translation information Unlike cache memory however if address translation fails that is if an exception is generated switching of address translation information is normally performed by software This makes it possible for memory management to be performed flexibly by software The MMU has two methods of mapping from virtual memory to physical memory a paging method using fixed length address tra...

Page 78: ... memory MMU 1 2 3 4 Process 1 Physical memory Process 1 Virtual memory MMU Physical memory Process 1 Process 2 Process 3 Physical memory Process 1 Process 2 Process 3 Virtual memory Physical memory Figure 3 1 MMU Functions ...

Page 79: ... or U0 area turn off the C bit in the TLB for the corresponding page and select no caching 2 P1 Area The P1 area can be accessed through the cache The mapping of this area is fixed within the physical address space H 00000000 to H 1FFFFFFF When CCR CE is 1 this area is accessed through the cache The caching mode copy back or write through is selected by the setting of CCR CB 3 P2 and P4 Areas Acce...

Page 80: ...dress error Area U0 Area P0 External memory space Area P1 Area P2 Area P3 Area P4 Area 0 Area 1 Area 2 Area 3 Area 4 Area 5 Area 6 Area 7 Privileged mode User mode Figure 3 2 Virtual Address Space MMUCR AT 1 ...

Page 81: ...ny of these registers via the P0 P3 or U0 areas the CCR and CE bits are cleared to 0 and select no caching 2 P1 Area The P1 area can be accessed through the cache When CCR CE is 1 this area is accessed through the cache The caching mode copy back or write through is selected by the setting of CCR CB 3 P2 and P4 Areas Access to the P2 and P4 areas through the cache is not possible 4 Uxg Area Access...

Page 82: ... units called pages Physical addresses are translated in page units Address translation tables in external memory hold information such as the physical address that corresponds to the virtual address and memory protection codes When an access to areas P1 or P2 occurs there is no TLB access and the physical address is defined uniquely by hardware If it belongs to area P0 P3 or U0 the TLB is searche...

Page 83: ...emory Mode and Multiple Virtual Memory Mode There are two virtual memory modes single virtual memory mode and multiple virtual memory mode In single virtual memory mode multiple processes run in parallel using the virtual address space exclusively and the physical address corresponding to a given virtual address is specified uniquely In multiple virtual memory mode multiple processes run in parall...

Page 84: ...of 1 The page table entry register high PTEH register residing at address H FFFFFFF0 which consists of a virtual page number VPN and ASID The VPN set is the VPN of the virtual address at which the exception is generated in case of an MMU exception or address error exception When the page size is 4 kbytes the VPN is the upper 20 bits of the virtual address but in this case the upper 22 bits of the ...

Page 85: ...bit Set to 1 for the single virtual memory mode cleared to 0 for the multiple virtual memory mode RC A 2 bit random counter automatically updated by hardware according to the following rules in the event of an MMU exception When a TLB miss exception occurs all TLB entry ways corresponding to the virtual address at which the exception occurred are checked and if all ways are valid 1 is added to RC ...

Page 86: ...ormation for the page which is the unit of address translation Figure 3 5 shows the overall TLB configuration The TLB is 4 way set associative with 128 entries There are 32 entries for each way Figure 3 6 shows the configuration of virtual addresses and TLB entries Entry 1 Address array Data array Entry 0 Entry 1 Entry 31 Way 0 3 Way 0 3 VPN 11 10 VPN 31 17 ASID 7 0 V Entry 0 Entry 31 PPN 28 10 PR...

Page 87: ...en processes SZ Page size bit 0 1 kbyte page 1 4 kbyte page V Valid bit Indicates whether entry is valid 0 Invalid 1 Valid Cleared to 0 by a power on reset Not affected by a manual reset PPN Physical page number Top 22 bits of physical address PPN bits 11 10 are not used in case of a 4 kbyte page Attention must be paid to the synonym problem in case of a 1 kbyte page see section 3 4 4 PR Set the m...

Page 88: ... 1 VPN bits 16 12 are EX ORed with ASID bits 4 0 to generate a 5 bit index number The second method is used to prevent lowered TLB efficiency that results when multiple processes run simultaneously in the same virtual address space multiple virtual memory and a specific entry is selected by indexing of each process Figures 3 7 and 3 8 show the indexing schemes 31 16 11 12 17 0 31 0 PTEH register V...

Page 89: ...nsure that TLB hits do not occur simultaneously in more than one way as hardware operation is not guaranteed if this occurs For example if there are two identical TLB entries with the same VPN and a setting is made such that a TLB hit is made only by a process with ASID H FF when one is in the shared state SH 1 and the other in the non shared state SH 0 then if the ASID in PTEH is set to H FF ther...

Page 90: ...ged SR MD 1 all process resources can be accessed This means that ASIDs are not compared when single virtual memory is supported and privileged mode is engaged The objects of address comparison are shown in figure 3 9 Bits compared VPN 31 17 VPN 11 10 SZ 0 Yes No Yes 1 kbyte No 4 kbytes Bits compared VPN 31 17 Bits compared VPN 31 17 VPN 11 10 ASID 7 0 SZ 0 Yes 1 kbyte No 4 kbytes Bits compared VP...

Page 91: ...ged and user modes and is used to protect memory Attempts at nonpermitted accesses result in TLB protection violation exceptions Access states designated by the D C and PR bits are shown in table 3 2 Table 3 2 Access States Designated by D C and PR Bits Privileged Mode User Mode Reading Writing Reading Writing D bit 0 Permitted Initial page write exception Permitted Initial page write exception 1 ...

Page 92: ...n the MMU disabled state with the AT bit cleared to 0 use in the disabled state must be avoided with software that does not use the MMU 2 TLB entry recording deletion and reading TLB entry recording can be done in two ways by using the LDTLB instruction or by writing directly to the memory mapped TLB For TLB entry deletion and reading the memory allocation TLB can be accessed See section 3 4 3 MMU...

Page 93: ...e exception is set in PTEH by hardware The way is set in the RC bit of MMUCR for each exception according to the rules shown in figure 3 4 Consequently if the LDTLB instruction is issued after setting only PTEL in the MMU exception processing routine TLB entry recording is possible Any TLB entry can be updated by software rewriting of PTEH and the RC bits in MMUCR As the LDTLB instruction changes ...

Page 94: ...SV 0 0 RC 0 TF IX AT PPN 0 V 0 PR SZ C D SH 0 Write PPN 31 10 PR 1 0 SZ C D SH Write Data array Address array Way selection Way 0 to 3 31 9 0 MMUCR Index 31 17 12 10 8 0 PTEH register 31 10 0 PTEL register 0 31 Figure 3 10 Operation of LDTLB Instruction ...

Page 95: ...quently the physical address is recorded in a different entry from that of the index number indicated by the physical address in the cache address array For example assume that with 1 kbyte page TLB entries TLB entries for which the following translation has been performed are recorded in two TLBs Virtual address 1 H 00000000 physical address H 00000400 Virtual address 2 H 00000400 physical addres...

Page 96: ... 31 PPN 0 Offset Virtual address 11 4 Physical address 31 10 Cache address array When using a 1 kbyte page Virtual address 31 VPN 0 10 11 Offset Physical address 31 PPN 0 10 11 Offset Virtual address 11 4 Physical address 31 10 Cache address array 9 9 12 1110 Figure 3 11 Synonym Problem ...

Page 97: ... of the exception are written to the save status register SSR 6 The mode MD bit in SR is set to 1 to place the SH7709S in the privileged mode 7 The block BL bit in SR is set to 1 to mask any further exception requests 8 The register bank RB bit in SR is set to 1 9 The random counter RC field in the MMU control register MMUCR is incremented by 1 when all ways are checked for the TLB entry correspon...

Page 98: ...e virtual address causing the exception is written to the TEA register 3 Either exception code H 0A0 for a load access or H 0C0 for a store access is written to the EXPEVT register 4 The PC value indicating the address of the instruction in which the exception occurred is written into SPC if the exception occurred in a delay slot the PC value indicating the address of the related delayed branch in...

Page 99: ...f the exception are written into SSR 7 The mode MD bit in SR is set to 1 to place the SH7709S in the privileged mode 8 The block BL bit in SR is set to 1 to mask any further exception requests 9 The register bank RB bit in SR is set to 1 10 Execution branches to the address obtained by adding the value of the VBR contents and H 00000100 and the TLB protection violation exception handler starts Sof...

Page 100: ... SR at the time of the exception are written to SSR 6 The MD bit in SR is set to 1 to place the SH7709S in the privileged mode 7 The BL bit in SR is set to 1 to mask any further exception requests 8 The register bank RB bit in SR is set to 1 9 The way that caused the exception is set in the RC field in MMUCR 10 Execution branches to the address obtained by adding the value of the VBR contents and ...

Page 101: ... match No Yes Yes Yes Yes User or privileged D 1 C 1 V 1 No No User mode Privileged mode No No TLB protection violation exception TLB protection violation Cache access W 00 01 10 01 11 00 10 11 W W W R R R R R W R W R W R W TLB invalid exception Memory access No noncacheable Yes cacheable Figure 3 12 MMU Exception Generation Flowchart ...

Page 102: ...n the instruction fetch mode ID EX MA WB ID EX MA WB ID EX MA WB NOP NOP IF ID EX MA WB Exception source stage IF ID EX MA WB NOP MMU exception handler Handler transition processing Instruction fetch Instruction decode Instruction execution Memory access Write back No operation IF Figure 3 13 MMU Exception Signals in Instruction Fetch ...

Page 103: ...ddress array VPN V bit and ASID is mapped to H F2000000 to H F2FFFFFF and the TLB data array PPN PR SZ CD S and H bits is mapped to H F3000000 to H F3FFFFFF It is also possible to access the V bits in the address array from the data array Only longword access is possible for both the address and data arrays The address array is mapped to H F2000000 to H F2FFFFFF To access the address array the 32 ...

Page 104: ...2 bit data field for write operations must be specified These are specified in the general register The address section specifies information for selecting the entry to be accessed the data section specifies the longword data to be written to the data array figure 3 15 2 In the address section specify the entry address for selecting the entry bits 16 12 W for selecting the way bits 9 8 00 is way 0...

Page 105: ...7 6 0 0 ASID 0 V VPN 0 0 17 VPN 16 12 10 11 VPN 31 ASID 8 9 7 0 V D C SH PR SZ VPN V W Virtual page number Valid bit Way 00 Way 0 01 Way 1 10 Way 2 11 Way 3 ASID Address space identifier Don t care bit PPN PR C SH VPN X W Physical page number Protection key field Cacheable bit Share status bit Virtual page number 0 for read don t care bit for write Way 00 Way 0 01 Way 1 10 Way 2 11 Way 3 V SZ D Va...

Page 106: ...entry selected by the VPN 16 12 B 1 0011 index the V bit of the hit way is cleared to 0 achieving invalidation MOV L R0 R1 Reading the Data of a Specific Entry This example reads the data section of a specific TLB entry The bit order indicated in the data field in figure 3 15 2 is read R0 specifies the address and the data section of a selected entry is read to R1 R1 H F300 4300 VPN 16 12 B 00100 ...

Page 107: ...88 ...

Page 108: ...ware Table 4 1 Register Configuration Register Abbr R W Size Initial Value Address TRAPA exception register TRA R W Longword Undefined H FFFFFFD0 Exception event register EXPEVT R W Longword Power on reset H 000 Manual reset H 020 1 H FFFFFFD4 Interrupt event register INTEVT R W Longword Undefined H FFFFFFD8 Interrupt event register2 INTEVT2 R Longword Undefined H 04000000 H A4000000 2 Notes 1 H 0...

Page 109: ...ixed at H A0000000 The other three events are assigned offsets from the vector base address by software Translation look aside buffer TLB miss exceptions have an offset from the vector base address of H 00000400 The vector address offset for general exception events other than TLB miss exceptions is H 00000100 The interrupt vector address offset is H 00000600 The vector base address is loaded into...

Page 110: ... events TLB miss 2 2 H 00000400 TLB invalid instruction access 2 3 H 00000100 TLB protection violation instruction access 2 4 H 00000100 Reserved instruction code exception 2 5 H 00000100 Illegal slot instruction exception 2 5 H 00000100 CPU address error data access 2 6 H 00000100 TLB miss data access not in repeat loop 2 7 H 00000400 TLB invalid data access 2 8 H 00000100 TLB protection violatio...

Page 111: ...3 Acceptance of Exceptions Processor resets and interrupts are asynchronous events unrelated to the instruction stream All exception events are prioritized to establish an acceptance order whenever two or more exception events occur simultaneously The power on reset and manual reset do not occur simultaneously so they have the same priority All general exception events occur in a relative order in...

Page 112: ... Order TLB miss instruction n 1 TLB miss instruction n and RIE instruction n 2 simultaneous detection Detection Order Figure 4 2 Example of Acceptance Order of General Exceptions All exceptions other than a reset are detected in the pipeline ID stage and accepted at instruction boundaries However an exception is not accepted between a delayed branch instruction and the delay slot A re execution ty...

Page 113: ...nal trap TRAPA instruction Table 4 3 Exception Codes Exception Type Exception Event Exception Code Reset Power on reset H 000 Manual reset H 020 H UDI reset H 000 General exception events TLB miss invalid read H 040 TLB miss invalid write H 060 Initial page write H 080 TLB protection violation read H 0A0 TLB protection violation write H 0C0 CPU address error read H 0E0 CPU address error write H 10...

Page 114: ... is 1 the CPU s internal registers are set to their post reset state other module registers retain their contents prior to the general exception and a branch is made to the same address H A0000000 as for a reset If a general interrupt occurs when BL 1 the request is masked held pending and not accepted until the BL bit is cleared to 0 by software For reentrant exception handling SPC and SSR must b...

Page 115: ... register INTEVT resides at address H FFFFFFD8 and contains a 12 bit interrupt exception code or a code indicating the interrupt priority Which is set when an interrupt occurs depends on the interrupt source see tables 6 4 and 6 5 Interrupt Exception Sources and Priority The exception code or interrupt priority code is set automatically by hardware when an exception occurs INTEVT can also be modif...

Page 116: ... H 000 in a power on reset or H 020 in a manual reset is written to bits 11 0 of the EXPEVT register to identify the exception event 5 Instruction execution jumps to the user written exception handler at address H A0000000 4 4 2 Interrupts An interrupt handling request is accepted on completion of the current instruction The interrupt acceptance sequence consists of the following operations 1 The ...

Page 117: ...rocessor operations 4 5 1 Resets Power On Reset Conditions RESETP low Operations EXPEVT set to H 000 VBR and SR initialized branch to PC H A0000000 Initialization sets the VBR register to H 0000000 In SR the MD RB and BL bits are set to 1 and the interrupt mask bits I3 to I0 are set to 1111 The CPU and on chip peripheral modules are initialized See the register descriptions in the relevant section...

Page 118: ... reset RESETM Low Initialized H UDI reset H UDI reset command input Initialized 4 5 2 General Exceptions TLB miss exception Conditions Comparison of TLB addresses shows no address match Operations The virtual address 32 bits that caused the exception is set in TEA and the corresponding virtual page number 22 bits is set in PTEH 31 10 The ASID of PTEH indicates the ASID at the time the exception oc...

Page 119: ... of PTEH indicates the ASID at the time the exception occurred The way that generated the exception is set in the RC bit in MMUCR PC and SR of the instruction that generated the exception are saved to SPC and SSR respectively H 080 is set in EXPEVT The BL MD and RB bits in SR are set to 1 and a branch occurs to PC VBR H 0100 TLB protection exception Conditions When a hit access violates the TLB pr...

Page 120: ... from the time when the TRAPA instruction was executing is saved to SSR The 8 bit immediate value in the TRAPA instruction is quadrupled and set in TRA 9 0 H 160 is set in EXPEVT The BL MD and RB bits in SR are set to 1 and a branch occurs to PC VBR H 0100 Illegal general instruction exception Conditions a When undefined code not in a delay slot is decoded Delay branch instructions JMP JSR BRA BRA...

Page 121: ...s 1 NMI Conditions NMI pin edge detection Operations PC and SR after the instruction that receives the interrupt are saved to SPC and SSR respectively H 01C0 is set to INTEVT and INTEVT2 The BL MD and RB bits of the SR are set to 1 and a branch occurs to PC VBR H 0600 This interrupt is not masked by SR IMASK and is accepted with top priority when the BL bit in SR is 0 When the BL bit is 1 the inte...

Page 122: ...1 and a branch occurs to VBR H 0600 The received level is not set in the interrupt mask bits in SR See section 6 Interrupt Controller INTC for more information 5 On Chip Peripheral Interrupts Conditions The interrupt mask bits in SR are lower than the on chip module TMU RTC SCI0 SCI1 SCI2 A D DMAC CPG REF interrupt level and the BL bit in SR is 0 The interrupt is accepted at an instruction boundar...

Page 123: ... from general reset processing no signal is output from RESETOUT STATUS0 and STATUS1 SPC when exception occurs The PC saved to SPC when an exception occurs is as shown below Re executing type exceptions PC of the instruction that caused the exception is set in SPC and re executed after return from exception handling If the exception occurred in a delay slot however PC of the immediately prior dela...

Page 124: ... 1 ensure that a TLB related exception or address error does not occur at an LDC instruction that updates the SR register and the following instruction This will be identified as the occurrence of multiple exceptions and may initiate reset processing ...

Page 125: ...106 ...

Page 126: ...lectable Replacement method Least recently used LRU algorithm 5 1 2 Cache Structure The cache mixes data and instructions and uses a 4 way set associative system It is composed of four ways banks each of which is divided into an address section and a data section Each of the address and data sections is divided into 256 entries The data section of the entry is called a line Each line consists of 1...

Page 127: ...but are not initialized by a manual reset The tag address is not initialized by either a power on or manual reset Data Array Holds a 16 byte instruction or data Entries are registered in the cache in line units 16 bytes The data array is not initialized by a power on or manual reset LRU With the 4 way set associative system up to four instructions or data with the same entry address address bits 1...

Page 128: ...Size Cache control register CCR R W H 00000000 H FFFFFFEC 32 bit Cache control register 2 CCR2 R W H 00000000 H 040000B0 H A40000B0 32 bit Note When address translation by the MMU does not apply the address in parentheses should be used 5 2 Register Description 5 2 1 Cache Control Register CCR The cache is enabled or disabled using the CE bit of the cache control register CCR CCR also has a CF bit...

Page 129: ...nstruction PREF is executed in cache locking mode and a cache miss occurs one line size of data pointed to by Rn is brought to cache according to the setting of bits 9 and 8 W3LOAD and W3LOCK and bits 1 and 0 W2LOAD and W2LOCK in CCR2 Table 5 4 shows the relationship between the bit setting and way to be replaced when a prefetch instruction is executed When a prefetch instruction is executed and t...

Page 130: ...igh at the same time Reserved bits Figure 5 3 CCR2 Register Configuration Whenever CCR2 bit 8 W3LOCK or bit 0 W2LOCK is high the cache is locked The locked data will not be overwritten unless W3LOCK bit and W2LOCK bit are reset or the PREF condition during DSP mode matched During cache locking mode the LRU in table 5 2 will be replaced by tables 5 4 to 5 8 Table 5 4 Way Replacement when PREF Instr...

Page 131: ...0100 100000 100001 110000 110100 3 000011 000110 000111 001011 001111 010110 011110 011111 1 101001 101011 111000 111001 111011 111100 111110 111111 0 Table 5 7 LRU and Way Replacement when W3LOCK 1 LRU 5 0 Way to be Replaced 000000 000001 000011 001011 100000 100001 101001 101011 2 000100 000110 000111 001111 010100 010110 011110 011111 1 110000 110100 111000 111001 111011 111100 111110 111111 0 ...

Page 132: ...sing bits 11 4 of the address virtual of the access to memory and the address tag of that entry is read In parallel to reading of the address tag the virtual address is translated to a physical address in the MMU The physical address after translation and the physical address read from the address section are compared The address comparison uses all four ways When the comparison shows a match and ...

Page 133: ... 11 4 3 2 1 0 Virtual address CMP0 CMP1 CMP2 CMP3 Physical address CMP0 Comparison circuit 0 CMP1 Comparison circuit 1 CMP2 Comparison circuit 2 CMP3 Comparison circuit 3 Hit signal 1 Entry selection Longword LW selection MMU Figure 5 4 Cache Search Scheme Normal Mode ...

Page 134: ...en is set to 1 Writing occurs only to the cache no external memory write cycle is issued In the write through mode the data is written to the cache and an external memory write cycle is issued Write Miss In the write back mode an external write cycle starts when a write miss occurs and the entry is updated The way to be replaced is shown in table 5 5 When the U bit of the entry to be replaced is 1...

Page 135: ...F1000000 to H F1FFFFFF Only longword can be used as the access size for the address array and data array and instruction fetches cannot be performed 5 4 1 Address Array The address array is mapped to H F0000000 to H F0FFFFFF The 32 bit address field for read write accessed and 32 bit data field for write access must be specified to access an element of the address array The address field specifies...

Page 136: ...e place and the result is no operation This operation is used to invalidate a specific entry Write back will take place when the U bit of the entry that received a hit is 1 Note that when a 0 is written to the V bit a 0 should always be written to the U bit of the same entry too 5 4 2 Data Array The address array is mapped to H F1000000 to H F1FFFFFF To access an element of the data array the 32 b...

Page 137: ...ead access Write access Data specification both read and write accesses 2 Data array access both read and write accesses Address specification 31 24 23 14 13 12 11 4 3 0 1111 0000 W Entry address 31 24 23 14 13 12 11 4 3 0 1111 0000 W Entry address 2 A 31 30 29 10 4 3 0 LRU 2 X 0 0 0 X 9 Address tag 28 10 U V 1 31 24 23 14 13 12 11 4 3 0 1111 0001 W Entry address 0 0 1 2 L Data specification 31 0 ...

Page 138: ...ry at that address If no match is found no operation is carried out If the entry s U bit is 1 at that time the entry is written back R0 H 0110 0010 VPN B 0000 0001 0001 0000 0000 00 U 0 V 0 R1 H F000 0088 Address array access Entry B 00001000 A 1 MOV L R0 R1 2 Reading Data from a Specific Entry This example reads the data section of a specific entry The longword in the data field of the data array...

Page 139: ...120 ...

Page 140: ...y registers the priorities of on chip peripheral module IRQ and PINT interrupts can be selected from 16 levels for individual request sources NMI noise canceler function An NMI input level bit indicates the NMI pin state By reading this bit in the interrupt exception service routine the pin state can be checked enabling it to be used as a noise canceler External devices can be notified that an int...

Page 141: ...equests in the bus state controller Interrupt control register Interrupt priority registers A E Status register Direct memory access controller Analog to digital converter Hitachi user debugging interface Legend TMU RTC SCI IrDA SCIF WDT REF ICR IPRA IPRE SR DMAC ADC H UDI Interrupt request SCIF TMU Interrupt request Interrupt request IPR CPU Internal bus Bus interface 2 1 0 Interrupt request Inte...

Page 142: ... interrupt mask bits in SR Interrupt input pins IRQ5 IRQ0 IRL3 IRL0 IRLS3 IRLS0 I Input of interrupt request signals maskable by the interrupt mask bits in SR Port interrupt input pins PINT0 PINT15 I Input of port interrupt request signals maskable by the interrupt mask bits in SR Bus request output pin IRQOUT O Output of signal that notifies external devices that an interrupt source or memory ref...

Page 143: ... Interrupt priority register B IPRB R W H 0000 H FFFFFEE4 16 Interrupt priority register C IPRC R W H 0000 H 04000016 H A4000016 3 16 Interrupt priority register D IPRD R W H 0000 H 04000018 H A4000018 3 16 Interrupt priority register E IPRE R W H 0000 H 0400001A H A400001A 3 16 Interrupt request register 0 IRR0 R W H 00 H 04000004 H A4000004 3 8 Interrupt request register 1 IRR1 R H 00 H 04000006...

Page 144: ...ly NMI interrupts are accepted the SPC register and SSR register are updated by the NMI interrupt handler making it impossible to return to the original processing from exception handling initiated prior to the NMI interrupt Use should therefore be restricted to cases where return is not necessary It is possible to wake the chip up from the standby state with an NMI interrupt except when the MAI b...

Page 145: ... 1 ICR1 are both 1 The priority level is the higher level indicated by pins IRL3 IRL0 and IRLS3 IRLS0 An IRL3 IRL0 IRLS3 IRLS0 value of 0 0000 indicates the highest level interrupt request interrupt priority level 15 A value of 15 1111 indicates no interrupt request interrupt priority level 0 Figure 6 2 shows an example of IRL interrupt connection Table 6 3 shows IRL IRLS pins and interrupt levels...

Page 146: ...t in and the IRL interrupt is not detected unless the levels sampled at every peripheral module clock cycle remain unchanged for two consecutive cycles so that no transient level on the IRL IRLS pin change is detected In standby mode as the peripheral clock is stopped noise cancellation is performed using the 32 kHz clock for the RTC instead Therefore when the RTC is not used interruption by means...

Page 147: ...me clock RTC Serial communication interfaces SCI IrDA SCIF Bus state controller BSC Watchdog timer WDT Direct memory access controller DMAC Analog to digital converter ADC Hitachi user debugging interface H UDI Not every interrupt source is assigned a different interrupt vector Sources are reflected in the interrupt event registers INTEVT and INTEVT2 It is easy to identify sources by using the val...

Page 148: ...s offset at the start of the interrupt service routine and branched to in order to identify the interrupt source The priority of the on chip peripheral module IRQ and PINT interrupts is set within priority levels 0 15 as required by using interrupt priority registers A E IPRA IPRE The priority of the on chip peripheral module IRQ and PINT interrupts is set to 0 by a reset When the priorities of mu...

Page 149: ...H 200 3C0 H 6A0 0 15 0 IPRD 7 4 PINT PINT0 7 H 200 3C0 H 700 0 15 0 IPRD 15 12 PINT8 15 H 200 3C0 H 720 0 15 0 IPRD 11 8 DMAC DEI0 H 200 3C0 H 800 0 15 0 IPRE 15 12 High DEI1 H 200 3C0 H 820 DEI2 H 200 3C0 H 840 DEI3 H 200 3C0 H 860 Low IrDA ERI1 H 200 3C0 H 880 0 15 0 IPRE 11 8 High RXI1 H 200 3C0 H 8A0 BRI1 H 200 3C0 H 8C0 TXI1 H 200 3C0 H 8E0 Low SCIF ERI2 H 200 3C0 H 900 0 15 0 IPRE 7 4 High R...

Page 150: ...R Setting Unit Default Priority RTC ATI H 480 H 480 0 15 0 IPRA 3 0 High High PRI H 4A0 H 4A0 CUI H 4C0 H 4C0 Low SCI0 ERI H 4E0 H 4E0 0 15 0 IPRB 3 0 High RXI H 500 H 500 TXI H 520 H 520 TEI H 540 H 540 Low WDT ITI H 560 H 560 0 15 0 IPRB 15 12 REF RCMI H 580 H 580 0 15 0 IPRB 11 8 High ROVI H 5A0 H 5A0 Low Low Note The code corresponding to an interrupt level shown in table 6 6 is set ...

Page 151: ...H 2C0 9 IRL 3 0 2 0111 H 2E0 H 2E0 8 IRL 3 0 2 1000 H 300 H 300 7 IRL 3 0 2 1001 H 320 H 320 6 IRL 3 0 2 1010 H 340 H 340 5 IRL 3 0 2 1011 H 360 H 360 4 IRL 3 0 2 1100 H 380 H 380 3 IRL 3 0 2 1101 H 3A0 H 3A0 2 IRL 3 0 2 1110 H 3C0 H 3C0 1 IRQ IRQ4 H 200 3C0 1 H 680 0 15 0 IPRD 3 0 IRQ5 H 200 3C0 1 H 6A0 0 15 0 IPRD 7 4 PINT PINT0 7 H 200 3C0 1 H 700 0 15 0 IPRD 15 12 PINT8 15 H 200 3C0 1 H 720 0 ...

Page 152: ... TMU0 TUNI0 H 400 H 400 0 15 0 IPRA 15 12 TMU1 TUNI1 H 420 H 420 0 15 0 IPRA 11 8 TMU2 TUNI2 H 440 H 440 0 15 0 IPRA 7 4 High TICPI2 H 460 H 460 Low RTC ATI H 480 H 480 0 15 0 IPRA 3 0 High PRI H 4A0 H 4A0 CUI H 4C0 H 4C0 Low SCI0 ERI H 4E0 H 4E0 0 15 0 IPRB 7 4 High RXI H 500 H 500 TXI H 520 H 520 TEI H 540 H 540 Low WDT ITI H 560 H 560 0 15 0 IPRB 15 12 REF RCMI H 580 H 580 0 15 0 IPRB 11 8 High...

Page 153: ...134 Table 6 6 Interrupt Levels and INTEVT Codes Interrupt level INTEVT Code 15 H 200 14 H 220 13 H 240 12 H 260 11 H 280 10 H 2A0 9 H 2C0 8 H 2E0 7 H 300 6 H 320 5 H 340 4 H 360 3 H 380 2 H 3A0 1 H 3C0 ...

Page 154: ...e 6 7 lists the relationship between the interrupt sources and the IPRA IPRE bits Table 6 7 Interrupt Request Sources and IPRA IPRE Register Bits 15 to 12 Bits 11 to 8 Bits 7 to 4 Bits 3 to 0 IPRA TMU0 TMU1 TMU2 RTC IPRB WDT REF SCI0 Reserved IPRC IRQ3 IRQ2 IRQ1 IRQ0 IPRD PINT0 to PINT7 PINT8 to PINT15 IRQ5 IRQ4 IPRE DMAC IrDA SCIF ADC Note Always read as 0 Only 0 should be written As shown in tab...

Page 155: ...R R R R R Note 1 when NMI input is high 0 when NMI input is low Bit 15 NMI Input Level NMIL Sets the level of the signal input at the NMI pin This bit can be read to determine the NMI pin level This bit cannot be modified Bit 15 NMIL Description 0 NMI input level is low 1 NMI input level is high Bit 8 NMI Edge Select NMIE Selects whether the falling or rising edge of the interrupt request signal a...

Page 156: ...rupt requests are masked while a low level is being input to the NMI pin Masks NMI interrupts in standby mode Bit 15 MAI Description 0 All interrupt requests are not masked when NMI pin is low level Initial value 1 All interrupt requests are masked when NMI pin is low level Bit 14 Interrupt Request Level Detect IRQLVL Selects whether the IRQ3 IRQ0 pins are used as four independent interrupt pins o...

Page 157: ... and 8 IRQ4 Sense Select IRQ41S IRQ40S Select whether the interrupt signal to the IRQ4 pin is detected at the rising edge at the falling edge or at the low level Bit 9 IRQ41S Bit 8 IRQ40S Description 0 0 An interrupt request is detected at IRQ4 input falling edge Initial value 1 An interrupt request is detected at IRQ4 input rising edge 1 0 An interrupt request is detected at IRQ4 input low level ...

Page 158: ...ted at the rising edge at the falling edge or at the low level Bit 3 IRQ11S Bit 2 IRQ10S Description 0 0 An interrupt request is detected at IRQ1 input falling edge Initial value 1 An interrupt request is detected at IRQ1 input rising edge 1 0 An interrupt request is detected at IRQ1 input low level 1 Reserved Bits 1 and 0 IRQ0 Sense Select IRQ01S IRQ00S Select whether the interrupt signal to the ...

Page 159: ...T8S Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 PINT7S PINT6S PINT5S PINT4S PINT3S PINT2S PINT1S PINT0S Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bits 15 to 0 PINT15 to PINT0 Sense Select PINT15S to PINT0S Select whether interrupt request signals to PINT15 to PINT0 are detected at the low level or high level Bit 15 0 PINT15S to PINT...

Page 160: ... 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 PINT7E PINT6E PINT5E PINT4E PINT3E PINT2E PINT1E PINT0E Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bits 15 to 0 PINT15 to PINT0 Interrupt Enable PINT15E to PINT0E Enable or diable interrupt request input to pins PINT15 to PINT0 Bit 15 0 PINT15E to PINT0E Description 0 PINT input interrupt requests disabled Init...

Page 161: ...T0R Indicates whether there is interrupt request input to pins PINT0 to PINT7 Bit 7 PINT0R Description 0 No interrupt request to pins PINT0 to PINT7 Initial value 1 Interrupt to pins PINT0 to PINT7 Bit 6 PINT8 to PINT15 Interrupt Request PINT1R Indicates whether there is interrupt request input to pins PINT8 to PINT15 Bit 6 PINT1R Description 0 No interrupt request input to pins PINT8 to PINT15 In...

Page 162: ...re is interrupt request input to the IRQ2 pin When edge detection mode is set for IRQ2 an interrupt request is cleared by clearing the IRQ2R bit Bit 2 IRQ2R Description 0 No interrupt request input to IRQ2 pin Initial value 1 Interrupt request input to IRQ2 pin Bit 1 IRQ1 Interrupt Request IRQ1R Indicates whether there is interrupt request input to the IRQ1 pin When edge detection mode is set for ...

Page 163: ...errupt request not generated Initial value 1 TXI1 interrupt request generated Bit 6 BRI1 Interrupt Request BRI1R Indicates whether a BRI1 IrDA interrupt request has been generated Bit 6 BRI1R Description 0 BRI1 interrupt request not generated Initial value 1 BRI1 interrupt request generated Bit 5 RXI1 Interrupt Request RXI1R Indicates whether an RXI1 IrDA interrupt request has been generated Bit 5...

Page 164: ...has been generated Bit 1 DEI1R Description 0 DEI1 interrupt request not generated Initial value 1 DEI1 interrupt request generated Bit 0 DEI0 Interrupt Request DEI0R Indicates whether a DEI0 DMAC interrupt request has been generated Bit 0 DEI0R Description 0 DEI0 interrupt request not generated Initial value 1 DEI0 interrupt request generated 6 3 8 Interrupt Request Register 2 IRR2 IRR2 is an 8 bi...

Page 165: ... 1 TXI2 interrupt request generated Bit 2 BRI2 Interrupt Request BRI2R Indicates whether a BRI2 SCIF interrupt request has been generated Bit 2 BRI2R Description 0 BRI2 interrupt request not generated Initial value 1 BRI2 interrupt request generated Bit 1 RXI2 Interrupt Request RXI2R Indicates whether an RXI2 SCIF interrupt request has been generated Bit 1 RXI2R Description 0 RXI2 interrupt reques...

Page 166: ...e peripheral clock Pφ The CPU receives an interrupt at a break in instructions 5 The interrupt source code is set in the interrupt event registers INTEVT and INTEVT2 6 The status register SR and program counter PC are saved to SSR and SPC respectively 7 The block bit BL mode bit MD and register bank bit RB in SR are set to 1 8 The CPU jumps to the start address of the interrupt handler the sum of ...

Page 167: ...s Yes Yes Yes Yes No No No No No No No No No No No No No ICR1 BLMSK 1 NMI NMI Level 15 interrupt IRQOUT low Set interrupt cause in INTEVT INTEVT2 Save SR to SSR save PC to SPC Set BL MD RB bits in SR to 1 Branch to exception handler I3 I0 level 14 or lower Level 14 interrupt I3 I0 level 13 or lower Level 1 interrupt I3 I0 level 0 Figure 6 3 Interrupt Operation Flowchart ...

Page 168: ... the interrupt 6 Execute the RTE instruction When these procedures are followed in order an interrupt of higher priority than the one being handled can be accepted after clearing BL in step 4 Figure 6 3 shows a sample interrupt operation flowchart 6 5 Interrupt Response Time The time from generation of an interrupt request until interrupt exception handling is performed and fetching of the first i...

Page 169: ...ion handling is kept waiting until the executing instruc tion ends If the number of instruc tion execution states is S 1 the maximum wait time is X S 1 However if BL is set to 1 by instru ction execution or by an exception interrupt exception handling is deferred until completion of an instruction that clears BL to 0 If the following instruction masks interrupt exception handling the handling may ...

Page 170: ...upplied to CPU Bcyc Duration of one CKIO cycle Pcyc Duration of one cycle of peripheral clock supplied to peripheral modules Notes 1 S also includes the memory access wait time The processing requiring the maximum execution time is LDC L Rm SR When the memory access is a cache hit this requires seven instruction execution cycles When the external access is performed the corresponding number of cyc...

Page 171: ... of interrupt handling IF Instruction fetch Instruction is fetched from memory in which program is stored ID Instruction decode Fetched instruction is decoded EX Instruction execution Data operation and address calculation are performed Overrun fetch First instruction of interrupt handler Figure 6 4 Example of Pipeline Operations when IRL Interrupt is Accepted ...

Page 172: ...with logical AND but not in the same bus cycle Address Compares 40 bits comprised of a 32 bit logical address prefixed with an ASID address Comparison bits are maskable in 32 bit units user can easily program it to mask addresses at bottom 12 bits 4 k page bottom 10 bits 1 k page or any size of page etc One of two address buses CPU address bus LAB cache address bus IAB can be selected Data only on...

Page 173: ... UBC Location CCN Location LDB IDB XDB YDB Access Control Legend BBRA Break bus cycle register A BARA Break address register A BAMRA Break address mask register A BASRA Break ASID register A BBRB Break bus cycle register B BARB Break address register B BAMRB Break address mask register B BASRB Break ASID register B BDRB Break data register B BDMRB Break data mask register B BETR Break execution ti...

Page 174: ...6 UBC Break data register B BDRB R W H 00000000 H FFFFFF90 32 UBC Break data mask register B BDMRB R W H 00000000 H FFFFFF94 32 UBC Break control register BRCR R W H 00000000 H FFFFFF98 32 UBC Execution count break register BETR R W H 0000 H FFFFFF9C 16 UBC Branch source register BRSR R Undefined 2 H FFFFFFAC 32 UBC Branch destination register BRDR R Undefined 2 H FFFFFFBC 32 UBC Break ASID regist...

Page 175: ... R W R W R W Bit 23 22 21 20 19 18 17 16 BAA23 BAA22 BAA21 BAA20 BAA19 BAA18 BAA17 BAA16 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 15 14 13 12 11 10 9 8 BAA15 BAA14 BAA13 BAA12 BAA11 BAA10 BAA9 BAA8 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 BAA7 BAA6 BAA5 BAA4 BAA3 BAA2 BAA1 BAA0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R...

Page 176: ...W R W R W R W R W R W R W Bit 15 14 13 12 11 10 9 8 BAMA15 BAMA14 BAMA13 BAMA12 BAMA11 BAMA10 BAMA9 BAMA8 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 BAMA7 BAMA6 BAMA5 BAMA4 BAMA3 BAMA2 BAMA1 BAMA0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bits 31 to 0 Break Address Mask Register A31 to A0 BAMA31 to BAMA0 Specifies bits masked in th...

Page 177: ...hould always be 0 Bits 7 and 6 CPU Cycle DMAC Cycle Select A CDA1 CDA0 Selects the CPU cycle or DMAC cycle as the bus cycle of the channel A break condition Bit 7 CDA1 Bit 6 CDA0 Description 0 0 Condition comparison is not performed Initial value 1 The break condition is the CPU cycle 1 0 The break condition is the DMAC cycle Don t care Bits 5 and 4 Instruction Fetch Data Access Select A IDA1 IDA0...

Page 178: ...the read cycle 1 0 The break condition is the write cycle 1 The break condition is the read cycle or write cycle Bits 1 and 0 Operand Size Select A SZA1 SZA0 Selects the operand size of the bus cycle for the channel A break condition Bit 1 SZA1 Bit 0 SZA0 Description 0 0 The break condition does not include operand size Initial value 1 The break condition is byte access 1 0 The break condition is ...

Page 179: ...nitial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 23 22 21 20 19 18 17 16 BAB23 BAB22 BAB21 BAB20 BAB19 BAB18 BAB17 BAB16 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 15 14 13 12 11 10 9 8 BAB15 BAB14 BAB13 BAB12 BAB11 BAB10 BAB9 BAB8 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 BAB7 BAB6 BAB5 BAB4 BAB3 BAB2 BAB1 ...

Page 180: ... R W R W R W R W R W R W R W Bit 15 14 13 12 11 10 9 8 BAMB15 BAMB14 BAMB13 BAMB12 BAMB11 BAMB10 BAMB9 BAMB8 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 BAMB7 BAMB6 BAMB5 BAMB4 BAMB3 BAMB2 BAMB1 BAMB0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bits 31 to 0 Break Address Mask Register B31 to B0 BAMB31 to BAMB0 Specifies bits masked in...

Page 181: ...0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 23 22 21 20 19 18 17 16 BDB23 BDB22 BDB21 BDB20 BDB19 BDB18 BDB17 BDB16 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 15 14 13 12 11 10 9 8 BDB15 BDB14 BDB13 BDB12 BDB11 BDB10 BDB9 BDB8 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 BDB7 BDB6 BDB5 BDB4 BDB3 BDB2 BDB1 BDB0 Initial valu...

Page 182: ...ial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 BDMB7 BDMB6 BDMB5 BDMB4 BDMB3 BDMB2 BDMB1 BDMB0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bits 31 to 0 Break Data Mask Register B31 to B0 BDMB31 to BDMB0 Specifies bits in the channel B break data bits specified by BDRB BDB31 BDB0 Bits 31 to 0 BDMBn Description 0 Break data BDBn of channel B i...

Page 183: ...lways read as 0 Bits 7 and 6 CPU Cycle DMAC Cycle Select B CDB1 CDB0 Select the CPU cycle or DMAC cycle as the bus cycle of the channel B break condition Bit 7 CDB1 Bit 6 CDB0 Description 0 0 Condition comparison is not performed Initial value 1 The break condition is the CPU cycle 1 0 The break condition is the DMAC cycle Don t care Bits 5 and 4 Instruction Fetch Data Access Select B IDB1 IDB0 Se...

Page 184: ...the read cycle 1 0 The break condition is the write cycle 1 The break condition is the read cycle or write cycle Bits 1 and 0 Operand Size Select B SZB1 SZB0 Select the operand size of the bus cycle for the channel B break condition Bit 1 SZB1 Bit 0 SZB0 Description 0 0 The break condition does not include operand size Initial value 1 The break condition is byte access 1 0 The break condition is w...

Page 185: ...t read write register that has break conditions match flags and bits for setting a variety of break conditions A power on reset initializes BRCR to H 00000000 Bit 31 30 29 28 27 26 25 24 Initial value 0 0 0 0 0 0 0 0 R W R R R R R R R R Bit 23 22 21 20 19 18 17 16 BASMA BASMB Initial value 0 0 0 0 0 0 0 0 R W R R R W R W R R R R Bit 15 14 13 12 11 10 9 8 SCMFCA SCMFCBSCMFDA SCMFDB PCTE PCBA Initia...

Page 186: ...ecked Bits 19 to 16 Reserved These bits are always read as 0 The write value should always be 0 Bit 15 CPU Condition Match Flag A SCMFCA When the CPU bus cycle condition in the break conditions set for channel A is satisfied this flag is set to 1 not cleared to 0 In order to clear this flag write 0 into this bit Bit 15 SCMFCA Description 0 The CPU cycle condition for channel A does not match Initi...

Page 187: ... not match Initial value 1 The DMAC cycle condition for channel B matches Bit 11 PC Trace Enable PCTE Enables PC trace Bit 11 PCTE Description 0 Disables PC trace Initial value 1 Enables PC trace Bit 10 PC Break Select A PCBA Selects the break timing of the instruction fetch cycle for channel A as before or after instruction execution Bit 10 PCBA Description 0 PC break of channel A is set before i...

Page 188: ...escription 0 Channels A and B are compared under the independent condition Initial value 1 Channels A and B are compared under the sequential condition channel A then channel B Bit 2 to 1 Reserved These bits are always read as 0 The write value should always be 0 Bit 0 The Number of Execution Times Break Enable ETBE Enable the execution times break condition only on channel B If this bit is 1 brea...

Page 189: ... on reset initializes BETR to H 0000 When a break condition is satisfied it decreases the BETR A break is issued when the break condition is satisfied after the BETR becomes H 0001 Bits 15 12 are always read as 0 and 0 should always be written in these bits Bit 15 14 13 12 11 10 9 8 Initial value 0 0 0 0 0 0 0 0 R W R R R R R W R W R W R W Bit 7 6 5 4 3 2 1 0 Initial value 0 0 0 0 0 0 0 0 R W R W ...

Page 190: ... 26 25 24 SVF PID2 PID1 PID0 BSA27 BSA26 BSA25 BSA24 Initial value 0 R W R R R R R R R R Bit 23 22 21 20 19 18 17 16 BSA23 BSA22 BSA21 BSA20 BSA19 BSA18 BSA17 BSA16 Initial value R W R R R R R R R R Bit 15 14 13 12 11 10 9 8 BSA15 BSA14 BSA13 BSA12 BSA11 BSA10 BSA9 BSA8 Initial value R W R R R R R R R R Bit 7 6 5 4 3 2 1 0 BSA7 BSA6 BSA5 BSA4 BSA3 BSA2 BSA1 BSA0 Initial value R W R R R R R R R R N...

Page 191: ...tion fetch address BRDR has the flag bit that is set to 1 when branch occurs This flag bit is cleared to 0 when BRDR is read and also initialized by power on resets or manual resets Other bits are not initialized by resets Eight BRDR registers have queue structure and a stored register is shifted every branch Bit 31 30 29 28 27 26 25 24 DVF BDA27 BDA26 BDA25 BDA24 Initial value 0 R W R R R R R R R...

Page 192: ... ASID that serves as the break condition for channel A It is not initialized by resets Bit 7 6 5 4 3 2 1 0 BASA7 BASA6 BASA5 BASA4 BASA3 BASA2 BASA1 BASA0 Initial value R W R W R W R W R W R W R W R W R W Note Undefined value Bits 7 to 0 Break ASID A7 to 0 BASA7 to BASA0 These bits store the ASID bits 7 to 0 that is the channel A break condition 7 2 14 Break ASID Register B BASRB Break ASID regist...

Page 193: ...ed if even one of these groups is set with 00 The respective conditions are set in the bits of the BRCR 2 When the break conditions are satisfied the UBC sends a user break request to the interrupt controller The break type will be sent to CPU indicating the instruction fetch pre post instruction break data access break When conditions match up the CPU condition match flags SCMFCA and SCMFCB and D...

Page 194: ...ed and then the break is generated prior to the execution of the next instruction As with pre execution breaks this cannot be used with overrun fetch instructions When this kind of break is set for a delay branch instruction the break is generated at the instruction that then first accepts the break 4 When an instruction fetch cycle is set for channel B break data register B BDRB is ignored There ...

Page 195: ...h at the same time the sequential break is not issued 2 In sequential break specification a logical bus or internal bus can be selected and the execution times break condition can be also specified For example when the execution times break condition is specified the break condition is satisfied at channel B condition match with BETR H 0001 after channel A condition match 7 3 5 Value of Saved Prog...

Page 196: ... address before branch occurs is as follows IA BSA 2 PID Notes are needed when an interrupt a branch is issued before the branch destination instruction is executed In case of the next figure the instruction Exec executed immediately before branch is calculated by IA BSA 2 PID However when branch branch has delay slot and the destination address is 4n 2 address the address Dest which is specified ...

Page 197: ...e values in the queues are invalid The read pointer stay at the position before PCTE is switched but the trace pointer restart at the bottom of the queues 7 3 7 Usage Examples Break Condition Specified to a CPU Instruction Fetch Cycle 1 Register specifications BARA H 00000404 BAMRA H 00000000 BBRA H 0054 BARB H 00008010 BAMRB H 00000006 BBRB H 0054 BDRB H 00000000 BDMRB H 00000000 BRCR H 00300400 ...

Page 198: ...efore an instruction with ASID H 70 and address H 0003722E is executed 3 Register specifications BARA H 00027128 BAMRA H 00000000 BBRA H 005A BARB H 00031415 BAMRB H 00000000 BBRB H 0054 BDRB H 00000000 BDMRB H 00000000 BRCR H 00300000 Specified conditions Channel A channel B independent mode Channel A Address H 00027128 Address mask H 00000000 Bus cycle CPU instruction fetch before instruction ex...

Page 199: ...match Therefore no user break occurs 5 Register specifications BARA H 00000500 BAMRA H 00000000 BBRA H 0057 BARB H 00001000 BAMRB H 00000000 BBRB H 0057 BDRB H 00000000 BDMRB H 00000000 BRCR H 00300001 BETR H 0005 Specified conditions Channel A channel B independent mode Channel A Address H 00000500 Address mask H 00000000 Bus cycle CPU instruction fetch before instruction execution read longword ...

Page 200: ...xecuted or before instructions with ASID H 70 and addresses H 00008010 to H 00008016 are executed Break Condition Specified to a CPU Data Access Cycle 1 Register specifications BARA H 00123456 BAMRA H 00000000 BBRA H 0064 BARB H 000ABCDE BAMRB H 000000FF BBRB H 006A BDRB H 0000A512 BDMRB H 00000000 BRCR H 00000080 BASRA H 80 BASRB H 70 Specified conditions Channel A channel B independent mode Chan...

Page 201: ...ch occurs in a bus cycle after an A channel match occurs in another bus cycle in sequential break setting Therefore no condition match occurs even if a bus cycle in which an A channel match and a channel B match occur simultaneously is set b Since the CPU has a pipeline configuration the pipeline determines the order of an instruction fetch cycle and a memory cycle Therefore when a channel conditi...

Page 202: ...d TLB exceptions or errors occur in the same instruction The priority is as follows a Break and instruction fetch exceptions Instruction fetch exception occurs first b Break before execution and operand exception Break before execution occurs first c Break after execution and operand exception Operand exception occurs first ...

Page 203: ...184 ...

Page 204: ... has the following power down modes and function 1 Sleep mode 2 Standby mode 3 Module standby function TMU RTC SCI UBC DMAC DAC ADC SCIF and IrDA on chip peripheral modules 4 Hardware standby mode Table 8 1 shows the transition conditions for entering the modes from the program execution state as well as the CPU and peripheral module states in each mode and the procedures for canceling each mode ...

Page 205: ...terrupt 2 Reset Module standby function Set MSTP bit to 1 in STBCR Runs Runs or halts Held Held Specified module halts 2 Refresh 1 Clear MSTP bit to 0 2 Reset Hardware standby mode Drive CA pin low Halts Halts Held Held Halt 3 Held Self refresh Power on reset Notes 1 The RTC still runs if the START bit in RCR2 is set to 1 see section 13 Realtime Clock RTC The TMU still runs when output of the RTC ...

Page 206: ... Table 8 3 shows the control register configuration for the power down modes Table 8 3 Register Configuration Name Abbreviation R W Initial Value Access Size Address Standby control register STBCR R W H 00 H FFFFFF82 8 Standby control register 2 STBCR2 R W H 00 H FFFFFF88 8 Note Initialized by a power on reset This value is not initialized by a manual reset the current value is retained 8 2 Regist...

Page 207: ...hip peripheral module When the MSTP2 bit is set to 1 the supply of the clock to the TMU is halted Bit 2 MSTP2 Description 0 TMU runs Initial value 1 Clock supply to TMU is halted Bit 1 Module Standby 1 MSTP1 Specifies halting of the clock supply to the realtime clock RTC an on chip peripheral module When the MSTP1 bit is set to 1 the supply of the clock to the RTC is halted When the clock halts al...

Page 208: ...escription 0 Pins MD5 to MD0 are not changed in standby mode Initial value 1 Pins MD5 to MD0 are changed in standby mode Bit 5 Module Stop 8 MSTP8 Specifies halting of the clock supply to the user break controller UBC an on chip peripheral module When the MSTP8 bit is set to 1 the supply of the clock to the UBC is halted Bit 5 MSTP8 Description 0 UBC runs Initial value 1 Clock supply to UBC is hal...

Page 209: ...4 MSTP4 Specifies halting of the clock supply to the SCI2 SCIF serial communication interface with FIFO an on chip peripheral module When the MSTP1 bit is set to 1 the supply of the clock to SCI2 SCIF is halted Bit 1 MSTP4 Description 0 SCI2 SCIF runs Initial value 1 Clock supply to SCI2 SCIF halted Bit 0 Module Stop 3 MSTP3 Specifies halting of the clock supply to the SCI1 IrDA Infrared Data Asso...

Page 210: ...ATUS1 pin is set high and the STATUS0 pin low 8 3 2 Canceling Sleep Mode Sleep mode is canceled by an interrupt NMI IRQ IRL on chip peripheral module PINT or reset Interrupts are accepted in sleep mode even when the BL bit in the SR register is 1 If necessary save SPC and SSR to the stack before executing the SLEEP instruction Canceling with an Interrupt When an NMI IRQ IRL or on chip peripheral m...

Page 211: ...C All registers User break controller UBC All registers Bus state controller BSC All registers Timer unit TMU TSTR register Registers other than TSTR Realtime clock RTC All registers A D converter ADC All registers D A converter DAC All registers The procedure for moving to standby mode is as follows 1 Clear the TME bit in the WDT s timer control register WTCSR to 0 to stop the WDT Clear the WDT s...

Page 212: ...ata from being destroyed due to a rise in voltage with an unstable power supply etc Interrupts are accepted in standby mode even when the BL bit in the SR register is 1 If necessary save SPC and SSR to the stack before executing the SLEEP instruction Immediately after an interrupt is detected the phase of the CKIO pin clock output may be unstable until the processor starts interrupt handling The c...

Page 213: ...ode is entered and the clock stopped within the chip the STATUS1 pin output is low and the STATUS0 pin output is high 3 Once the STATUS1 pin goes low and the STATUS0 pin goes high the input clock is stopped or the frequency is changed 4 When the frequency is changed an NMI IRL IRQ PINT or on chip peripheral module except interval timer interrupt is input after the change When the clock is stopped ...

Page 214: ...BC runs 1 Supply of clock to UBC halted MSTP7 0 DMAC runs 1 Supply of clock to DMAC halted MSTP6 0 DAC runs 1 Supply of clock to DAC halted MSTP5 0 ADC runs 1 Supply of clock to ADC halted and all registers initialized MSTP4 0 SCIF runs 1 Supply of clock to SCIF halted MSTP3 0 IrDA runs 1 Supply of clock to IrDA halted MSTP2 0 TMU runs 1 Supply of clock to TMU halted Registers initialized 1 MSTP1 ...

Page 215: ...er On Reset CKIO CKIO2 4 RESETP STATUS Normal 2 Normal 2 Reset 1 PLL settling time 0 to 5 Bcyc 3 0 to 30 Bcyc 3 RESETOUT Notes 1 Reset HH STATUS1 high STATUS0 high 2 Normal LL STATUS1 low STATUS0 low 3 Bcyc Bus clock cycle 4 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 2 Power On Reset Clock Modes 0 1 2 and 7 STATUS Output ...

Page 216: ...1 In a manual reset STATUS becomes HH reset and the internal reset begins after waiting for the executing bus cycle to end 2 Reset HH STATUS1 high STATUS0 high 3 Normal LL STATUS1 low STATUS0 low 4 Bcyc Bus clock cycle 5 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 3 Manual Reset STATUS Output ...

Page 217: ...Normal 2 Normal 2 WDT count Oscillation stops Standby 1 Interrupt request WDT overflow WAKEUP Notes 1 Standby LH STATUS1 low STATUS0 high 2 Normal LL STATUS1 low STATUS0 low 3 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 4 Standby to Interrupt STATUS Output ...

Page 218: ...de is cleared with a power on reset the WDT does not count Keep RESETP low during the PLL s oscillation settling time 2 Undefined 3 Reset HH STATUS1 high STATUS0 high 4 Standby LH STATUS1 low STATUS0 high 5 Normal LL STATUS1 low STATUS0 low 6 Bcyc Bus clock cycle 7 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 5 Standby to Power On Reset STATUS Output ...

Page 219: ... Standby LH STATUS1 low STATUS0 high 4 Normal LL STATUS1 low STATUS0 low 5 Bcyc Bus clock cycle 6 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 6 Standby to Manual Reset STATUS Output 8 6 3 Timing for Canceling Sleep Mode Sleep to Interrupt CKIO CKIO2 3 STATUS Normal 2 Normal 2 Sleep 1 Interrupt request Notes 1 Sleep HL STATUS1 high STATUS0 low 2 Normal LL STATUS1 low STATUS...

Page 220: ...plication ratio is changed by a power on reset keep RESETP low during the PLL s oscillation settling time 2 Undefined 3 Reset HH STATUS1 high STATUS0 high 4 Sleep HL STATUS1 high STATUS0 low 5 Normal LL STATUS1 low STATUS0 low 6 Bcyc Bus clock cycle 7 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 8 Sleep to Power On Reset STATUS Output ...

Page 221: ... Reset 2 RESETM 1 Note 1 Keep RESETM low until STATUS becomes reset 2 Reset HH STATUS1 high STATUS0 high 3 Sleep HL STATUS1 high STATUS0 low 4 Normal LL STATUS1 low STATUS0 low 5 Bcyc Bus clock cycle 6 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 9 Sleep to Manual Reset STATUS Output ...

Page 222: ...2 The TMU does not operate Operation when a low level signal is input at the CA pin depends on the CPG state as follows 1 In standby mode The clock remains stopped and the chip enters the hardware standby state Acceptance of interrupts and manual resets is disabled TCLK output is fixed low and the TMU halts 2 During WDT operation when standby mode is canceled by an interrupt The chip enters hardwa...

Page 223: ... reset processing Operation is not guaranteed in the event of an interrupt or manual reset 8 7 3 Hardware Standby Mode Timing Figures 8 10 and 8 11 show examples of pin timing in hardware standby mode The CA pin is sampled using EXTAL2 32 768 kHz and a hardware standby request is only recognized when the pin is low for two consecutive clock cycles The CA pin must be held low while the chip is in h...

Page 224: ...5 0 10Bcyc 4 Notes 1 Reset HH STATUS1 high STATUS0 high 2 Standby LH STATUS1 low STATUS0 high 3 Normal LL STATUS1 low STATUS0 low 4 Bcyc Bus clock cycle 5 Rcyc EXTAL2 32 768 kHz cycle 6 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 10 Hardware Standby Mode When CA Goes Low in Normal Operation ...

Page 225: ...Reset HH STATUS1 high STATUS0 high 2 Standby LH STATUS1 low STATUS0 high 3 Normal LL STATUS1 low STATUS0 low 4 Bcyc Bus clock cycle 5 Rcyc EXTAL2 32 768 kHz cycle 6 The CKIO2 output is available only in clock modes 0 1 and 2 Figure 8 11 Hardware Standby Mode Timing When CA Goes Low during WDT Operation on Standby Mode Cancellation ...

Page 226: ...y change function Internal and peripheral clock frequencies can be changed independently using the PLL circuit and divider circuit within the CPG Frequencies are changed by software using frequency control register FRQCR settings Power down mode control The clock can be stopped for sleep mode and standby mode and specific modules can be stopped using the module standby function The WDT has the fol...

Page 227: ...CR PLL circuit 1 1 2 3 4 6 Divider 1 Internal clock Iφ Cycle Icyc Peripheral clock Pφ Cycle Pcyc Standby control Divider 2 Clock pulse generator PLL circuit 2 1 4 Crystal oscillator CPG control unit Clock frequency control circuit Standby control circuit 1 1 2 1 3 1 4 1 6 1 1 2 1 3 1 4 1 6 Legend FRQCR Frequency control register STBCR Standby control register Figure 9 1 Block Diagram of Clock Puls...

Page 228: ... 1 2 1 3 1 4 or 1 6 times the output frequency of PLL circuit 1 as long as it is not lower than the CKIO pin clock frequency The division ratio is set in the frequency control register 5 Divider 2 Divider 2 generates a clock at the operating frequency used by the peripheral clock The operating frequency can be 1 1 2 1 3 1 4 or 1 6 times the output frequency of PLL circuit 1 or the CKIO pin clock f...

Page 229: ...tor Also used to input an external clock Clock I O pin CKIO I O Inputs or outputs an external clock Capacitor connection pins CAP1 I Connects capacitor for PLL circuit 1 operation recommended value 470 pF for PLL CAP2 I Connects capacitor for PLL circuit 2 operation recommended value 470 pF 9 2 3 CPG Register Configuration Table 9 2 shows the CPG register configuration Table 9 2 CPG Register Regis...

Page 230: ...nstantly on An input clock frequency of 25 MHz to 66 67 MHz can be used and the CKIO frequency range is 25 MHz to 66 67 MHz Mode 1 An external clock is input from the EXTAL pin and its frequency is multiplied by 4 by PLL circuit 2 before being supplied inside the chip allowing a low frequency external clock to be used An input clock frequency of 6 25 MHz to 16 67 MHz can be used and the CKIO frequ...

Page 231: ...33 34 MHz 25 MHz to 33 34 MHz H 0101 ON 1 ON 1 1 1 1 2 25 MHz to 66 67 MHz 25 MHz to 66 67 MHz H 0102 ON 1 ON 1 1 1 1 4 25 MHz to 66 67 MHz 25 MHz to 66 67 MHz H 0111 ON 2 ON 1 2 1 1 25 MHz to 33 34 MHz 25 MHz to 33 34 MHz H 0112 ON 2 ON 1 2 1 1 2 25 MHz to 66 67 MHz 25 MHz to 66 67 MHz H 0115 ON 2 ON 1 1 1 1 25 MHz to 33 34 MHz 25 MHz to 33 34 MHz H 0116 ON 2 ON 1 1 1 1 2 25 MHz to 66 67 MHz 25 M...

Page 232: ... to 33 34 MHz H E101 ON 3 ON 4 4 4 2 6 25 MHz to 16 67 MHz 25 MHz to 66 67 MHz H A111 ON 6 ON 4 24 4 4 6 25 MHz to 8 34 MHz 25 MHz to 33 34 MHz 7 H 0100 ON 1 OFF 1 1 1 25 MHz to 33 34 MHz 25 MHz to 33 34 MHz H 0101 ON 1 OFF 1 1 1 2 25 MHz to 66 67 MHz 25 MHz to 66 67 MHz H 0102 ON 1 OFF 1 1 1 4 25 MHz to 66 67 MHz 25 MHz to 66 67 MHz H 0111 ON 2 OFF 2 1 1 25 MHz to 33 34 MHz 25 MHz to 33 34 MHz H ...

Page 233: ...quency multiplication ratio of PLL circuit 1 and the division ratio of divider 2 The peripheral clock frequency should not be set higher than the frequency of the CKIO pin higher than 33 MHz 3 The output frequency of PLL circuit 1 is the product of the CKIO frequency and the multiplication ratio of PLL circuit 1 4 1 2 3 4 or 6 can be used as the multiplication ratio of PLL circuit 1 1 1 2 1 3 1 4 ...

Page 234: ...lized to H 0102 by a power on reset but retains its value in a manual reset and in standby mode FRQCR Bit 15 14 13 12 11 10 9 8 STC2 IFC2 PFC2 Initial value 0 0 0 0 0 0 0 1 R W R W R W R W R R R R R Bit 7 6 5 4 3 2 1 0 STC1 STC0 IFC1 IFC0 PFC1 PFC0 Initial value 0 0 0 0 0 0 1 0 R W R R R W R W R W R W R W R W Bits 15 5 and 4 Frequency Multiplication Ratio STC These bits specify the frequency multi...

Page 235: ...ripheral Clock Frequency Division Ratio PFC These bits specify the division ratio of the peripheral clock frequency with respect to the frequency of the output frequency of PLL circuit 1 or the frequency of the CKIO pin Bit 13 PFC2 Bit 1 PFC1 Bit 0 PFC0 Description 0 0 0 1 0 0 1 1 2 1 0 0 1 3 0 1 0 1 4 Initial value 1 0 1 1 6 Except above value Reserved Setting prohibited Note Do not set the perip...

Page 236: ...r CKS2 CKS0 bits Division ratio of WDT count clock WTCNT counter Initial counter value 3 Set the desired value in the STC2 to STC0 bits The division ratio can also be set in the IFC2 IFC0 bits and PFC2 PFC0 bits 4 The processor pauses internally and the WDT starts incrementing In clock modes 0 2 and 7 the internal and peripheral clocks both stop except for the peripheral clock supplied to the WDT ...

Page 237: ...tchdog timer counter Figure 9 2 Block Diagram of WDT 9 6 2 Register Configuration The WDT has two registers that select the clock switch the timer mode and perform other functions Table 9 5 shows the WDT registers Table 9 5 Register Configuration Name Abbreviation R W Initial Value Address Access Size Watchdog timer counter WTCNT R W H 00 H FFFFFF84 R 8 W 16 Watchdog timer control status register ...

Page 238: ... control status register WTCSR is an 8 bit readable writable register composed of bits to select the clock used for the count bits to select the timer mode and overflow flags WTCSR differs from other registers in that it is more difficult to write to See section 9 7 3 Notes on Register Access for details Its address is H FFFFFF86 The WTCSR register is initialized to H 00 only by a power on reset t...

Page 239: ...t Initial value 1 Manual reset Note RESETOUT is output Bit 4 Watchdog Timer Overflow WOVF Indicates that the WTCNT has overflowed in watchdog timer mode This bit is not set in interval timer mode Bit 4 WOVF Description 0 No overflow Initial value 1 WTCNT has overflowed in watchdog timer mode Bit 3 Interval Timer Overflow IOVF Indicates that WTCNT has overflowed in interval timer mode This bit is n...

Page 240: ...TCSR are more difficult to write to than other registers The procedure for writing to these registers is given below Writing to WTCNT and WTCSR These registers must be written to using a word transfer instruction They cannot be written to with a byte or longword transfer instruction When writing to WTCNT set the upper byte to H 5A and transfer the lower byte as the write data as shown in figure 9 ...

Page 241: ...ting from H 00 set the STBY bit in the STBCR register to 0 in the interrupt handling routine and this will stop the WDT When the STBY bit remains at 1 the SH7709S again enters standby mode when the WDT has counted up to H 80 This standby mode can be canceled by a power on reset 9 8 2 Changing the Frequency To change the frequency used by the PLL use the WDT When changing the frequency only by swit...

Page 242: ...utput at the RESETOUT pin and a high level at the STATUS0 and STATUS1 pins The output period is approximately 1 count clock cycle in the case of a power on reset and approximately 5 peripheral clock cycles in the case of a manual reset 9 8 4 Using Interval Timer Mode When operating in interval timer mode interval timer interrupts are generated at every overflow of the counter This enables interrup...

Page 243: ...capacitors close to the SH7709S power supply pins and use components with a frequency characteristic suitable for the chip s operating frequency as well as a suitable capacitance value Digital system VSS VCC pairs 19 21 27 29 33 35 45 47 57 59 69 71 79 81 83 85 95 97 109 111 132 134 153 154 161 163 173 175 181 183 205 208 On chip oscillator VSS VCC pairs 3 6 145 147 148 150 Note The pin numbers ab...

Page 244: ... CAP2 VCC PLL2 VCC PLL1 VCC C1 470 pF C2 470 pF VSS CAP1 VSS PLL2 VSS PLL1 Avoid crossing signal lines Power supply Reference values C2 C1 Figure 9 5 Points for Attention when Using PLL Oscillator Circuit ...

Page 245: ...226 ...

Page 246: ...ntrolled through software Register settings can be used to specify the insertion of 1 10 cycles independently for each area 1 38 cycles for areas 5 and 6 and the PCMCIA interface only The type of memory connected can be specified for each area and control signals are output for direct memory connection Wait cycles are automatically inserted to avoid data bus conflict for continuous memory accesses...

Page 247: ...ts normal operating frequency Short refresh cycle control The overflow interrupt function of the refresh counter enables the refresh function immediately after a self refresh operation using low power consumption DRAM The refresh counter can be used as an interval timer Outputs an interrupt request signal using the compare match function Outputs an interrupt request signal when the refresh counter...

Page 248: ...S6 CS2 CE2A CE2B MCS0 MCS7 BS RD RD WR WE3 WE0 RASxx CASx CKE ICIORD ICIOWR IOIS16 WCR BCR MCR PCR Legend Bus interface RTCSR RTCOR BCR2 PCR MCSCRn Wait state control register Bus control register Memory control register PCMCIA control register RFCR RTCNT RTCOR RTCSR MCSCRn Refresh count register Refresh timer count register Refresh time constant register Refresh timer control status register MCSn...

Page 249: ...be 3L RAS3L O When synchronous DRAM is used RAS3L for lower 32 Mbyte address Row address strobe 3U RAS3U O When synchronous DRAM is used RAS3U for upper 32 Mbyte address Column address strobe CASL O When synchronous DRAM is used CASL signal for lower 32 Mbyte address Column address strobe LH CASU O When synchronous DRAM is used CASU signal for upper 32 Mbyte address Data enable 0 WE0 DQMLL O When ...

Page 250: ...icating I O write Read RD O Strobe signal indicating read cycle Wait WAIT I Wait state request signal Clock enable CKE O Clock enable control signal for synchronous DRAM IOIS16 IOIS16 I Signal indicating PCMCIA 16 bit I O Valid only in little endian mode Bus release request BREQ I Bus release request signal Bus release acknowledgment BACK O Bus release acknowledge signal Mask ROM chip select MCS 0...

Page 251: ...atus register RTCSR R W H 0000 H FFFFFF6E 16 Refresh timer counter RTCNT R W H 0000 H FFFFFF70 16 Refresh time constant register RTCOR R W H 0000 H FFFFFF72 16 Refresh count register RFCR R W H 0000 H FFFFFF74 16 Synchronous DRAM mode register area 2 SDMR W H FFFFD000 H FFFFDFFF 8 Synchronous DRAM mode register area 3 H FFFFE000 H FFFFEFFF MCS0 control register MCSCR0 R W H 0000 H FFFFFF50 16 MCS1...

Page 252: ...cted in area 5 or 6 in addition to CS5 CS6 CE2A CE2B are asserted for the corresponding bytes accessed Area 0 CS0 Internal I O Area 2 CS2 Area 3 CS3 Area 4 CS4 Area 5 CS5 Area 6 CS6 H 00000000 H 20000000 H 40000000 H 60000000 H 80000000 H A0000000 H C0000000 H E0000000 H 00000000 H 04000000 H 08000000 H 0C000000 H 10000000 H 14000000 H 18000000 Reserved area Physical address space Logical address ...

Page 253: ... 1 6 5 Ordinary memory 1 PCMCIA burst ROM H 14000000 to H 15FFFFFF 32 Mbytes 8 16 32 3 5 Ordinary memory burst ROM H 16000000 to H 17FFFFFF 32 Mbytes H 14000000 H 20000000 n to H 17FFFFFF H 20000000 n Shadow n 1 6 6 Ordinary memory 1 PCMCIA H 18000000 to H 19FFFFFF 32 Mbytes 8 16 32 3 5 burst ROM H 1A000000 to H 1BFFFFFF H 18000000 H 20000000 n to H 1BFFFFFF H 20000000 n Shadow n 1 6 7 6 Reserved ...

Page 254: ...n power on reset The correspondence between the external pins MD4 and MD3 and the memory size is shown in table below Table 10 4 Correspondence between External Pins MD4 and MD3 and Memory Size MD4 MD3 Memory Size 0 0 Reserved Do not set 0 1 8 bits 1 0 16 bits 1 1 32 bits For areas 2 6 byte word and longword can be chosen for the bus width using bus control register 2 BCR2 whenever ordinary memory...

Page 255: ...ations in physical space areas 5 and 6 The interfaces supported are basically the IC memory card interface and I O card interface stipulated in JEIDA Specifications Ver 4 2 PCMCIA2 1 Table 10 5 PCMCIA Interface Characteristics Item Feature Access Random access Data bus 8 16 bits Memory type Mask ROM OTPROM EPROM EEPROM flash memory SRAM Memory capacity Maximum 32 Mbytes I O space capacity Maximum ...

Page 256: ...I Address A9 12 A8 I Address A8 I Address A8 13 A13 I Address A13 I Address A13 14 A14 I Address A14 I Address A14 15 WE PGM I Write enable WE PGM I Write enable WE 16 RDY BSY O Ready Busy IREQ O Ready Busy 17 VCC Operation power VCC Operation power 18 VPP1 Program power VPP1 Program peripheral power 19 A16 I Address A16 I Address A16 20 A15 I Address A15 I Address A15 21 A12 I Address A12 I Addre...

Page 257: ...d enable CE2 I Card enable CE2A or CE2B 43 VS1 I Voltage sense 1 VS1 I Voltage sense 1 44 RFU Reserved IORD I I O read ICIORD 45 RFU Reserved IOWR I I O write ICIOWR 46 A17 I Address A17 I Address A17 47 A18 I Address A18 I Address A18 48 A19 I Address A19 I Address A19 49 A20 I Address A20 I Address A20 50 A21 I Address A21 I Address A21 51 VCC Power supply VCC Power supply 52 VPP2 Program power ...

Page 258: ...1 Bus Control Register 1 BCR1 Bus control register 1 BCR1 is a 16 bit readable writable register that sets the functions and bus cycle state for each area It is initialized to H 0000 by a power on reset but is not initialized by a manual reset or in standby mode Do not access external memory outside area 0 until BCR1 register initialization is complete Bit 15 14 13 12 11 10 9 8 PULA PULD HIZMEM HI...

Page 259: ...al value 1 A25 A0 BS CS RD WR WE DQM RD CE2A CE2B and DRAK0 1 are high in standby mode Bit 12 High Z Control HIZCNT Specifies the state of the RAS and CAS signals in standby mode and when the bus is released Bit 12 HIZCNT Description 0 RAS and CAS signals are high impedance High Z in standby mode and when bus is released Initial value 1 RAS and CAS signals are driven in standby mode and when bus i...

Page 260: ...ts 8 and 7 Area 5 Burst Enable A5BST1 A5BST0 Specify whether to use burst ROM and PCMCIA burst mode in physical space area 5 When burst ROM and PCMCIA burst mode are used these bits set the number of burst transfers Bit 8 A5BST1 Bit 7 A5BST0 Description 0 0 Access area 5 accessed as ordinary memory Initial value 1 Burst access of area 5 4 consecutive accesses Can be used when bus width is 8 16 or ...

Page 261: ...M SRAM or flash ROM can be directly connected Synchronous DRAM can also be directly connected Bit 4 DRAMTP2 Bit 3 DRAMTP1 Bit 2 DRAMTP0 Description 0 0 0 Areas 2 and 3 are ordinary memory Initial value 1 Reserved Setting prohibited 1 0 Area 2 ordinary memory area 3 synchronous DRAM 2 1 Areas 2 and 3 are synchronous DRAM 1 2 1 0 0 Reserved Setting prohibited 1 Reserved Setting prohibited 1 0 Reserv...

Page 262: ...itialized to H 3FF0 by a power on reset but is not initialized by a manual reset or in standby mode Do not access external memory outside area 0 until BCR2 register initialization is complete Bit 15 14 13 12 11 10 9 8 A6SZ1 A6SZ0 A5SZ1 A5SZ0 A4SZ1 A4SZ0 Initial value 0 0 1 1 1 1 1 1 R W R R R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 A3SZ1 A3SZ0 A2SZ1 A2SZ0 Initial value 1 1 1 1 0 0 0 0 R W R W R ...

Page 263: ... off quickly even when the read signal from the external device is turned off This can result in conflicts between data buses when consecutive memory accesses are to different memories or when a write immediately follows a memory read This LSI automatically inserts the number of idle states set in WCR1 in those cases WCR1 is initialized to H 3FF3 by a power on reset It is not initialized by a manu...

Page 264: ...2n AnIW0 Description 0 0 1 idle cycle inserted 1 1 idle cycle inserted 1 0 2 idle cycles inserted 1 3 idle cycles inserted Initial value 10 2 4 Wait State Control Register 2 WCR2 Wait state control register 2 WCR2 is a 16 bit readable writable register that specifies the number of wait state cycles inserted for each area It also specifies the data access pitch for burst memory accesses This allows...

Page 265: ... Enabled 4 Enabled 1 6 Enabled 6 Enabled 1 0 8 Enabled 8 Enabled 1 10 Initial value Enabled 10 Enabled Bits 12 to 10 Area 5 Wait Control A5W2 A5W1 A5W0 Specify the number of wait states inserted in physical space area 5 Also specify the number of states for burst transfer Description First Cycle Burst Cycle Excluding First Cycle Bit 12 A5W2 Bit 11 A5W1 Bit 10 A5W0 Inserted Wait States WAIT Pin Num...

Page 266: ... 1 0 0 4 Enabled 1 6 Enabled 1 0 8 Enabled 1 10 Enabled Initial value Bits 6 and 5 Area 3 Wait Control A3W1 A3W0 Specify the number of wait states inserted in physical space area 3 For Ordinary Memory Description Bit 6 A3W1 Bit 5 A3W0 Inserted Wait States WAIT Pin 0 0 0 Ignored 1 1 Enabled 1 0 2 Enabled 1 3 Enabled Initial value For Synchronous DRAM Description Bit 6 A3W1 Bit 5 A3W0 Synchronous DR...

Page 267: ... 1 1 0 2 1 3 Initial value Bits 2 to 0 Area 0 Wait Control A0W2 A0W1 A0W0 Specify the number of wait states inserted in physical space area 0 Also specify the burst pitch for burst transfer Description First Cycle Burst Cycle Excluding First Cycle Bit 2 A0W2 Bit 1 A0W1 Bit 0 A0W0 Inserted Wait States WAIT Pin Number of States Per Data Transfer WAIT Pin 0 0 0 0 Ignored 2 Enabled 1 1 Enabled 2 Enabl...

Page 268: ...et and should not then be modified again When RFSH and RMODE are written to write the same values to the other bits When using synchronous DRAM do not access areas 2 and 3 until this register is initialized Bit 15 14 13 12 11 10 9 8 TPC1 TPC0 RCD1 RCD0 TRWL1 TRWL0 TRAS1 TRAS0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 RASD AMX3 AMX2 AMX1 AMX0 RFSH RMODE I...

Page 269: ...command is not issued for the period TPC TRWL Bit 11 TRWL1 Bit 10 TRWL0 Description 0 0 1 cycle Initial value 1 2 cycles 1 0 3 cycles 1 Reserved Setting prohibited Bits 9 and 8 CAS Before RAS Refresh RAS Assert Time TRAS1 TRAS0 When synchronous DRAM interface is selected no bank active command is issued during the period TPC TRAS after an auto refresh command Bit 9 TRAS1 Bit 8 TRAS0 Description 0 ...

Page 270: ... value is output at A1 when the row address is output 2M 8 bit 4 bank products 1 1 The row address begins with A9 The A9 value is output at A1 when the row address is output 512k 32 bit 4 bank products 2 0 0 0 0 Begin synchronous DRAM access after setting AMX3 to 0 1 Except above value Reserved Setting prohibited Note 1 Can only be set when using a 16 bit bus width 2 Can only be set when using a 3...

Page 271: ...RFSH must be 1 Initial value 1 Self refresh RFSH must be 1 Bit 0 Reserved This bit is always read as 0 The write value should always be 0 10 2 6 PCMCIA Control Register PCR The PCMCIA control register PCR is a 16 bit readable writable register that specifies the assertion and negation timing of the OE and WE signals for the PCMCIA interface connected to areas 5 and 6 The OE and WE signal assertion...

Page 272: ...ed 0 1 1 0 8 Enabled 9 Enabled 0 1 1 1 10 Initial value Enabled 11 Enabled 1 0 0 0 12 Enabled 13 Enabled 1 0 0 1 14 Enabled 15 Enabled 1 0 1 0 18 Enabled 19 Enabled 1 0 1 1 22 Enabled 23 Enabled 1 1 0 0 26 Enabled 27 Enabled 1 1 0 1 30 Enabled 31 Enabled 1 1 1 0 34 Enabled 35 Enabled 1 1 1 1 38 Enabled 39 Enabled Bit 14 Area 5 Wait Control A5W3 Specifies the number of inserted wait states for area...

Page 273: ...1 3 5 cycle delay 1 0 0 4 5 cycle delay 1 5 5 cycle delay 1 0 6 5 cycle delay 1 7 5 cycle delay Bits 10 5 and 4 Area 6 Address OE WE Assert Delay A6TED2 A6TED1 A6TED0 The A6TED bits specify the delay time from address output to OE WE assertion for the PCMCIA interface connected to area 6 Bit 10 A6TED2 Bit 5 A6TED1 Bit 4 A6TED0 Description 0 0 0 0 5 cycle delay Initial value 1 1 5 cycle delay 1 0 2...

Page 274: ... delay 1 3 5 cycle delay 1 0 0 4 5 cycle delay 1 5 5 cycle delay 1 0 6 5 cycle delay 1 7 5 cycle delay Bits 8 1 and 0 Area 6 OE WE Negate Address Delay A6TEH2 A6TEH1 A6TEH0 Specify the address hold delay time from OE WE negation for the PCMCIA interface connected to area 6 Bit 8 A6TEH2 Bit 1 A6TEH1 Bit 0 A6TEH0 Description 0 0 0 0 5 cycle delay Initial value 1 1 5 cycle delay 1 0 2 5 cycle delay 1...

Page 275: ... A3 of the chip the value actually written to the synchronous DRAM is the X value shifted two bits right With a 16 bit bus width the value written is the X value shifted one bit right For example with a 32 bit bus width when H 0230 is written to the SDMR register of area 2 random data is written to the address H FFFFD000 address Y H 08C0 value X or H FFFFD8C0 As a result H 0230 is written to the S...

Page 276: ... 8 Initial value 0 0 0 0 0 0 0 0 R W R R R R R R R R Bit 7 6 5 4 3 2 1 0 CMF CMIE CKS2 CKS1 CKS0 OVF OVIE LMTS Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bits 15 to 8 Reserved These bits are always read as 0 The write value should always be 0 Bit 7 Compare Match Flag CMF Indicates that the values of RTCNT and RTCOR match Bit 7 CMF Description 0 The values of RTCNT and RTCOR ...

Page 277: ...equests indicated in the refresh count register RFCR exceeds the limit set in the LMTS bit in RTCSR Bit 2 OVF Description 0 RFCR has not exceeded the count limit value set in LMTS Initial value Clearing condition When 0 is written to OVF 1 RFCR has exceeded the count limit value set in LMTS Setting condition When the RFCR value has exceeded the count limit value set in LMTS Note Contents do not ch...

Page 278: ...SR select the input clock When RTCNT matches RTCOR the CMF bit in RTCSR is set and RTCNT is cleared RTCNT is initialized to H 00 by a power on reset but continues incrementing after a manual reset It is not initialized in standby mode but holds its contents Note The method of writing to RTCNT differs from that for general registers to ensure that RTCNT is not rewritten incorrectly Use a word trans...

Page 279: ...e upper byte as B 10100101 and the lower byte as the write data For details see section 10 2 12 Cautions on Accessing Refresh Control Related Registers Bit 15 14 13 12 11 10 9 8 Initial value 0 0 0 0 0 0 0 0 R W Bit 7 6 5 4 3 2 1 0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W 10 2 11 Refresh Count Register RFCR The refresh count register RFCR counts the number of refreshing Wh...

Page 280: ...nd writes using the following methods 1 When writing to RFCR RTCSR RTCNT and RTCOR use only word transfer instructions Byte transfer instructions cannot be used When writing to RTCNT RTCSR or RTCOR place B 10100101 in the upper byte and the write data in the lower byte When writing to RFCR place B 101001 in the upper 6 bits and the write data in the remaining bits as shown in figure 10 5 2 When re...

Page 281: ...3 2 1 0 CS2 0 CAP1 CAP0 A25 A24 A23 A22 Initial value 0 0 0 0 0 0 0 0 R W R R W R W R W R W R W R W R W Bits 15 to 7 Reserved These bits are always read as 0 The write value should always be 0 Bit 6 CS2 CS0 Select CS2 0 Selects whether an area 2 or area 0 address is to be decoded Bit 6 CS2 0 Description 0 Area 0 is selected 1 Area 2 is selected Bits 5 and 4 Connected Memory Size Specification CAP1...

Page 282: ...se of MCSCR0 10 2 17 MCS4 Control Register MCSCR4 The MCS4 control register MCSCR4 specifies the MCS 4 pin output conditions The bit configuration and functions are the same as those of MCSCR0 10 2 18 MCS5 Control Register MCSCR5 The MCS5 control register MCSCR5 specifies the MCS 5 pin output conditions The bit configuration and functions are the same as those of MCSCR0 10 2 19 MCS6 Control Regist...

Page 283: ...an The access unit must also be matched to the device s bus width This also means that when longword data is read from a byte width device four read operations must be performed In the SH7709S data alignment and conversion of data length is performed automatically between the respective interfaces Tables 10 7 through 10 12 show the relationship between endian device data width and access unit Tabl...

Page 284: ...LL Byte access at 0 Data 7 0 Asserted Byte access at 1 Data 7 0 Asserted Byte access at 2 Data 7 0 Asserted Byte access at 3 Data 7 0 Asserted Word access at 0 Data 15 8 Data 7 0 Asserted Asserted Word access at 2 Data 15 8 Data 7 0 Asserted Asserted Longword access 1st time at 0 Data 31 24 Data 23 16 Asserted Asserted at 0 2nd time at 2 Data 15 8 Data 7 0 Asserted Asserted ...

Page 285: ... access at 1 Data 7 0 Asserted Byte access at 2 Data 7 0 Asserted Byte access at 3 Data 7 0 Asserted Word access at 0 1st time at 0 Data 15 8 Asserted 2nd time at 1 Data 7 0 Asserted Word access at 2 1st time at 2 Data 15 8 Asserted 2nd time at 3 Data 7 0 Asserted Longword access at 0 1st time at 0 Data 31 24 Asserted 2nd time at 1 Data 23 16 Asserted 3rd time at 2 Data 15 8 Asserted 4th time at 3...

Page 286: ...access at 0 Data 31 24 Data 23 16 Data 15 8 Data 7 0 Asserted Asserted Asserted Asserted Table 10 11 16 Bit External Device Little Endian Access and Data Alignment Data Bus Strobe Signals Operation D31 D24 D23 D16 D15 D8 D7 D0 WE3 DQMUU WE2 DQMUL WE1 DQMLU WE0 DQMLL Byte access at 0 Data 7 0 Asserted Byte access at 1 Data 7 0 Asserted Byte access at 2 Data 7 0 Asserted Byte access at 3 Data 7 0 As...

Page 287: ...te access at 1 Data 7 0 Asserted Byte access at 2 Data 7 0 Asserted Byte access at 3 Data 7 0 Asserted Word access at 0 1st time at 0 Data 7 0 Asserted 2nd time at 1 Data 15 8 Asserted Word access at 2 1st time at 2 Data 7 0 Asserted 2nd time at 3 Data 15 8 Asserted Longword access at 0 1st time at 0 Data 7 0 Asserted 2nd time at 1 Data 15 8 Asserted 3rd time at 2 Data 23 16 Asserted 4th time at 3...

Page 288: ...apped to this area 1 Their addresses are physical addresses to which logical addresses can be mapped when the MMU is enabled DMAC PORT IrDA SCIF ADC DAC INTC except INTEVT IPRA IPRB These registers must be set not to be cached by using software Area 2 Area 2 physical address bits A28 A26 are 010 Address bits A31 A29 are ignored and the address range is H 08000000 H 20000000 n H 0BFFFFFF H 20000000...

Page 289: ...this space Byte word or longword can be selected as the bus width using bits A4SZ1 and A4SZ0 in BCR2 When the area 4 space is accessed the CS4 signal is asserted The RD signal that can be used as OE and the WE0 WE3 signals for write control are also asserted The number of bus cycles is selected between 0 and 10 wait cycles using the A4W2 A4W0 bits in WCR2 Any wait can be inserted in each bus cycle...

Page 290: ...ed to this space When the PCMCIA interface is used the IC memory card interface address range is 32 Mbytes at H 18000000 H 20000000 n H 19FFFFFF H 20000000 n and the I O card interface address range is 32 Mbytes at H 1A000000 H 20000000 n H 1BFFFFFF H 20000000 n n 0 6 and n 1 6 are the shadow spaces For ordinary memory and burst ROM byte word or longword can be selected as the bus width using bits...

Page 291: ...t access start address is output in the least significant bit of the address but since there is no access size specification 32 bits are always read in case of a 32 bit device and 16 bits in case of a 16 bit device When writing only the WE signal for the byte to be written is asserted For details see section 10 3 1 Endian Access Size and Data Alignment Read write for cache fill or write back follo...

Page 292: ...273 T1 CKIO A25 to A0 CSn RD WR RD D31 to D0 WEn D31 to D0 BS T2 Read Write Figure 10 6 Basic Timing of Basic Interface ...

Page 293: ...ta width static RAM respectively A16 A0 CS OE I O7 I O0 WE A18 A2 CSn RD D31 D24 WE3 D23 D16 WE2 D15 D8 WE1 D7 D0 WE0 SH7709S 128k 8 bit SRAM A16 A0 CS OE I O7 I O0 WE A16 A0 CS OE I O7 I O0 WE A16 A0 CS OE I O7 I O0 WE Figure 10 7 Example of 32 Bit Data Width Static RAM Connection ...

Page 294: ...275 A16 A0 CS OE I O7 I O0 WE A17 A1 CSn RD D15 D8 WE1 D7 D0 WE0 SH7709S 128k 8 bit SRAM A16 A0 CS OE I O7 I O0 WE Figure 10 8 Example of 16 Bit Data Width Static RAM Connection ...

Page 295: ...276 A16 A0 CSn RD D7 D0 WE0 SH7709S 128k 8 bit SRAM A16 A0 CS OE I O7 I O0 WE Figure 10 9 Example of 8 Bit Data Width Static RAM Connection ...

Page 296: ...zero a software wait is inserted in accordance with that specification For details see section 10 2 4 Wait Control Register 2 WCR2 The specified number of Tw cycles are inserted as wait cycles using the basic interface wait timing shown in figure 10 10 T1 CKIO A25 to A0 CSn RD WR RD D31 to D0 WEn D31 to D0 BS Tw T2 Read Write Figure 10 10 Basic Interface Wait Timing Software Wait Only ...

Page 297: ...w cycle When the WAITSEL bit in the WCR1 register is set to 1 the WAIT signal is sampled at the falling edge of the clock If the setup time and hold times with respect to the falling edge of the clock are not satisfied the value sampled at the next falling edge is used However the WAIT signal is ignored in the following three cases A write to external address space in dual address mode with 16 byt...

Page 298: ...KIO A25 to A0 CSn RD WR RD D31 to D0 WEn D31 to D0 WAIT Tw Tw Tw T2 Read Write BS Wait states inserted by WAIT signal Figure 10 11 Basic Interface Wait State Timing Wait State Insertion by WAIT Signal WAITSEL 1 ...

Page 299: ...l areas and signals other than CKE are valid and fetched to the synchronous DRAM only when CS2 or CS3 is asserted Synchronous DRAM can therefore be connected in parallel to a number of areas CKE is negated low only when self refreshing is performed and is always asserted high at other times In the refresh cycle and mode register write cycle RAS3U and RAS3L or CASU and CASL are output Commands for ...

Page 300: ...MUL D15 D0 DQMLU DQMLL SH7709S 64M synchronous DRAM 1M 16 bit 4 bank A13 A0 CLK CKE CS RAS CAS WE DQ15 DQ0 DQMU DQML A13 A0 CLK CKE CS RAS CAS WE DQ15 DQ0 DQMU DQML Note x is U or L Figure 10 12 Example of 64 Mbit Synchronous DRAM Connection 32 Bit Bus Width ...

Page 301: ...ble 10 13 shows the relationship between the address multiplex specification bits and the bits output at the address pins A25 A17 and A0 are not multiplexed the original values are always output at these pins When A0 the LSB of the synchronous DRAM address is connected to the SH7709S it performs longword address specification Connection should therefore be made in the following order with a 32 bit...

Page 302: ...24 4 1M 16bits 4banks 2 0 1 0 0 Column address A1 to A8 A9 A10 A11 L H 3 A13 A22 4 A23 4 Row address A9 to A16 A17 A18 A19 A20 A21 A22 4 A23 4 2M 8bits 4banks 2 0 1 0 1 Column address A1 to A8 A9 A10 A11 L H 3 A13 A23 4 A24 4 Row address A10 to A17 A18 A19 A20 A21 A22 A23 4 A24 4 512k 32bits 4banks 2 0 1 1 1 Column address A1 to A8 A9 A10 A11 L H 3 A21 4 A22 4 A15 Row address A9 to A16 A17 A18 A19...

Page 303: ...M 16bits 4banks 2 0 1 0 0 Column address A1 to A8 A9 A10 L H 3 A12 A21 4 A22 4 A15 Row address A 9 to A16 A17 A18 A19 A20 A21 4 A22 4 A23 2M 8bits 4banks 2 0 1 0 1 Column address A1 to A8 A9 A10 L H 3 A12 A22 4 A23 4 A24 Row address A10 to A17 A18 A19 A20 A21 A22 4 A23 4 A24 Notes 1 Only RAL3L or CASL is output 2 When addresses are upper 32 Mbytes RAS3U or CASU is output When addresses are lower 3...

Page 304: ...is accepted at the rising edge of the external command clock CKIO from cycle Td1 to cycle Td4 The Tpc cycle is used to wait for completion of auto precharge based on the READA command inside the synchronous DRAM no new access command can be issued to the same bank during this cycle but access to synchronous DRAM for another area is possible In the SH7709S the number of Tpc cycles is determined by ...

Page 305: ...latency cycles Transfer source address 4 8 12 Transfer destination address 4 8 12 Data read cycle Data write cycle 1st cycle 2nd cycle A25 A0 CKIO CSn RD WEm DACKn D31 D0 Note In transfer between external memories with DACK output in the read cycle DACK output timing is the same as that of CSn Figure 10 14 Example of DMA Transfer Timing in the Direct Address Mode in Dual Mode 16 byte Transfer Tran...

Page 306: ...1st cycle 2nd cycle Data write cycle Note In transfer between external memories with DACK output in the read cycle DACK output timing is the same as that of CSn Figure 10 15 Example of DMA Transfer Timing in the Direct Address Mode in Dual Mode 16 byte Transfer Transfer Source Synchronous DRAM Transfer Destination Normal Memory ...

Page 307: ...288 CKIO A25 to A16 A13 A12 A15 A14 A11 to A0 CS2 or CS3 RAS3x CASx RD WR DQMxx D31 to D0 BS Tr Tc1 Tc2 Td1 Tc3 Td2 Tc4 Td3 Td4 Tpc Figure 10 16 Basic Timing for Synchronous DRAM Burst Read ...

Page 308: ...As the unit of burst transfer is 16 bytes address updating is performed for A3 and A2 only when the bus width is 16 bits address updating is performed for A3 A2 and A1 The order of access is as follows in a fill operation in the event of a cache miss the missed data is read first then 16 byte boundary data including the missed data is read in wraparound mode CKIO A25 to A16 A13 A12 A15 A14 A11 to ...

Page 309: ...nous DRAM burst read single write mode only the required data is output Consequently no unnecessary bus cycles are generated even when a cache through area is accessed CKIO A25 to A16 A13 A12 A15 A14 A11 to A0 CS2 or CS3 RAS3x CASx RD WR DQMxx D31 to D0 BS Tr Tc1 Td1 Tpc Figure 10 18 Basic Timing for Synchronous DRAM Single Read ...

Page 310: ...ite data is output at the same time as the write command In case of the write with auto precharge command precharging of the relevant bank is performed in the synchronous DRAM after completion of the write command and therefore no command can be issued for the same bank until precharging is completed Consequently in addition to the precharge wait cycle Tpc used in a read access cycle Trwl is also ...

Page 311: ... cycle the write data is output at the same time as the write command In case of the write with auto precharge command precharging of the relevant bank is performed in the synchronous DRAM after completion of the write command and therefore no command can be issued for the same bank until precharging is completed Consequently in addition to the precharge wait cycle Tpc used in a read access cycle ...

Page 312: ...293 CKIO CSn RD WR RAS3x CASx DQMxx D31 to D0 BS Address upper bits A12 or A10 Address lower bits CKE Tr Tc1 Trwl Tpc Figure 10 20 Basic Timing for Synchronous DRAM Single Write ...

Page 313: ... row address strobe command is determined by the TPC bits in MCR Whether faster execution speed is achieved by use of bank active mode or by use of basic access is determined by the probability of accessing the same row address P1 and the average number of cycles from completion of one access to the next access Ta If Ta is greater than Tpc the delay due to the precharge wait when writing is imperc...

Page 314: ... the timing requirements will be met even if the DQMxx signal is set after the Tc cycle When bank active mode is set if only accesses to the respective banks in the area 3 space are considered as long as accesses to the same row address continue the operation starts with the cycle in figure 10 21 or 10 24 followed by repetition of the cycle in figure 10 22 or 10 25 An access to a different area 3 ...

Page 315: ...296 CKIO A25 A16 A13 A25 A16 A11 A12 A10 A15 A14 A11 A0 A15 A12 A9 A0 CS2 or CS3 RAS3x CASx RD WR DQMxx D31 D0 BS Tr Tc1 Tc2 Td1 Tc3 Td2 Tc4 Td3 Td4 Figure 10 21 Burst Read Timing No Precharge ...

Page 316: ...297 CKIO A25 A16 A13 A25 A16 A11 A12 A10 A15 A14 A11 A0 A15 A12 A9 A0 CS2 or CS3 RAS3x CASx RD WR DQMxx D31 D0 BS Tnop Tc1 Tc2 Td1 Tc3 Td2 Tc4 Td3 Td4 Figure 10 22 Burst Read Timing Same Row Address ...

Page 317: ...8 CKIO A25 A16 A13 A25 A16 A11 A12 A10 A15 A14 A11 A0 A15 A12 A9 A0 CS2 or CS3 RAS3x CASx RD WR DQMxx D31 D0 BS Tp Tr Tc1 Tc2 Td1 Tc3 Td2 Tc4 Td3 Td4 Figure 10 23 Burst Read Timing Different Row Addresses ...

Page 318: ...299 CKIO A25 A16 A13 A25 A16 A11 A12 A10 A15 A14 A11 A0 A15 A12 A9 A0 CS2 or CS3 RAS3x CASx RD WR DQMxx D31 D0 BS Tr Tc1 Tc2 Tc3 Tc4 Figure 10 24 Burst Write Timing No Precharge ...

Page 319: ...300 CKIO A25 A16 A13 A25 A16 A11 A12 A10 A15 A14 A11 A0 A15 A12 A9 A0 CS2 or CS3 RAS3x CASx RD WR DQMxx D31 D0 BS Tc1 Tc2 Tc3 Tc4 Figure 10 25 Burst Write Timing Same Row Address ...

Page 320: ...301 CKIO A25 A16 A13 A25 A16 A11 A12 A10 A15 A14 A11 A0 A15 A12 A9 A0 CS2 or CS3 RAS3x CASx RD WR DQMxx D31 D0 BS Tp Tr Tc1 Tc2 Tc3 Td4 Figure 10 26 Burst Write Timing Different Row Addresses ...

Page 321: ...the CKS2 CKS0 setting When the clock is selected by CKS2 CKS0 RTCNT starts counting up from the value at that time The RTCNT value is constantly compared with the RTCOR value and if the two values are the same a refresh request is generated and an auto refresh is performed At the same time RTCNT is cleared to zero and the count up is restarted Figure 10 27 shows the auto refresh cycle timing All b...

Page 322: ...RTCOR value RTCNT H 00000000 RTCSR CKS 2 0 CMF External bus CMF flag cleared by start of refresh cycle 000 000 RTCNT cleared to 0 when RTCNT RTCOR Auto refresh cycle Time Figure 10 27 Auto Refresh Operation ...

Page 323: ...304 Tp TRr TRrw TRrw CKIO CKE CSn RAS3U RAS3L CASU CASL RD WR Figure 10 28 Synchronous DRAM Auto Refresh Timing ...

Page 324: ...wer on reset auto refreshing is restarted if RFSH is set to 1 and RMODE is cleared to 0 when self refresh mode is cleared If the transition from clearing of self refresh mode to the start of auto refreshing takes time this time should be taken into consideration when setting the initial value of RTCNT Making the RTCNT value 1 less than the RTCOR value will enable refreshing to be started immediate...

Page 325: ...d RTCOR occurs while a refresh is waiting to be executed so that a new refresh request is generated the previous refresh request is eliminated In order for refreshing to be performed normally care must be taken to ensure that no bus cycle or bus right occurs that is longer than the refresh interval When a refresh request is generated the IRQOUT pin is asserted driven low Therefore normal refreshin...

Page 326: ...0 Mode register setting timing is shown in figure 10 30 As a result of the write to address H FFFFD000 X or H FFFFE000 X a precharge all banks PALL command is first issued in the TRp1 cycle then a mode register write command is issued in the TMw1 cycle Address signals when the mode register write command is issued are as follows A15 A9 0000100 burst read and single write A8 A6 CAS latency A5 0 bur...

Page 327: ...308 CKIO A11 A12 or A10 A9 to A2 CSn RD WR RAS3U or RAS3L CASU or CASL D31 to D0 CKE TRp1 TRp2 TRp3 TRp4 TMw1 TMw2 TMw3 TMw4 High A15 to A13 or A15 to A12 Figure 10 30 Synchronous DRAM Mode Write Timing ...

Page 328: ...sses can be set as 4 8 or 16 by bits A0BST1 0 A5BST1 0 or A6BST1 0 When 16 bit ROM is connected 4 or 8 can be set in the same way When 32 bit ROM is connected only 4 can be set WAIT pin sampling is performed in the first access if one or more wait states are set and is always performed in the second and subsequent accesses The second and subsequent access cycles also comprise two cycles when a bur...

Page 329: ...310 T1 TW TW TB2 TB1 TW TB2 CKIO A25 to A4 A3 to A0 CSn RD WR RD D31 to D0 BS WAIT T2 Note For a write cycle a basic bus cycle write cycle is performed TB1 Figure 10 31 Burst ROM Wait Access Timing ...

Page 330: ...311 T1 TB2 TB1 TB2 TB1 TB2 TB1 T2 CKIO A25 to A4 A3 to A0 CSn RD WR RD D31 to D0 BS WAIT Note For a write cycle a basic bus cycle write cycle is performed Figure 10 32 Burst ROM Basic Access Timing ...

Page 331: ...xample of PCMCIA card connection to the SH7709S To enable active insertion of the PCMCIA cards i e insertion or removal while system power is being supplied a 3 state buffer must be connected between the SH7709S s bus interface and the PCMCIA cards As operation in big endian mode is not explicitly stipulated in the JEIDA PCMCIA specifications the PCMCIA interface for the SH7709S in big endian mode...

Page 332: ...E2 OE WE PGM IORD IOWR WAIT IOIS16 CD1 CD2 CE1 PC card memory IO G G G DIR DIR G D7 to D0 D15 to D8 A25 to A0 D15 to D0 CE2 OE WE PGM WAIT CD1 CD2 CE1 PC card memory IO G G G DIR DIR G D7 to D0 D15 to D8 CE2B CE2A Output port Card detection circuit Card detection circuit Figure 10 33 Example of PCMCIA Interface ...

Page 333: ...p and hold times for the address A24 A0 card enable CS5 CE2A CS6 CE2B and write data D15 D0 in a write cycle become insufficient with respect to RD and WR the WE pin in the SH7709S The SH7709S provides for this by enabling setup and hold times to be set for physical space areas 5 and 6 in the PCR register Also software waits by means of a WCR2 register setting and hardware waits by means of the WA...

Page 334: ...315 CKIO Tpcm1 Tpcm2 A25 to A0 CExx RD WR D15 to D0 read D15 to D0 read RD read WE write BS Figure 10 34 Basic Timing for PCMCIA Memory Card Interface ...

Page 335: ...316 CKIO Tpcm0 A25 to A0 RD WR CExx RD read D15 to D0 read D15 to D0 write WE write BS WAIT Tpcm0w Tpcm1 Tpcm1w Tpcm1w Tpcm2 Tpcm2w Figure 10 35 Wait Timing for PCMCIA Memory Card Interface ...

Page 336: ...r bits A6BST1 and A6BST0 in BCR1 for area 6 This burst access mode is not stipulated in JEIDA version 4 2 PCMCIA2 1 but allows high speed data access using ROM provided with a burst mode etc Burst access mode timing is shown in figures 10 36 and 10 37 CKIO Tpcm1 A25 to A4 CExx A3 to A0 RD WR RD read D15 to D0 read BS Tpcm2 Tpcm1 Tpcm2 Tpcm1 Tpcm2 Tpcm1 Tpcm2 Figure 10 36 Basic Timing for PCMCIA Me...

Page 337: ...8 CKIO Tpcm0 A25 to A4 CExx A3 to A0 RD WR RD read D15 to D0 read BS WAIT Tpcm1 Tpcm1w Tpcm1w Tpcm1w Tpcm2 Tpcm1 Tpcm1w Tpcm2 Tpcm2w Figure 10 37 Wait Timing for PCMCIA Memory Card Interface Burst Access ...

Page 338: ... enables the A24 pin to be used for the REG signal I O space I O space I O space Area 5 H 14000000 Area 5 H 16000000 Area 6 H 18000000 Area 6 H 1A000000 Area 5 H 14000000 Area 5 H 15000000 Area 5 H 16000000 H 17000000 Area 6 H 18000000 Area 6 H 19000000 Area 6 H 1A000000 H 1B000000 Attribute memory Common memory Attribute memory Common memory I O space Up to 16 Mbyte capacity REG A24 32 Mbyte capa...

Page 339: ...FFFFFF is accessed When accessing a PCMCIA I O card the access should be performed using a non cacheable area in virtual space P2 or P3 space or an area specified as non cacheable by the MMU When an I O card interface access is made to a PCMCIA card in little endian mode dynamic sizing of the I O bus width is possible using the IOIS16 pin When a 16 bit bus width is set for area 6 if the IOIS16 sig...

Page 340: ...321 CKIO Tpci1 Tpci2 A25 to A0 RD WR CExx ICIORD read D15 to D0 read ICIOWR write D15 to D0 write BS Figure 10 39 Basic Timing for PCMCIA I O Card Interface ...

Page 341: ...322 CKIO A25 to A0 RD WR CExx ICIORD read ICIOWR write D15 to D0 read D15 to D0 write BS WAIT IOIS16 Tpci0 Tpci0w Tpci1 Tpci1w Tpci1w Tpci2 Tpci2w Figure 10 40 Wait Timing for PCMCIA I O Card Interface ...

Page 342: ...ci0 A25 to A1 CExx A0 RD WR ICIORD read D15 to D0 read ICIOWR write D15 to D0 write BS WAIT IOIS16 Tpci1 Tpci1w Tpci2 Tpci1 Tpci1w Tpci2 Tpci2w Figure 10 41 Dynamic Bus Sizing Timing for PCMCIA I O Card Interface ...

Page 343: ...different area and when a read access is followed by a write access from the SH7709S When the SH7709S performs consecutive write cycles the data transfer direction is fixed from the SH7709S to other memory and there is no problem With read accesses to the same area in principle data is output from the same data buffer and wait cycle insertion is not performed Bits AnIW1 and AnIW0 n 0 2 6 in WCR1 s...

Page 344: ...ltiple bus cycles that are generated when the data bus width is shorter than the access size i e in the bus cycles when longword access is executed for the 8 bit memory At the negation of BREQ BACK is negated and bus use is restarted See Appendix A 1 Pin States for the pin states when the bus is released The SH7709S sometimes needs to retrieve a bus it has released For example when memory generate...

Page 345: ...n pull up can be performed when the bus is released by setting the PULA bit in BCR1 to 1 The address pins are pulled up for a 4 clock period after BACK is asserted Figure 10 43 shows the address pin pull up timing Similarly data pin pull up can be performed by setting the PULD bit in BCR1 to 1 The data pins should be pulled up when the data bus is not in use The data pin pull up timing for a read ...

Page 346: ...327 Pull up CKIO D31 D0 RD CSn Pull up Figure 10 44 Pull Up Timing for Pins D31 to D0 Read Cycle Pull up CKIO D31 D0 WEn CSn Pull up Figure 10 45 Pull Up Timing for Pins D31 to D0 Write Cycle ...

Page 347: ...several instructions after an instruction that switches port C to MCS the switch from PTC n to MCSn and from CS0 to MCS 0 may not be performed correctly To prevent this problem the following switching procedure should be used When the program runs with cache on 1 To switch port C to MCS set the corresponding bits in the PCCR register to 00 other function 2 Read the PCCR register and check whether ...

Page 348: ...00000 to H 1FFFFFF 1 0 0 L H H 2000000 to H 27FFFFF 1 0 1 L H H 2800000 to H 2FFFFFF 1 1 0 L H H 3000000 to H 37FFFFF 1 1 1 L H H 3800000 to H 3FFFFFF 0 0 0 0 0 0 L H H 0000000 to H 03FFFFF 32 Mbit ROM 0 0 0 1 L H H 0400000 to H 07FFFFF 0 0 1 0 L H H 0800000 to H 0BFFFFF 0 0 1 1 L H H 0C00000 to H 0FFFFFF 0 1 0 0 L H H 1000000 to H 13FFFFF 0 1 0 1 L H H 1400000 to H 17FFFFF 0 1 1 0 L H H 1800000 t...

Page 349: ...1800000 to H 1FFFFFF 1 0 0 H L H 2000000 to H 27FFFFF 1 0 1 H L H 2800000 to H 2FFFFFF 1 1 0 H L H 3000000 to H 37FFFFF 1 1 1 H L H 3800000 to H 3FFFFFF 0 0 0 0 0 0 H L H 0000000 to H 03FFFFF 32 Mbit ROM 0 0 0 1 H L H 0400000 to H 07FFFFF 0 0 1 0 H L H 0800000 to H 0BFFFFF 0 0 1 1 H L H 0C00000 to H 0FFFFFF 0 1 0 0 H L H 1000000 to H 13FFFFF 0 1 0 1 H L H 1400000 to H 17FFFFF 0 1 1 0 H L H 1800000...

Page 350: ... Both the transfer source and transfer destination are accessed by address Dual address mode has direct address transfer mode and indirect address transfer mode Direct address transfer mode The values specified in the DMAC registers indicates the transfer source and transfer destination Two bus cycles are required for one data transfer Indirect address transfer mode Data is transferred with the ad...

Page 351: ...n chip module request Requests from on chip peripheral modules such as serial communications interface IrDA and SCIF A D converter A D and a timer CMT This request can be accepted in all the channels Auto request The transfer request is generated automatically within the DMAC Selectable bus modes Cycle steal mode or burst mode Selectable channel priority levels Fixed mode The channel priority is f...

Page 352: ...ipheral module DARn DMATCRn CHCRn DMAOR IrDA SCIF A D converter CMT DEIn External RAM External ROM External I O memory mapped External I O with acknowledge DACK0 DACK1 DRAK0 DRAK1 Legend DMAOR SARn DARn DMATCRn CHCRn DEIn n DMAC operation register DMAC source address register DMAC destination address register DMAC transfer count register DMAC channel control register DMA transfer end interrupt req...

Page 353: ...ut to an external I O upon DMA transfer request from external device to channel 0 DMA request acknowledge DRAK0 O Output showing that DREQ0 has been accepted 1 DMA transfer request DREQ1 I DMA transfer request input from external device to channel 1 DMA transfer request acceptance DACK1 O Strobe output to an external I O upon DMA transfer request from external device to channel 1 DMA request ackno...

Page 354: ...ister 0 CHCR0 R W 1 H 00000000 H 0400002C H A400002C 4 32 8 16 32 2 1 DMA source address register 1 SAR1 R W Undefined H 04000030 H A4000030 4 32 16 32 2 DMA destination address register 1 DAR1 R W Undefined H 04000034 H A4000034 4 32 16 32 2 DMA transfer count register 1 DMATCR1 R W Undefined H 04000038 H A4000038 4 24 16 32 3 DMA channel control register 1 CHCR1 R W 1 H 00000000 H 0400003C H A40...

Page 355: ...060 4 16 8 16 2 Notes These registers are located in area 1 of physical space Therefore when the cache is on either access these registers from the P2 area of logical space or else make an appropriate setting using the MMU so that these registers are not cached 1 Only 0 can be written to bit 1 of CHCR0 to CHCR3 and bits 1 and 2 of DMAOR to clear the flag after 1 is read 2 If 16 bit access is used ...

Page 356: ...ransfer data in 16 bits or in 32 bits specify a 16 bit or 32 bit address boundary address When transferring data in 16 byte units a 16 byte boundary address 16n must be set for the source address value Operation is not guaranteed if other addresses are specified An undefined value will be returned in a reset The previous value is retained in standby mode Bit 31 30 29 28 27 26 25 24 Initial value R...

Page 357: ...g a DMA transfer these registers indicate the next destination address To transfer data in 16 bits or in 32 bits specify a 16 bit or 32 bit address boundary address Operation is not guaranteed if other addresses are specified An undefined value will be returned in a reset The previous value is retained in standby mode Bit 31 30 29 28 27 26 25 24 Initial value R W R W R W R W R W R W R W R W R W Bi...

Page 358: ...en H 000000 is set During a DMA transfer these registers indicate the remaining number of transfers In 16 byte transfer one 16 byte transfer 128 bits is counted as one Writing to upper eight bits in DMATCR is invalid 0s are read if these bits are read The write value should always be 0 An undefined value will be returned in a reset The previous value is retained in standby mode Bit 31 30 29 28 27 ...

Page 359: ...6 to 18 are only used in CHCR0 and CHCR1 they are not used in CHCR2 and CHCR3 Consequently writing to these bits is invalid in CHCR2 and CHCR3 0s are read if these bits are read These register values are initialized to 0 in a reset The previous value is retained in standby mode Bit 31 21 20 19 18 17 16 DI RO RL AM AL Initial value 0 0 0 0 0 0 0 R W R R R W 2 R W 2 R W 2 R W 2 R W 2 Bit 15 14 13 12...

Page 360: ...ad Bit RO Selects whether the source address initial value is reloaded in channel 2 This bit is only valid in CHCR2 Writing to this bit is invalid in CHCR0 CHCR1 and CHCR3 0 is read if this bit is read The write value should always be 0 When using 16 byte transfer this bit must be cleared to 0 specifying non reloading Operation is not guaranteed if reloading is specified Bit 19 RO Description 0 So...

Page 361: ...or active low This bit is only valid in CHCR0 and CHCR1 Writing to this bit is invalid in CHCR2 and CHCR3 0 is read if this bit is read The write value should always be 0 Bit 16 AL Description 0 Active low DACK output Initial value 1 Active high DACK output Bits 15 and 14 Destination Address Mode Bits 1 and 0 DM1 DM0 Select whether the DMA destination address is incremented decremented or left fix...

Page 362: ...transfer 2 in 16 bit transfer 4 in 32 bit transfer illegal setting in 16 byte transfer 1 1 Setting prohibited If the transfer source is specified by indirect address specify the address holding the value of the address in which the data to be transferred is stored i e the indirect address in source address register 3 SAR3 Specification of SAR3 incrementing or decrementing in indirect address mode ...

Page 363: ...uto request 0 1 0 1 Setting prohibited 0 1 1 0 Setting prohibited 0 1 1 1 Setting prohibited 1 0 0 0 Setting prohibited 1 0 0 1 Setting prohibited 1 0 1 0 IrDA transmission 1 0 1 1 IrDA reception 1 1 0 0 SCIF transmission 1 1 0 1 SCIF reception 1 1 1 0 A D converter 1 1 1 1 CMT Notes When using 16 byte transfer the following settings must not be made 1010 IrDA transmission 1011 IrDA reception 1100...

Page 364: ... value 1 DREQ detected at falling edge Bit 5 Transmit Mode TM Specifies the bus mode when transferring data Bit 5 TM Description 0 Cycle steal mode Initial value 1 Burst mode Bits 4 and 3 Transmit Size Bits 1 and 0 TS1 TS0 Specify the size of data to be transferred Bit 4 TS1 Bit 3 TS0 Description 0 0 Byte size 8 bits Initial value 0 1 Word size 16 bits 1 0 Longword size 32 bits 1 1 16 byte unit 4 ...

Page 365: ...tial value Clearing conditions Writing 0 to TE after reading TE 1 Power on reset manual reset 1 Data transfers specified in DMATCR completed Bit 0 DMAC Enable Bit DE Enables operation of the corresponding channel Bit 0 DE Description 0 Channel operation disabled Initial value 1 Channel operation enabled If an auto request is specified RS3 to RS0 transfer starts when this bit is set to 1 In an exte...

Page 366: ...al value 0 0 0 0 0 0 0 0 R W R R R R R R W R W R W Note Only 0 can be written to the AE and NMIF bits after 1 is read Bits 15 to 10 Reserved These bits are always read as 0 The write value should always be 0 Bits 9 and 8 Priority Mode Bits 1 and 0 PR1 PR0 Select the priority level between channels when there are simultaneous transfer requests for multiple channels Bit 9 PR1 Bit 8 PR0 Description 0...

Page 367: ... cannot write 1 to this bit Only 0 can be written to clear this bit after 1 is read Bit 1 NMIF Description 0 No NMI input DMA transfer is enabled Initial value Clearing conditions Writing 0 to NMIF after reading NMIF 1 Power on reset manual reset 1 NMI input DMA transfer is disabled This bit is set by occurrence of an NMI interrupt Bit 0 DMA Master Enable Bit DME Enables or disables the DMAC on al...

Page 368: ...peration register DMAOR are set the DMAC transfers data according to the following procedure 1 Checks to see if transfer is enabled DE 1 DME 1 TE 0 AE 0 NMIF 0 2 When a transfer request comes and transfer is enabled the DMAC transfers 1 transfer unit of data according to the TS0 and TS1 settings For an auto request the transfer begins automatically when the DE bit and DME bit are set to 1 The DMAT...

Page 369: ...No Yes Yes No Yes No 3 2 Start Transfer aborted DMATCR 0 Transfer request 1 DE DME 1 and AE NMIF TE 0 Does AE 1 or NMIF 1 or DE 0 or DME 0 Transfer end Notes 1 In auto request mode transfer begins when AE NMIF and TE are both 0 and the DE and DME bits are set to 1 2 DREQ level detection in burst mode external request or cycle steal mode 3 DREQ edge detection in burst mode external request or auto ...

Page 370: ...bled DE 1 DME 1 TE 0 AE 0 NMIF 0 a transfer is performed upon a request at the DREQ input Choose DREQ detection by either a falling edge or low level of the signal input with the DS bit in CHCR0 and CHCR1 DS 0 for level detection DS 1 for edge detection The source of the transfer request does not have to be the data transfer source or destination Table 11 3 Selecting External Request Modes with RS...

Page 371: ...1 1 0 0 SCIF transmitter TXI2 SCIF transmit data empty interrupt transfer request Any TDR2 Cycle steal 1 1 0 1 SCIF receiver RXI2 SCIF receive data full interrupt transfer request RDR1 Any Cycle steal 1 1 1 0 A D converter ADI A D conversion end interrupt ADDR Any Cycle steal 1 1 1 1 CMT CMI Compare match timer interrupt Any Any Burst cycle steal ADDR A D data register of A D converter Note Extern...

Page 372: ...ty order of the channels remain fixed There are three kinds of fixed modes as follows CH0 CH1 CH2 CH3 CH0 CH2 CH3 CH1 CH2 CH0 CH1 CH3 These are selected by the PR1 and PR0 bits in DMAOR Round Robin Mode Each time one word byte or longword is transferred on one channel the priority order is rotated The channel on which the transfer was just finished rotates to the bottom of the priority order The r...

Page 373: ...are also shifted If immediately after there is a request to transfer channel 1 only channel 1 becomes lowest priority and the priority of channels 3 and 0 which were higher than channel 1 is also shifted Channel 1 becomes lowest priority The priority of channel 0 which was higher than channel 1 is also shifted Channel 0 becomes lowest priority Priority order after transfer Priority order after tra...

Page 374: ...t this point channel 1 has a higher priority than channel 3 so the channel 1 transfer begins channel 3 waits for transfer 6 When the channel 1 transfer ends channel 1 becomes lowest priority 7 The channel 3 transfer begins 8 When the channel 3 transfer ends channels 3 and 2 shift downward in priority so that channel 3 becomes the lowest priority Transfer request Waiting channel s DMAC operation Ch...

Page 375: ... External Device On Chip Peripheral Module External device with DACK Not available Dual single Dual single Not available External memory Dual single Dual Dual Dual Memory mapped external device Dual single Dual Dual Dual On chip peripheral module Not available Dual Dual Dual Notes 1 Dual Dual address mode 2 Single Single address mode 3 Dual address mode includes direct address mode and indirect ad...

Page 376: ...er external memory in a write cycle Figure 11 6 shows an example of the timing at this time Data buffer Address bus Data bus Address bus Data bus Memory Transfer source module Transfer destination module Memory Transfer source module Transfer destination module SAR DAR Data buffer SAR DAR The SAR value is an address data is read from the transfer source module and the data is temporarily stored in...

Page 377: ... transfer source address register SAR3 in the DMAC Consequently in this mode the address value specified in the transfer source address register in the DMAC is read first This value is temporarily stored in the DMAC Next the read value is output as an address and the value stored in that address is stored in the DMAC again Then the value read afterwards is written to the address specified in the t...

Page 378: ...M A C Memory Transfer source module Data bus Address bus Transfer destination module SAR3 DAR3 Data buffer Temporary buffer D M A C First and second bus cycles When the value in the temporary buffer is an address the data is read from the transfer source module to the data buffer Third bus cycle Fourth bus cycle When the value in SAR3 is an address the value in the data buffer is written to the tr...

Page 379: ...le 1st 2nd 3rd NOP cycle Data read cycle 4th Data write cycle CKIO A25 to A0 CSn D31 to D0 Internal address bus Internal data bus DMAC indirect address buffer DMAC data buffer RD WEn Notes 1 2 The internal address bus value does not change and is controlled by the port The DMAC does not fetch the value until 32 bit data is output to the internal data bus External memory space external memory space...

Page 380: ...memory and an external device with DACK shown in figure 11 9 when the external device outputs data to the data bus that data is written to the external memory in the same bus cycle DMAC SH7709S DACK DREQ External address bus External data bus External memory External device with DACK Data flow Figure 11 9 Data Flow in Single Address Mode Two kinds of transfer are possible in single address mode 1 ...

Page 381: ...pace Data output from external memory space DACK signal active low to external device with DACK Read strobe signal to external memory space a External device with DACK external memory space ordinary memory b External memory space ordinary memory external device with DACK CKIO A25 to A0 D31 to D0 DACKn CSn WE BS CKIO A25 to A0 D31 to D0 DACKn CSn RD BS Figure 11 10 Example of DMA Transfer Timing in...

Page 382: ...ransfer unit byte word longword or 16 byte unit DMAC When another transfer request occurs the bus is obtained from the other bus master and transfer is performed for one transfer unit When that transfer ends the bus is passed to the other bus master This is repeated until the transfer end conditions are satisfied In the cycle steal mode transfer areas are not affected regardless of the transfer re...

Page 383: ...f the DREQ pin however when the DREQ pin is driven high the bus passes to the other bus master after the DMAC transfer request that has already been accepted ends even if the transfer end conditions have not been satisfied Burst mode cannot be used when a serial communication interface IrDA SCI or A D converter is the transfer request source Figure 11 13 shows an example of burst mode timing CPU C...

Page 384: ...mory mapped external device and on chip peripheral module All 2 B C 3 8 16 32 4 0 3 5 On chip peripheral module and on chip peripheral module All 2 B C 3 8 16 32 4 0 3 5 Single External device with DACK and external memory External B C 8 16 32 128 0 1 External device with DACK and memory mapped external device External B C 8 16 32 128 0 1 B Burst C Cycle steal Notes 1 External requests auto reques...

Page 385: ... operating again after channel 0 completes the transfer of one transfer unit even if channel 0 is in cycle steal mode or burst mode The bus will then switch between the two in the order channel 1 channel 0 channel 1 channel 0 Even if the priority is set in fixed mode or in round robin mode the bus will not be given to the CPU since channel 1 is in burst mode This example is illustrated in figure 1...

Page 386: ... mode level detection DMAC transfer begins at the earliest three cycles after the first sampling is performed The second sampling is started two cycles after the first If DREQ is not detected at this time sampling is performed in each subsequent cycle Thus DREQ sampling is performed one step in advance The third sampling operation is not performed until the idle cycle following the end of the firs...

Page 387: ... Mode Edge Detection In the case of burst mode with edge detection DREQ sampling is only performed once For example in figure 11 21 DMAC transfer begins at the earliest three cycles after the first sampling is performed After this DMAC transfer is executed continuously until the number of data transfers set in the DMATCR register have been completed DREQ is not sampled during this time To restart ...

Page 388: ...369 CKIO DRAK DREQ DACK Bus cycle DMAC R CPU DMAC W DMAC R CPU DMAC W 1st sampling 2nd sampling 3rd sampling Figure 11 15 Cycle Steal Mode Level Input CPU Access 2 Cycles ...

Page 389: ...370 CPU CPU CKIO DRAK DREQ DACK DMAC R DMAC W DMAC R 1st sampling 2nd sampling 3rd sampling Bus cycle Figure 11 16 Cycle Steal Mode Level Input CPU Access 3 Cycles ...

Page 390: ... CKIO DRAK High output Bus cycle DREQ DACK RD output DMAC W CPU DMAC W DMAC R CPU 1st sampling 2nd sampling 3rd sampling Figure 11 17 Cycle Steal Mode Level input CPU Access 2 Cycles DMA RD Access 4 Cycles ...

Page 391: ...C R CPU 3rd sampling is performed but since DREQ is high per cycle sampling starts 2nd sampling is performed but since DREQ is high per cycle sampling starts 1st sampling 2nd sampling 3rd sampling Figure 11 18 Cycle Steal Mode Level input CPU Access 2 Cycles DREQ Input Delayed ...

Page 392: ...s no DREQ falling edge per cycle sampling starts 2nd sampling is performed but since there is no DREQ falling edge per cycle sampling starts 1st sampling 2nd sampling 3rd sampling Note When a DREQ falling edge is detected DREQ must be high for at least one cycle before the sampling point Figure 11 19 Cycle Steal Mode Edge input CPU Access 2 Cycles ...

Page 393: ...374 CKIO DRAK DREQ DACK Bus cycle DMAC R DMAC W DMAC R DMAC W DMAC R CPU 1st sampling 2nd sampling 3rd sampling Figure 11 20 Burst Mode Level Input ...

Page 394: ...375 CKIO DRAK DREQ DACK Bus cycle CPU DMAC R DMAC W DMAC R DMAC W DMAC R 1st sampling Figure 11 21 Burst Mode Edge Input ...

Page 395: ...2 shows this operation Figure 11 23 shows a timing chart for the source address reload function under the following conditions burst mode auto request 16 bit transfer data size SAR2 incremented DAR2 fixed reload function on and use of channel 2 only SAR2 initial value DMAC Transfer request DMAC control Reload control 4 time count CHCR2 DMATCR2 SAR2 RO bit 1 Count signal Reload signal Reload signal...

Page 396: ...tion is on or off Consequently a multiple of four must be specified in DMATCR2 when the reload function is on Operation is not guaranteed if other values are specified The counter that counts the execution of four transfers for the address reload function is reset by clearing the DME bit in DMAOR or the DE bit in CHCR2 by setting the transfer end flag TE bit in CHCR2 by DMAC address error and by N...

Page 397: ...quest internal request and auto request The timing from the point where the ending conditions are satisfied to the point where the DMAC stops operating is the same as in cycle steal mode With edge detection in burst mode though only one transfer request is generated to start the DMAC stop request sampling is performed at the same timing as transfer request sampling in cycle steal mode As a result ...

Page 398: ...end when 1 the AE or NMIF NMI flag bit is set to 1 in DMAOR or 2 when the DME bit in DMAOR is cleared to 0 Transfer ending when the NMIF bit is set to 1 in DMAOR When an NMI interrupt occurs the AE or NMIF bit is set to 1 in DMAOR and all channels stop their transfers according to the conditions in a to d described above and pass the bus to an other bus master Consequently even if the AE or NMI bi...

Page 399: ... Pφ 16 Pφ 64 can be selected Generates a DMA transfer request when compare match occurs Block Diagram Figure 11 24 shows a block diagram of the CMT Internal bus Bus interface Control circuit Clock selection CMSTR CMCSR0 CMCOR0 Comparator CMCNT0 Module bus CMT Pφ 4 Pφ 8 Pφ 16 Pφ 64 CMSTR CMCSR0 CMCOR0 CMCNT0 Compare match timer start register Compare match timer control status register 0 Compare ma...

Page 400: ...the CMF bit in CMCSR0 is 0 to clear the flag 2 When address translation by the MMU does not apply the address in parentheses should be used 11 4 2 Register Descriptions Compare Match Timer Start Register CMSTR The compare match timer start register CMSTR is a 16 bit register that selects whether compare match counter 0 CMCNT0 is operated or halted It is initialized to H 0000 by a reset but retains...

Page 401: ...etains its previous value in standby mode Bit 15 14 13 12 11 10 9 8 Initial value 0 0 0 0 0 0 0 0 R W R R R R R R R R Bit 7 6 5 4 3 2 1 0 CMF CKS1 CKS0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R R R R R W R W Note The only value that can be written is 0 to clear the flag Bits 15 to 8 and 5 to 2 Reserved These bits are always read as 0 The write value should always be 0 Bit 7 Compare Match Flag CM...

Page 402: ...CNT0 Compare match counter 0 CMCNT0 is a 16 bit register used as an up counter When an internal clock is selected with the CKS1 and CKS0 bits in the CMCSR0 register and the STR bit in CMSTR is set to 1 CMCNT0 begins incrementing on that clock When the CMCNT0 value matches that of compare match constant register 0 CMCOR0 CMCNT0 is cleared to H 0000 and the CMF flag in CMCSR0 is set to 1 CMCNT0 is i...

Page 403: ... R W R W R W R W R W R W 11 4 3 Operation Period Count Operation When an internal clock is selected with the CKS1 and CKS0 bits in the CMCSR0 register and the STR bit in CMSTR is set to 1 CMCNT0 begins incrementing on the selected clock When the CMCNT counter value matches that of CMCOR0 the CMCNT0 counter is cleared to H 0000 and the CMF flag in the CMCSR0 register is set to 1 The CMCNT0 counter ...

Page 404: ...h Flag Setting Timing The CMF bit in the CMCSR0 register is set to 1 by the compare match signal generated when the CMCOR0 register and the CMCNT0 counter match The compare match signal is generated in the final state of the match timing at which the CMCNT0 counter matching count value is updated Consequently after the CMCOR0 register and the CMCNT0 counter match a compare match signal will not be...

Page 405: ... 27 CMF Setting Timing Compare Match Flag Clearing Timing The CMF bit in the CMCSR0 register is cleared by writing 0 to it after reading 1 Figure 11 28 shows the timing when the CMF bit is cleared by the CPU CK CMF CMCSR0 write cycle T1 T2 Figure 11 28 Timing of CMF Clearing by the CPU ...

Page 406: ...o 1 RTRG1 RTRG0 0 in SCFCR Table 11 8 Transfer Conditions and Register Settings for Transfer between On Chip SCI and External Memory Transfer Conditions Register Setting Transfer source RDR1 of on chip IrDA SAR3 H 0400014A Transfer destination External memory DAR3 H 00400000 Number of transfers 64 DMATCR3 H 00000040 Transfer source address Fixed CHCR3 H 00004B05 Transfer destination address Increm...

Page 407: ...1 When the address reload function is on the value set in SAR returns to the initially set value every four transfers In this example when a transfer request is generated from the A D converter byte data is read from the register at address H 04000080 in the A D converter and is written to external memory address H 00400000 Since longword data has been transferred the values in SAR and DAR are H 0...

Page 408: ... to 1 2 The transfer request source flag is cleared regardless of whether the address reload function is on or off if transfers are executed until the value in DMATCR reaches 0 3 Specify burst mode when using the address reload function This function may not be correctly executed in cycle steal mode 4 Set a multiple of four in DMATCR when using the address reload function This function may not be ...

Page 409: ...dress again and the value stored in that address is read and stored in the address set in DAR In the example shown in table 11 11 when an SCIF transfer request is generated the DMAC reads the value in address H 00400000 set in SAR3 Since the value H 00450000 is stored in that address the DMAC reads the value H 00450000 Next the DMAC uses that read value as an address again and reads the value H 55...

Page 410: ...mal operation is not guaranteed if settings for another register are made last 7 Even if the maximum number of transfers are performed in the same channel after the DMATCR count reaches 0 and DMA transfer ends normally write 0 to DMATCR Otherwise normal DMA transfer may not be performed 8 When using the address reload function specify burst mode as the transfer mode In cycle steal mode normal DMA ...

Page 411: ...392 ...

Page 412: ... more information on the clock pulse generator All channels can operate when the SH7709S is in standby mode When the RTC output clock is being used as the counter input clock the SH7709S is still able to count in standby mode Synchronized read TCNT is a sequentially changing 32 bit register Since the peripheral module used has an internal bus width of 16 bits a time lag can occur between the time ...

Page 413: ...Ch 0 Interrupt controller Interrupt controller Interrupt controller Counter controller Counter controller TUNI1 TUNI2 TICPI2 TCR2 TCPR2 TCNT2 TCOR2 TMU Ch 1 Ch 2 Clock controller TOCR TSTR TCR Legend Timer output control register Timer start register TCNT TCOR TCPR2 32 bit timer counter 32 bit timer constant register 32 bit input capture register Timer control register Figure 12 1 Block Diagram of...

Page 414: ...FFFFE90 8 Timer start register TSTR R W H 00 H FFFFFE92 8 0 Timer constant register 0 TCOR0 R W H FFFFFFFF H FFFFFE94 32 Timer counter 0 TCNT0 R W H FFFFFFFF H FFFFFE98 32 Timer control register 0 TCR0 R W H 0000 H FFFFFE9C 16 1 Timer constant register 1 TCOR1 R W H FFFFFFFF H FFFFFEA0 32 Timer counter 1 TCNT1 R W H FFFFFFFF H FFFFFEA4 32 Timer control register 1 TCR1 R W H 0000 H FFFFFEA8 16 2 Ti...

Page 415: ...s the PTH7 pin when the pin is used as TCLK bits PH7MD1 and PH7MD0 in the PHCR register should be set to 00 the other function setting Bit 0 TCOE Description 0 Timer clock pin TCLK used as external clock input or input capture control input pin for the on chip timer Initial value 1 Timer clock pin TCLK used as output pin for on chip RTC output clock 12 2 2 Timer Start Register TSTR TSTR is an 8 bi...

Page 416: ... value 1 TCNT0 counts 12 2 3 Timer Control Registers TCR The timer control registers TCR control the timer counters TCNT and interrupts The TMU has three TCR registers one for each channel The TCR registers are 16 bit readable writable registers that control the issuance of interrupts when the flag indicating timer counter TCNT underflow has been set to 1 and also carry out counter clock selection...

Page 417: ...PSC0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R W R W R W R W Bits 15 to 10 9 except TCR2 7 and 6 except TCR2 Reserved These bits are always read as 0 The write value should always be 0 Bit 9 Input Capture Interrupt Flag ICPF A function of channel 2 only the flag is set when input capture is requested via the TCLK pin Bit 9 ICPF Description 0 No input capture request has been issued Clear...

Page 418: ...CLK pin to input mode with the TCOE bit in the TOCR register Additionally use the CKEG bit to designate use of either the rising or falling edge of the TCLK pin to set the value in TCNT2 in the input capture register TCPR2 Bit 7 ICPE1 Bit 6 ICPE0 Description 0 0 Input capture function is not used Initial value 1 Reserved Setting prohibited 1 0 Input capture function is used Interrupt due to ICPF T...

Page 419: ...capture register set on both rising and falling edge Note X means 0 1 or don t care Bits 2 to 0 Timer Prescaler 2 to 0 TPSC2 to TPSC0 Select the TCNT count clock Bit 2 TPSC2 Bit 1 TPSC1 Bit 0 TPSC0 Description 0 0 0 Internal clock count on Pφ 4 Initial value 1 Internal clock count on Pφ 16 1 0 Internal clock count on Pφ 64 1 Internal clock count on Pφ 256 1 0 0 Internal clock count on clock output...

Page 420: ... R W R W R W R W R W R W R W Bit 15 14 13 12 11 10 9 8 Initial value 1 1 1 1 1 1 1 1 R W R W R W R W R W R W R W R W R W Bit 7 6 5 4 3 2 1 0 Initial value 1 1 1 1 1 1 1 1 R W R W R W R W R W R W R W R W R W 12 2 5 Timer Counters TCNT The timer counters are 32 bit readable writable registers The TMU has three timer counters one for each channel TCNT counts down upon input of a clock The clock input...

Page 421: ... halves are not read separately The entire 32 bit data in TCNT can thus be read at once TCNT is initialized to H FFFFFFFF by a power on reset or manual reset but is not initialized and retains its contents in standby mode Bit 31 30 29 28 27 26 25 24 Initial value 1 1 1 1 1 1 1 1 R W R W R W R W R W R W R W R W R W Bit 23 22 21 20 19 18 17 16 Initial value 1 1 1 1 1 1 1 1 R W R W R W R W R W R W R ...

Page 422: ...2 When a TCPR2 setting indication due to the TCLK pin occurs the value of TCNT2 is copied into TCPR2 TCNT2 is not initialized by a power on reset or manual reset but is not initialized and retains its contents or in standby mode Bit 31 30 29 28 27 26 25 24 Initial value R W R R R R R R R R Bit 23 22 21 20 19 18 17 16 Initial value R W R R R R R R R R Bit 15 14 13 12 11 10 9 8 Initial value R W R R...

Page 423: ...lue is copied from TCOR to TCNT and the down count operation is continued The count operation is set as follows figure 12 2 1 Select the counter clock with the TPSC2 TPSC0 bits in the timer control register TCR If the external clock is selected set the TCLK pin to input mode with the TOCE bit in TOCR and select its edge with the CKEG1 and CKEG0 bits in TCR 2 Use the UNIE bit in TCR to set whether ...

Page 424: ...er counter Start counting 1 2 4 5 6 Set interrupt generation When using input capture function 3 Note When an interrupt has been generated clear the flag in the interrupt handler that caused it If interrupts are enabled without clearing the flag another interrupt will be generated Figure 12 2 Setting the Count Operation ...

Page 425: ... 3 Auto Reload Count Operation TCNT Count Timing Internal Clock Operation Set the TPSC2 TPSC0 bits in TCR to select whether peripheral module clock Pφ or one of the four internal clocks created by dividing it is used Pφ 4 Pφ 16 Pφ 64 Pφ 256 Figure 12 4 shows the timing Pφ Internal clock TCNT input clock TCNT N 1 N N 1 Figure 12 4 Count Timing when Operating on Internal Clock ...

Page 426: ...ct the on chip RTC clock as the timer clock Figure 12 6 shows the timing RTC output clock TCNT TCNT input clock N 1 N N 1 Figure 12 6 Count Timing when Operating on On Chip RTC Clock 12 3 2 Input Capture Function Channel 2 has an input capture function figure 12 7 When using the input capture function set the TCLK pin to input mode with the TCOE bit in the timer output control register TOCR and se...

Page 427: ...unction Using TCLK Rising Edge 12 4 Interrupts There are two sources of TMU interrupts underflow interrupts TUNI and interrupts when using the input capture function TICPI2 12 4 1 Status Flag Setting Timing UNF is set to 1 when the TCNT underflows Figure 12 8 shows the timing Pφ TCNT Underflow signal UNF TUNI TCOR value H 00000000 Figure 12 8 UNF Setting Timing ...

Page 428: ...t are both set to 1 an interrupt is requested Codes are set in the interrupt event registers INTEVT INTEVT2 for these interrupts and interrupt handling occurs according to the codes The relative priorities of channels can be changed using the interrupt controller see section 4 Exception Handling and section 6 Interrupt Controller INTC Table 12 3 lists TMU interrupt sources Table 12 3 TMU Interrupt...

Page 429: ...he appropriate start bits for the channel STR2 STR0 in the timer start register TSTR to halt timer counting 12 5 2 Reading Registers Synchronization processing is performed for timer counting during register reads When timer counting and register read processing are performed simultaneously the register value before TCNT counting down with synchronization processing is read ...

Page 430: ...4 Hz timer binary display Start stop function 30 second adjust function Alarm interrupt Frame comparison of seconds minutes hours date day of the week and month can be used as conditions for the alarm interrupt Cyclic interrupts The interrupt cycle may be 1 256 second 1 64 second 1 16 second 1 4 second 1 2 second 1 second or 2 seconds Carry interrupt A carry interrupt indicates when a carry occurs...

Page 431: ...NT Month counter RYRCNT Year counter RSECAR Second alarm register RMINAR Minute alarm register RHRAR Hour alarm register RWKAR Day of week alarm register RDAYAR Day alarm register RMONAR Month alarm register RCR1 RTC control register 1 RCR2 RTC control register 2 R64CNT Reset RSECCNT RMINCNT RHRCNT RWKCNT 16 384 kHz RDAYCNT RMONCNT RYRCNT Comparator RSECAR RMINAR RHRAR RWKAR RDAYAR RCR1 RCR2 30 se...

Page 432: ...t TCLK I O External clock input pin input capture control input pin realtime clock RTC output pin shared by TMU Dedicated power supply pin for RTC Vcc RTC Dedicated power supply pin for RTC 1 Dedicated GND pin for RTC Vss RTC Dedicated GND pin for RTC 1 Notes 1 Except in hardware standby mode power must be supplied to all power supply pins including these even when only the RTC is used including s...

Page 433: ...ter RDAYCNT R W Undefined H FFFFFECA 8 Month counter RMONCNT R W Undefined H FFFFFECC 8 Year counter RYRCNT R W Undefined H FFFFFECE 8 Second alarm register RSECAR R W Undefined H FFFFFED0 8 Minute alarm register RMINAR R W Undefined H FFFFFED2 8 Hour alarm register RHRAR R W Undefined H FFFFFED4 8 Day of week alarm register RWKAR R W Undefined H FFFFFED6 8 Date alarm register RDAYAR R W Undefined...

Page 434: ...z 8Hz 16Hz 32Hz 64Hz Initial value 0 R W R R R R R R R R 13 2 2 Second Counter RSECCNT The second counter RSECCNT is an 8 bit readable writable register used for setting counting in the BCD coded second section of the RTC The count operation is performed by a carry for each second of the 64 Hz counter The range that can be set is 00 59 decimal Errant operation will result if any other value is set...

Page 435: ... 7 6 5 4 3 2 1 0 10 minutes 1 minute Initial value 0 R W R R W R W R W R W R W R W R W 13 2 4 Hour Counter RHRCNT The hour counter RHRCNT is an 8 bit readable writable register used for setting counting in the BCD coded hour section of the RTC The count operation is performed by a carry for each 1 hour of the minute counter The range that can be set is 00 23 decimal Errant operation will result if...

Page 436: ... 6 decimal Errant operation will result if any other value is set Carry out write processing after halting the count operation with the START bit in RCR2 RWKCNT is not initialized by a power on reset or manual reset or in standby mode Bit 7 6 5 4 3 2 1 0 Day of week Initial value 0 0 0 0 0 R W R R R R R R W R W R W Days of the week are coded as shown in table 13 3 Table 13 3 Day of Week Codes RWKC...

Page 437: ... with each month and in leap years Please confirm the correct setting Bit 7 6 5 4 3 2 1 0 10 days 1 day Initial value 0 0 R W R R R W R W R W R W R W R W 13 2 7 Month Counter RMONCNT The month counter RMONCNT is an 8 bit readable writable register used for setting counting in the BCD coded month section of the RTC The count operation is performed by a carry for each month of the date counter The r...

Page 438: ...3 2 1 0 10 years 1 year Initial value R W R W R W R W R W R W R W R W R W 13 2 9 Second Alarm Register RSECAR The second alarm register RSECAR is an 8 bit readable writable register and an alarm register corresponding to the BCD coded second section counter RSECCNT of the RTC When the ENB bit is set to 1 a comparison with the RSECCNT value is performed From among the RSECAR RMINAR RHRAR RWKAR RDAY...

Page 439: ...n standby mode Bit 7 6 5 4 3 2 1 0 ENB 10 minutes 1 minute Initial value 0 R W R W R W R W R W R W R W R W R W 13 2 11 Hour Alarm Register RHRAR The hour alarm register RHRAR is an 8 bit readable writable register and an alarm register corresponding to the BCD coded hour section counter RHRCNT of the RTC When the ENB bit is set to 1 a comparison with the RHRCNT value is performed From among the RS...

Page 440: ... those with ENB bits set to 1 and if each of those coincide an RTC alarm interrupt is generated The range that can be set is 0 6 decimal ENB bit Errant operation will result if any other value is set The ENB bit in RWKAR is initialized by a power on reset The remaining RWKAR fields are not initialized and retain their contents by a manual reset or in standby mode Bit 7 6 5 4 3 2 1 0 ENB Day of wee...

Page 441: ...ed and retain their contents by a manual reset or in standby mode Bit 7 6 5 4 3 2 1 0 ENB 10 days 1 day Initial value 0 0 R W R W R R W R W R W R W R W R W 13 2 14 Month Alarm Register RMONAR The month alarm register RMONAR is an 8 bit readable writable register and an alarm register corresponding to the BCD coded month section counter RMONCNT of the RTC When the ENB bit is set to 1 a comparison w...

Page 442: ... W R W R R R W Bit 7 Carry Flag CF Status flag that indicates that a carry has occurred Setting CF to 1 indicates reading of a counter register value has occurred when 1 the second counter is carried or 2 the 64 Hz counter is carried A count register value read at this time cannot be guaranteed another read is required Bit 7 CF Description 0 No count up of R64CNT or RSECCNT Clearing condition When...

Page 443: ... Contents do not change when 1 is written to AF 13 2 16 RTC Control Register 2 RCR2 The RTC control register 2 RCR2 is an 8 bit readable writable register for periodic interrupt control 30 second adjustment ADJ divider circuit RESET and RTC count start stop control It is initialized to H 09 by a power on reset It is initialized except for RTCEN and START by a manual reset It is not initialized and...

Page 444: ... 3 RTCEN Controls the operation of the crystal oscillator for the RTC Bit 3 RTCEN Description 0 Crystal oscillator for RTC is halted 1 Crystal oscillator for RTC runs Initial value Bit 2 30 Second Adjustment ADJ When 1 is written to the ADJ bit times of 29 seconds or less will be rounded to 00 seconds and 30 seconds or more to 1 minute The divider circuit RTC prescaler and R64CNT will be simultane...

Page 445: ...All the registers should be set after the power is turned on 13 3 2 Setting the Time Figure 13 2 shows how to set the time when the clock is stopped This works when the entire calendar or clock is to be set Programming can be easily performed Write 1 to RESET and 0 to START in the RCR2 register Order is irrelevant Write 1 to START in the RCR2 register Set seconds minutes hour day day of the week m...

Page 446: ...y be used Write 0 to CF in RCR1 Note Set AF to 1 so that alarm flag is not cleared Clear CIE in RCR1 to 0 Read RCR1 and check CF Write 0 to CIE in RCR1 Carry flag 1 No Yes Clear the carry flag Disable the carry interrupt Read counter register Write 1 to CIE in RCR1 and write 0 to CF in RCR1 Note Set AF in RCR1 to 1 so that alarm flag is not cleared Interrupt generated No Yes Enable the carry inter...

Page 447: ...t in the AF bit bit 0 in RCR1 Alarm detection can be checked by reading this bit but normally it is done by interrupt If 1 is placed in the AIE bit bit 3 in RCR1 an interrupt is generated when an alarm occurs Disable interrupts for preventing error interrupts clear the AIE bit in RCR1 to 0 Then write 1 to the AIE bit in RCR1 Clock running Set alarm time Set whether to use alarm interrupt Always re...

Page 448: ...e 10 MΩ RD Typ value 400 kΩ 3 Cin and Cout values include floating capacitance due to the wiring Take care when using a ground plane 4 The crystal oscillation settling time depends on the mounted circuit constants floating capacitance etc and should be decided after consultation with the crystal resonator manufacturer 5 Place the crystal resonator and load capacitors Cin and Cout as close as possi...

Page 449: ...an be generated periodically at the interval set by the periodic interrupt enable flag PES in RTC control register 2 RCR2 When the time set by the periodic interrupt enable flag PES has elapsed the periodic interrupt flag PEF is set to 1 The periodic interrupt flag PEF is cleared to 0 upon periodic interrupt generation when the periodic interrupt enable flag PES is set Periodic interrupt generatio...

Page 450: ...ations chip that employs a standard asynchronous serial system It can also communicate with two or more other processors using the multiprocessor communication function There are 12 selectable serial data communication formats Data length 7 or 8 bits Stop bit length 1 or 2 bits Parity Even odd or none Multiprocessor bit 1 or 0 Receive error detection Parity overrun and framing errors Break detecti...

Page 451: ...ram of the SCI RxD TxD SCK SCI SCBRR SCSSR SCSCR SCTSR SCRDR SCRSR SCSMR SCPCR SCPDR Parity generation Parity check Clock External clock Module data bus Internal data bus Pφ Pφ 4 Pφ 16 Pφ 64 TXI TEI RXI ERI Bus interface Baud rate generator Transmit receive control SCRSR SCRDR SCTSR SCTDR SCSMR Legend Receive shift register Receive data register Transmit shift register Transmit data register Seria...

Page 452: ...us Output enable Clock input enable SCI Serial clock output Serial clock input R SCP1MD0 PCRW Reset C Q Q D R SCP1MD1 PCRW Reset C Q D R SCP1DT1 PDRW Reset SCPT 1 SCK0 C D PDRW SCPDR write PDRR PCRW SCPDR read SCPCR write PDRR Note Legend When reading the SCK0 pin clear the C A bit in SCSMR and the CKE1 and CKE0 bits in SCSCR to 0 and set the SCP1MD1 bit in SCPCR to 1 see section 14 2 8 SC Port Co...

Page 453: ...data bus Output enable SCI Serial transmission output R SCP0MD0 PCRW Reset C Q Q D R SCP0MD1 PCRW Reset C Q D R SCP0DT1 PDRW Reset SCPT 0 TxD0 C D PCRW PDRW SCPCR write SCPDR write Legend Figure 14 3 SCPT 0 TxD0 Pin ...

Page 454: ... 14 1 Table 14 1 SCI Pins Pin Name Abbreviation I O Function Serial clock pin SCK0 I O Clock I O Receive data pin RxD0 Input Receive data input Transmit data pin TxD0 Output Transmit data output Note These pins are made to function as serial pins by performing SCI operation settings with the TE RE CKEI and CKE0 bits in SCSCR and the C A bit in SCSMR Break state transmission and detection can be pe...

Page 455: ...6 H A4000136 2 8 SC port control register SCPCR R W H A888 H 04000116 H A4000116 2 16 Notes These registers are located in area 1 of physical space Therefore when the cache is on either access these registers from the P2 area of logical space or else make an appropriate setting using the MMU so that these registers are not cached 1 The only value that can be written is 0 to clear the flags 2 When ...

Page 456: ...nd in standby or module standby mode Bit 7 6 5 4 3 2 1 0 Initial value 0 0 0 0 0 0 0 0 R W R R R R R R R R 14 2 3 Transmit Shift Register SCTSR The transmit shift register SCTSR transmits serial data The SCI loads transmit data from the transmit data register SCTDR into SCTSR then transmits the data serially from the TxD pin LSB bit 0 first After transmitting one byte data the SCI automatically lo...

Page 457: ...module standby mode Bit 7 6 5 4 3 2 1 0 Initial value 1 1 1 1 1 1 1 1 R W R W R W R W R W R W R W R W R W 14 2 5 Serial Mode Register SCSMR The serial mode register SCSMR is an 8 bit register that specifies the SCI serial communication format and selects the clock source for the baud rate generator The CPU can always read and write to SCSMR SCSMR is initialized to H 00 by a reset and in standby or...

Page 458: ...ty is checked according to the even odd O E mode setting Bit 4 Parity Mode O E Selects even or odd parity when parity bits are added and checked The O E setting is used only in asynchronous mode and only when the parity enable bit PE is set to 1 to enable parity addition and checking The O E setting is ignored in synchronous mode or in asynchronous mode when parity addition and checking is disable...

Page 459: ...processor Mode MP Selects multiprocessor format When multiprocessor format is selected settings of the parity enable PE and parity mode O E bits are ignored The MP bit setting is used only in asynchronous mode it is ignored in synchronous mode For the multiprocessor communication function see section 14 3 3 Multiprocessor Communication Bit 2 MP Description 0 Multiprocessor function disabled Initia...

Page 460: ...Transmit data empty interrupt request TXI is disabled Initial value 1 Transmit data empty interrupt request TXI is enabled Note The TXI interrupt request can be cleared by reading TDRE after it has been set to 1 then clearing TDRE to 0 or by clearing TIE to 0 Bit 6 Receive Interrupt Enable RIE Enables or disables the receive data full interrupt RXI requested when the receive data register full bit...

Page 461: ... cleared to 0 after writing of transmit data into the SCTDR Select the transmit format in SCSMR before setting TE to 1 Bit 4 Receive Enable RE Enables or disables the SCI serial receiver Bit 4 RE Description 0 Receiver disabled 1 Initial value 1 Receiver enabled 2 Notes 1 Clearing RE to 0 does not affect the receive flags RDRF FER PER ORER These flags retain their previous values 2 Serial receptio...

Page 462: ... a multiprocessor bit of 1 is received Note The SCI does not transfer receive data from SCRSR to SCRDR does not detect receive errors and does not set the RDRF FER and ORER flags in the serial status register SCSSR When it receives data that includes MPB 1 the SCSSR s MPB flag is set to 1 and the SCI automatically clears MPIE to 0 generates RXI and ERI interrupts if the TIE and RIE bits in the SCS...

Page 463: ...e table 14 10 in section 14 3 Operation Bit 1 CKE1 Bit 0 CKE0 Description 0 0 Asynchronous mode Internal clock SCK pin used for input pin input signal is ignored Initial value Synchronous mode Internal clock SCK pin used for synchronous clock output Initial value 1 Asynchronous mode Internal clock SCK pin used for clock output 1 Synchronous mode Internal clock SCK pin used for synchronous clock ou...

Page 464: ...RF ORER FER PER TEND MPB MPBT Initial value 1 0 0 0 0 1 0 0 R W R W R W R W R W R W R R R W Note The only value that can be written is 0 to clear the flag Bit 7 Transmit Data Register Empty TDRE Indicates that the SCI has loaded transmit data from SCTDR into SCTSR and new serial transmit data can be written in SCTDR Bit 7 TDRE Description 0 SCTDR contains valid transmit data Clearing condition TDR...

Page 465: ...next data ends an overrun error ORER occurs and the receive data is lost Bit 5 Overrun Error ORER Indicates that data reception aborted due to an overrun error Bit 5 ORER Description 0 Receiving is in progress or has ended normally 1 Initial value Clearing conditions 1 ORER is cleared to 0 when the chip is reset or enters standby mode 2 When software reads ORER after it has been set to 1 then writ...

Page 466: ...eiving cannot continue while FER is set to 1 In synchronous mode serial transmitting is also disabled Bit 3 Parity Error PER Indicates that data reception with parity aborted due to a parity error in asynchronous mode Bit 3 PER Description 0 Receiving is in progress or has ended normally 1 Initial value Clearing conditions 1 PER is cleared to 0 when the chip is reset or enters standby mode 2 When ...

Page 467: ...PB Stores the value of the multiprocessor bit in receive data when a multiprocessor format is selected for receiving in asynchronous mode MPB is a read only bit and cannot be written to Bit 1 MPB Description 0 Multiprocessor bit value in receive data is 0 Initial value 1 Multiprocessor bit value in receive data is 1 Note If RE is cleared to 0 when a multiprocessor format is selected MPB retains it...

Page 468: ...MD0 SCP3 MD1 SCP3 MD0 SCP2 MD1 SCP2 MD0 SCP1 MD1 SCP1 MD0 SCP0 MD1 SCP0 MD0 Initial value 1 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 R W R W R W R W R W R W R W R W R W R W R W R W R W R W R W R W R W SCPDR Bit 7 6 5 4 3 2 1 0 SCP7DT SCP6DT SCP5DT SCP4DT SCP3DT SCP2DT SCP1DT SCP0DT Initial value 0 0 0 0 0 0 0 0 R W R R W R W R W R W R W R W R W SCI pin I O and data control are performed by bits 3 0 of SCPCR ...

Page 469: ...0 SCP0MD0 Description 0 0 SCP0DT bit value is not output to TxD pin Initial value 0 1 SCP0DT bit value is output to TxD pin SCPDR Bit 0 Serial Port Break Data SCP0DT Specifies the serial port RxD pin input data and TxD pin output data The TxD pin output condition is specified by the SCP0MD1 and SCP0MD0 bits When the TxD pin is set to output mode the value of the SCP0DT bit is output to the TxD pin...

Page 470: ... be set in two channels Bit 7 6 5 4 3 2 1 0 Initial value 1 1 1 1 1 1 1 1 R W R W R W R W R W R W R W R W R W The SCBRR setting is calculated as follows Asynchronous mode N Pφ 64 22n 1 B 106 1 Synchronous mode N Pφ 8 22n 1 B 106 1 B Bit rate bits s N SCBRR setting for baud rate generator 0 N 255 Pφ Operating frequency for peripheral modules MHz n Baud rate generator clock source n 0 1 2 3 for the ...

Page 471: ...0 63 0 00 2400 0 25 0 16 0 26 1 14 0 31 0 00 4800 0 12 0 16 0 13 2 48 0 15 0 00 9600 0 6 6 99 0 6 2 48 0 7 0 00 19200 0 2 8 51 0 2 13 78 0 3 0 00 31250 0 1 0 00 0 1 4 86 0 1 22 88 38400 0 1 18 62 0 1 14 67 0 1 0 00 Pφ MHz 3 3 6864 4 Bit Rate bits s n N Error n N Error n N Error 110 1 212 0 03 2 64 0 70 2 70 0 03 150 1 155 0 16 1 191 0 00 1 207 0 16 300 1 77 0 16 1 95 0 00 1 103 0 16 600 0 155 0 16...

Page 472: ...00 0 15 0 00 0 15 1 73 0 19 2 34 19200 0 7 0 00 0 7 1 73 0 9 2 34 31250 0 4 1 70 0 4 0 00 0 5 0 00 38400 0 3 0 00 0 3 1 73 0 4 2 34 Pφ MHz 6 144 7 3728 8 Bit Rate bits s n N Error n N Error n N Error 110 2 108 0 08 2 130 0 07 2 141 0 03 150 2 79 0 00 2 95 0 00 2 103 0 16 300 1 159 0 00 1 191 0 00 1 207 0 16 600 1 79 0 00 1 95 0 00 1 103 0 16 1200 0 159 0 00 0 191 0 00 0 207 0 16 2400 0 79 0 00 0 9...

Page 473: ... 19200 0 23 0 00 0 25 0 16 0 31 0 00 0 32 1 36 31250 0 14 1 70 0 15 0 00 0 19 1 70 0 19 0 00 38400 0 11 0 00 0 12 0 16 0 15 0 00 0 15 1 73 Pφ MHz 24 24 576 28 7 30 Bit Rate bits s n N Error n N Error n N Error n N Error 110 3 106 0 44 3 108 0 08 3 126 0 31 3 132 0 13 150 3 77 0 16 3 79 0 00 3 92 0 46 3 97 0 35 300 2 155 0 16 2 159 0 00 2 186 0 08 2 194 0 16 600 2 77 0 16 2 79 0 00 2 92 0 46 2 97 0...

Page 474: ... 1 99 1 199 2 99 2 178 2 187 5k 0 199 1 99 1 199 2 89 2 93 10k 0 99 0 199 1 99 1 178 1 187 25k 0 39 0 79 0 159 1 71 1 74 50k 0 19 0 39 0 79 0 143 0 149 100k 0 9 0 19 0 39 0 71 0 74 250k 0 3 0 7 0 15 0 29 500k 0 1 0 3 0 7 0 14 1M 0 0 0 1 0 3 2M 0 0 0 1 Notes Settings with an error of 1 or less are recommended Blank No setting possible Setting possible but error occurs Continuous transmit receive op...

Page 475: ...Rates for Various Frequencies with Baud Rate Generator Asynchronous Mode Settings Pφ MHz Maximum Bit Rate bits s n N 2 62500 0 0 2 097152 65536 0 0 2 4576 76800 0 0 3 93750 0 0 3 6864 115200 0 0 4 125000 0 0 4 9152 153600 0 0 8 250000 0 0 9 8304 307200 0 0 12 375000 0 0 14 7456 460800 0 0 16 500000 0 0 19 6608 614400 0 0 20 625000 0 0 24 750000 0 0 24 576 768000 0 0 28 7 896875 0 0 30 937500 0 0 ...

Page 476: ... 1 2288 76800 8 2 0000 125000 9 8304 2 4576 153600 12 3 0000 187500 14 7456 3 6864 230400 16 4 0000 250000 19 6608 4 9152 307200 20 5 0000 312500 24 6 0000 375000 24 576 6 1440 384000 28 7 7 1750 448436 30 7 5000 468750 Table 14 8 Maximum Bit Rates with External Clock Input Synchronous Mode Pφ MHz External Input Clock MHz Maximum Bit Rate bits s 8 1 3333 1333333 3 16 2 6667 2666666 7 24 4 0000 400...

Page 477: ...er length In receiving it is possible to detect framing errors FER parity errors PER overrun errors ORER and breaks An internal or external clock can be selected as the SCI clock source When an internal clock is selected the SCI operates using the on chip baud rate generator and can output a serial clock signal with a frequency matching the bit rate When an external clock is selected the external ...

Page 478: ...it 1 1 multiprocessor 2 bits 1 0 format 7 bit 1 bit 1 2 bits 1 Synchronous 8 bit Not set None Note Asterisks indicate don t care bits Table 14 10 SCSMR and SCSCR Settings and SCI Clock Source Selection SCSMR SCSCR Settings SCI Transmit Receive Clock Bit 7 C A Bit 1 CKE1 Bit 0 CKE0 Mode Clock Source SCK Pin Function 0 0 0 Asynchronous Internal SCI does not use the SCK pin 1 mode Outputs a clock wit...

Page 479: ...he mark high state The SCI monitors the line and starts serial communication when the line goes to the space low state indicating a start bit One serial character consists of a start bit low data LSB first starting from the lowerest bit parity bit high or low and stop bit high in that order When receiving in asynchronous mode the SCI synchronizes at the falling edge of the start bit The SCI sample...

Page 480: ...data STOP STOP 1 1 0 0 START 7 bit data P STOP 1 1 0 1 START 7 bit data P STOP STOP 0 1 0 START 8 bit data MPB STOP 0 1 1 START 8 bit data MPB STOP STOP 1 1 0 START 7 bit data MPB STOP 1 1 1 START 7 bit data MPB STOP STOP Notes Don t care bits START Start bit STOP Stop bit P Parity bit MPB Multiprocessor bit Clock An internal clock generated by the on chip baud rate generator or an external clock ...

Page 481: ...ve data register SCRDR which retain their previous contents When an external clock is used the clock should not be stopped during initialization or subsequent operation SCI operation becomes unreliable if the clock is stopped Figure 14 7 shows a sample flowchart for initializing the SCI The procedure for initializing the SCI is 1 Select the clock source in the serial control register SCSCR Leave R...

Page 482: ...smitting serial data The procedure for transmitting serial data is 1 SCI status check and transmit data write Read the serial status register SCSSR check that the TDRE bit is 1 then write transmit data in the transmit data register SCTDR and clear TDRE to 0 2 To continue transmitting serial data Read the TDRE bit to check whether it is safe to write if it reads 1 if so write data in SCTDR then cle...

Page 483: ...TEND bit in SCSSR Break output Yes Clear TE bit in SCSCR to 0 End of transmission Yes Read TDRE bit in SCSSR No No Yes No No 1 2 3 Start of transmission Set SCPDR and SCPCR Note Numbers in parentheses refer to steps in the preceding procedure description Figure 14 8 Sample Flowchart for Transmitting Serial Data ...

Page 484: ... output b Transmit data Seven or eight bits of data are output LSB first c Parity bit or multiprocessor bit One parity bit even or odd parity or one multiprocessor bit is output Formats in which neither a parity bit nor a multiprocessor bit is output can also be selected d Stop bit One or two 1 bits stop bits are output e Marking Output of 1 bits continues until the start bit of the next transmit ...

Page 485: ... for receiving serial data after enabling the SCI for reception is 1 Receive error handling and break detection If a receive error occurs read the ORER PER and FER bits in SCSSR to identify the error After executing the necessary error handling clear ORER PER and FER to 0 Receiving cannot resume if ORER PER or FER remains set to 1 When a framing error occurs the RxD pin can be read to detect the b...

Page 486: ...R FER ORER 1 RDRF 1 Yes Yes Clear RE bit in SCSCR to 0 No No Read RDRF bit in SCSSR Error handling Read receive data from SCRDR and clear RDRF bit in SCSSR to 0 1 2 3 Note Numbers in parentheses refer to steps in the preceding procedure description Figure 14 10 Sample Flowchart for Receiving Serial Data ...

Page 487: ...ror handling FER 1 Yes Break No Framing error handling PER 1 Yes Parity error handling Clear ORER PER and FER bits in SCSSR to 0 End No No No Yes Yes Clear RE bit in SCSCR to 0 Figure 14 10 Sample Flowchart for Receiving Serial Data cont ...

Page 488: ...s receive error the SCI operates as indicated in table 14 12 Note When a receive error flag is set further receiving is disabled The RDRF bit is not set to 1 Be sure to clear the error flags 4 After setting RDRF to 1 if the receive data full interrupt enable bit RIE is set to 1 in SCSCR the SCI requests a receive data full interrupt RXI If one of the error flags ORER PER or FER is set to 1 and the...

Page 489: ...on cycle consists of an ID sending cycle that identifies the receiving processor and a data sending cycle The multiprocessor bit distinguishes ID sending cycles from data sending cycles The transmitting processor starts by sending the ID of the receiving processor with which it wants to communicate as data with the multiprocessor bit set to 1 Next the transmitting processor sends transmit data wit...

Page 490: ...ultiprocessor Serial Data Figure 14 13 shows a sample flowchart for transmitting multiprocessor serial data The procedure for transmitting multiprocessor serial data is 1 SCI status check and transmit data write Read the serial status register SCSSR check that the TDRE bit is 1 then write transmit data in the transmit data register SCTDR Also set MPBT multiprocessor bit transfer to 0 or 1 in SCSSR...

Page 491: ...ar TDRE bit to 0 Break output Yes Clear TE bit SCSCR to 0 End of transmission Yes Read TDRE bit in SCSSR No No Yes No No 1 2 3 Start of transmission Set SCPDR and SCPCR Note Numbers in parentheses refer to steps in the preceding procedure description Figure 14 13 Sample Flowchart for Transmitting Multiprocessor Serial Data ...

Page 492: ... pin a Start bit One 0 bit is output b Transmit data Seven or eight bits are output LSB first c Multiprocessor bit One multiprocessor bit MPBT value is output d Stop bit One or two 1 bits stop bits are output e Marking Output of 1 bits continues until the start bit of the next transmit data 3 The SCI checks the TDRE bit when it outputs the stop bit If TDRE is 0 the SCI transfers data from SCTDR in...

Page 493: ...le Set the MPIE bit in the serial control register SCSCR to 1 2 SCI status check and compare to ID reception Read the serial status register SCSSR check that RDRF is set to 1 then read data from the receive data register SCRDR and compare with the processor s own ID If the ID does not match the receive data set MPIE to 1 again and clear RDRF to 0 If the ID matches the receive data clear RDRF to 0 ...

Page 494: ...in SCSSR FER 1 or ORER 1 Read RDRF bit in SCSSR Read receive data from SCRDR Is ID the station s ID Yes Read ORER and FER bits in SSCSR No Error handling Yes Yes Yes No Start of reception No Yes Read receive data from SCRDR 1 2 4 3 Note Numbers in parentheses refer to steps in the preceding procedure description Figure 14 15 Sample Flowchart for Receiving Multiprocessor Serial Data ...

Page 495: ...ming error handling Yes Error handling Overrun error handling Yes FER 1 Clear ORER and FER bits in SCSSR to 0 End No No No Clear RE bit in SCSCR to 0 Figure 14 15 Sample Flowchart for Receiving Multiprocessor Serial Data cont ...

Page 496: ...match data RXI interrupt handler reads RDR data and clears RDRF bit to 0 ID is not station s ID so MPIE bit is set to 1 again No RXI interrupt generated RDR state is maintained 0 1 1 1 1 0 1 Stop bit MPB Serial data Start bit Data ID1 Data data 1 Start bit MPB Stop bit Idle mark state D0 D1 D7 D0 D1 D7 0 Figure 14 16 Example of SCI Receive Operation 8 Bit Data with Multiprocessor Bit and One Stop ...

Page 497: ...e D0 D1 D7 D0 D1 D7 0 RXI interrupt request multiprocessor interrupt generated MPIE 0 RXI interrupt handler reads RDR data and clears RDRF bit to 0 ID is that of station so reception continues unchanged and data is received by RXI interrupt handler MPIE bit set to 1 again Figure 14 16 Example of SCI Receive Operation cont 8 Bit Data with Multiprocessor Bit and One Stop Bit ...

Page 498: ... 5 Bit 6 Bit 7 LSB MSB Serial clock Serial data One unit of communication data character or frame Note High except in continuous transmitting or receiving Figure 14 17 Data Format in Synchronous Communication In synchronous serial communication each data bit is output on the communication line from one falling edge of the serial clock to the next Data is guaranteed valid at the rising edge of the ...

Page 499: ...receiving or changing the mode or communication format the software must clear the TE and RE bits to 0 in the serial control register SCSCR then initialize the SCI Clearing TE to 0 sets TDRE to 1 and initializes the transmit shift register SCTSR Clearing RE to 0 however does not initialize the RDRF PER FER and ORER flags and receive data register SCRDR which retain their previous contents Figure 1...

Page 500: ... description Figure 14 18 Sample Flowchart for SCI Initialization Transmitting Serial Data Synchronous Mode Figure 14 19 shows a sample flowchart for transmitting serial data The procedure for transmitting serial data is 1 SCI status check and transmit data write Read the serial status register SCSSR check that the TDRE bit is 1 then write transmit data in the transmit data register SCTDR and clea...

Page 501: ...ission 1 2 TDRE 1 Write transmit data to SCTDR and clear TDRE bit in SCSSR to 0 Yes No Read TEND bit in SCSSR TEND 1 Yes No Clear TE bit in SCSCR to 0 Note Numbers in parentheses refer to steps in the preceding procedure description Figure 14 19 Sample Flowchart for Transmitting Serial Data ...

Page 502: ... TxD pin in order from the LSB bit 0 to the MSB bit 7 3 The SCI checks the TDRE bit when it outputs the MSB bit 7 If TDRE is 0 the SCI loads data from SCTDR into SCTSR then begins serial transmission of the next frame If TDRE is 1 the SCI sets the TEND bit in SCSSR to 1 transmits the MSB then holds the transmit data pin TxD in the MSB state If the transmit end interrupt enable bit TEIE in SCSCR is...

Page 503: ...f a receive error occurs read the ORER bit in SCSSR to identify the error After executing the necessary error handling clear ORER to 0 Transmitting receiving cannot resume if ORER remains set to 1 2 SCI status check and receive data read Read the serial status register SCSSR check that RDRF is set to 1 then read receive data from the receive data register SCRDR and clear RDRF to 0 The RXI interrup...

Page 504: ... RE bit in SCSCR to 0 No No Read RDRF bit in SCSSR 3 2 Yes Error handling 1 Read receive data from SCRDR and clear RDRF bit in SCSSR to 0 Start of reception Note Numbers in parentheses refer to steps in the preceding procedure description Figure 14 21 Sample Flowchart for Receiving Serial Data ...

Page 505: ... If this check is passed the SCI sets RDRF to 1 and stores the received data in SCRDR If the check is not passed receive error the SCI operates as indicated in table 14 12 This state prevents further transmission or reception While receiving the RDRF bit is not set to 1 Be sure to clear the error flag 3 After setting RDRF to 1 if the receive data full interrupt enable bit RIE is set to 1 in SCSCR ...

Page 506: ... SCTDR and clear TDRE to 0 The TXI interrupt can also be used to determine if the TDRE bit has changed from 0 to 1 2 Receive error handling If a receive error occurs read the ORER bit in SCSSR to identify the error After executing the necessary error handling clear ORER to 0 Transmitting receiving cannot resume if ORER remains set to 1 3 SCI status check and receive data read Read the serial statu...

Page 507: ...ing 2 ORER 1 No Read RDRF bit in SCSSR 4 Yes 3 Read receive data from SCRDR and clear RDRF bit in SCSSR to 0 Clear TE and RE bits in SCSCR to 0 Notes 1 2 Numbers in parentheses refer to steps in the preceding procedure description In switching from transmitting or receiving to simultaneous transmitting and receiving clear both TE and RE to 0 then set both TE and RE to 1 simultaneously Figure 14 23...

Page 508: ...R is set to 1 RXI is requested when the RDRF bit in SCSSR is set to 1 ERI is requested when the ORER PER or FER bit in SCSSR is set to 1 TEI is requested when the TEND bit in SCSSR is set to 1 Where the TXI interrupt indicates that transmit data writing is enabled the TEI interrupt indicates that the transmit operation is complete Table 14 13 SCI Interrupt Sources Interrupt Source Description Prio...

Page 509: ... error 0 0 1 0 O Parity error 0 0 0 1 O Overrun error framing error 1 1 1 0 X Overrun error parity error 1 1 0 1 X Framing error parity error 0 0 1 1 O Overrun error framing error parity error 1 1 1 1 X X Receive data is not transferred from SCRSR to SCRDR O Receive data is transferred from SCRSR to SCRDR Break Detection and Processing Break signals can be detected by reading the RxD pin directly ...

Page 510: ...ransmitting even if TDRE is set to 1 Be sure to clear the receive error flags to 0 before starting to transmit Note that clearing RE to 0 does not clear the receive error flags Receive Data Sampling Timing and Receive Margin in Asynchronous Mode In asynchronous mode the SCI operates on a base clock of 16 times the transfer rate frequency In receiving the SCI synchronizes internally with the fallin...

Page 511: ...retical value A reasonable margin to allow in system designs is 20 to 30 Notes on Synchronous External Clock Mode Do not set TE RE 1 until at least four clocks after external clock SCK has changed from 0 to 1 Set TE RE 1 only when external clock SCK is 1 When receiving RDRF is set to 1 when RE is set to zero 2 5 3 5 clocks after the rising edge of the SCK input of the D7 bit in RxD but data cannot...

Page 512: ...serial communication interface and the smart card interface 15 1 1 Features The smart card interface has the following features Asynchronous mode Data length 8 bits Parity bit generation and check Receive mode error signal detection parity error Transmit mode error signal detection and automatic re transmission of data Supports both direct convention and inverse convention Bit rate can be selected...

Page 513: ...s Internal data bus Pφ Pφ 4 Pφ 16 Pφ 64 TXI RXI ERI Bus interface Baud rate generator Transmit receive control SCSCMR SCRSR SCRDR SCTSR SCTDR SCSMR SCSCR SCSSR SCBRR Legend Smart card mode register Receive shift register Receive data register Transmit shift register Transmit data register Serial mode register Serial control register Serial status register Bit rate register Figure 15 1 Block Diagra...

Page 514: ...mal SCI function They are described in section 14 Serial Communication Interface Table 15 2 Registers Name Abbreviation R W Initial Value 3 Address Access Size Serial mode register SCSMR R W H 00 H FFFFFE80 8 Bit rate register SCBRR R W H FF H FFFFFE82 8 Serial control register SCSCR R W H 00 H FFFFFE84 8 Transmit data register SCTDR R W H FF H FFFFFE86 8 Serial status register SCSSR R W 1 H 84 H ...

Page 515: ...rial parallel conversion format Bit 3 SDIR Description 0 Contents of SCTDR are transferred LSB first and receive data is stored in SCRDR LSB first Initial value 1 Contents of SCTDR are transferred MSB first and receive data is stored in SCRDR MSB first Bit 2 Smart Card Data Inversion SINV Specifies whether to invert the logic level of the data This function is used in combination with bit 3 for tr...

Page 516: ... Register Full RDRE Bit 5 Overrun Error ORER These bits have the same function as in the ordinary SCI See section 14 Serial Communication Interface SCI for more information Bit 4 Error Signal Status ERS In the smart card interface mode bit 4 indicates the state of the error signal returned from the receiving side during transmission The smart card interface cannot detect framing errors Bit 4 ERS D...

Page 517: ...ission 1 0 etu after a one byte serial character is transmitted Note etu is an abbreviation of elementary time unit which is the period for the transfer of 1 bit 15 3 Operation 15 3 1 Overview The primary functions of the smart card interface are described below 1 Each frame consists of 8 bit data and 1 parity bit 2 During transmission the card leaves a guard time of at least 2 etu elementary time...

Page 518: ... card interface on an IC card input the SCK pin output to the IC card s CLK pin This connection is not necessary when the internal clock is used on the IC card Use the chip s port output as the reset signal Apart from these pins power and ground pin connections are usually also required Note When the IC card is not connected and both RE and TE are set to 1 closed communication is possible and auto...

Page 519: ...ting sequence is 1 The data line is high impedance when not in use and is fixed high with a pull up register 2 The transmitting side starts one frame of data transmission The data frame starts with a start bit Ds low level The start bit is followed by eight data bits D0 D7 and a parity bit Dp 3 On the smart card interface the data line returns to high impedance after this The data line is pulled h...

Page 520: ...trol register SCSCR Clear the O E bit to 0 if the IC card uses the direct convention and set it to 1 if the card uses the inverse convention Select the on chip baud rate generator clock source with the CKS1 and CKS0 bits see section 15 3 5 Clock 2 Setting the bit rate register SCBRR Set the bit rate See section 15 3 5 Clock to see how to calculate the set value 3 Setting the serial control registe...

Page 521: ...D2 D1 D0 Dp A Z Z Z A A A A A A Z Z State b Inverse convention SDIR SINV and O E are all 1 Figure 15 4 Waveform of Start Character 15 3 5 Clock Only the internal clock generated by the on chip baud rate generator can be used as the communication clock in the smart card interface The bit rate for the clock is set by the bit rate register SCBRR and the CKS1 and CKS0 bits in the serial mode register ...

Page 522: ...4480 3 4800 0 5824 4 6400 0 7168 5 8064 5 Note The bit rate is rounded to one decimal place Calculate the value to be set in the bit rate register SCBRR from the operating frequency and the bit rate N is an integer in the range 0 N 255 specifying a smallish error N 106 1 1488 22n 1 B φ P Table 15 6 Examples of SCBRR Settings for Bit Rate B Bits s n 0 φ MHz 9600 Bits s 7 1424 10 00 10 7136 13 00 14...

Page 523: ...t card interface Table 15 8 Register Set Values and SCK Pin Register Value SCK Pin Setting SMIF C A CKE1 CKE0 Output State 1 1 1 0 0 0 Port Determined by setting of port register SCP1MD1 and SCP1MD0 bits 1 0 0 1 SCK serial clock output state 2 2 1 1 0 0 Low output Low output state 1 1 0 1 SCK serial clock output state 3 2 1 1 1 0 High output High output state 1 1 1 1 SCK serial clock output state ...

Page 524: ... CKS0 bits in the serial mode register SCSMR At this time also clear the CHR and MP bits to 0 and set the STOP and PE bits to 1 4 Set the SMIF SDIR and SINV bits in the smart card mode register SCSCMR When the SMIF bit is set to 1 the TxD and RxD pins both switch from ports to SCI pins and become high impedance 5 Set the value corresponding to the bit rate in the bit rate register SCBRR 6 Set the ...

Page 525: ...it interval elapsed End 2 Set parity in O E bit set clock in CKS1 and CKS0 bits and set C A in SCSMR 3 Set clock in CKE1 and CKE0 bits and clear TIE RIE TE RE MPIE and TEIE bits to 0 in SCSCR 6 5 4 1 7 No Yes Set SMIF SDIR and SINV bits in SCSMR Note Numbers in parentheses refer to steps in the preceding procedure description Figure 15 5 Initialization Flowchart Example ...

Page 526: ... is set to 1 4 Write the transmit data into SCTDR clear the TDRE flag to 0 and start transmitting The TEND flag will be cleared to 0 5 To transmit more data return to step 2 6 To end transmission clear the TE bit to 0 This processing can be interrupted When the TIE bit is set to 1 and interrupt requests are enabled a transmit data empty interrupt TXI will be requested when the TEND flag is set to ...

Page 527: ...r TDRE flag in SCSSR to 0 1 Clear TE bit in SCSCR to 0 6 Error handling 2 FER ERS 0 TEND 1 Yes Yes Yes Yes No No All data transmitted No TEND 1 No Error handling FER ERS 0 Yes No 4 5 3 Note Numbers in parentheses refer to steps in the preceding procedure description Figure 15 6 Transmission Flowchart ...

Page 528: ...1 4 Read the receive data from SCRDR 5 To receive more data clear the RDRF flag to 0 and return to step 2 6 To end reception clear the RE bit to 0 This processing can be interrupted When the RIE bit is set to 1 and interrupt requests are enabled a receive data full interrupt RXI will be requested when the RDRF flag is set to 1 at the end of reception When an error occurs during reception and eithe...

Page 529: ...om SCRDR and clear RDRF flag in SCSSR to 0 1 Clear RE bit in SCSCR to 0 6 Error handling 2 ORER 0 or PER 0 RDRF 1 Yes Yes Yes No No All data received No 4 5 3 Note Numbers in parentheses refer to steps in the preceding procedure description Figure 15 7 Reception Flowchart Example ...

Page 530: ...END flag in SCSSR to 1 to request a TXI interrupt Set the RDRF flag in SCSSR to 1 to request an RXI interrupt Set the ORER PER or FER ERS flag in SCSSR to 1 to request an ERI interrupt table 15 9 Table 15 9 Smart Card Mode Operating State and Interrupt Sources Mode State Flag Mask Bit Interrupt Source Transmit mode Normal TEND TIE TXI Error FER ERS RIE ERI Receive mode Normal RDRF RIE RXI Error PE...

Page 531: ...pling Timing in Smart Card Mode The receive margin is found from the following equation For smart card mode M 0 5 1 2N D 0 5 N L 0 5 F 1 F 100 Where M Receive margin N Ratio of bit rate to clock N 372 D Clock duty D 0 to 1 0 L Frame length L 10 F Absolute value of clock frequency deviation Using this equation the receive margin when F 0 and D 0 5 is as follows M 0 5 1 2 372 100 49 866 ...

Page 532: ...caused the error 3 When the received parity bit is checked and no error is found the PER bit in SCSSR is not set 4 When the received parity bit is checked and no error is found reception is considered to have been completed normally and the RDRF bit in SCSSR is automatically set to 1 If the RIE bit in SCSCR is enabled at this time an RXI interrupt is requested 5 When a normal frame is received the...

Page 533: ...l indicating the error 3 The FER ERS bit in SCSSR is not set when no error signal is returned from the receiving side 4 When no error signal is returned from the receiving side the TEND bit in SCSSR is set to 1 when the transmission of the frame that includes the retransmission is considered completed If the TIE bit in SCSCR is enabled at this time a TXI interrupt will be requested D0 Ds D2 D1 D4 ...

Page 534: ...l It is also detected by reading the RxD level directly from the port SC data register SCPDR when a framing error occurs Full duplex communication The transmitting and receiving sections are independent so the SCI can transmit and receive simultaneously Both sections use 16 stage FIFO buffering so high speed continuous data transfer is possible in both the transmit and receive directions On chip b...

Page 535: ... TXI TEI RXI BRI Bus interface Baud rate generator Transmit receive control SCRSR SCFRDR2 SCTSR SCFTDR2 SCSMR2 SCSCR2 Legend Receive shift register Receive FIFO data register 2 Transmit shift register Transmit FIFO data register 2 Serial mode register 2 Serial control register 2 SCSSR2 SCBRR2 SCFCR2 SCFDR2 SCPDR SCPCR Serial status register 2 Bit rate register 2 FIFO control register 2 FIFO data c...

Page 536: ...bus Output enable Clock input enable SCIF Serial clock output Serial clock input R SCP5MD0 PCRW Reset C Q Q D R SCP5MD1 PCRW Reset C Q D R SCP5DT1 PDRW Reset SCPT 5 SCK2 C D PDRW Legend SCPDR write PDRR PCRW SCPDR read SCPCR write PDRR Note When reading the SCK2 pin clear the CKE1 and CKE0 bits in SCSCR to 0 and set the SCP5MD1 bit in SCSPR to 1 see section 14 2 8 SC Port Control Register SCPCR SC...

Page 537: ...ata bus Output enable SCIF Serial transmission output R SCP4MD0 PCRW Reset C Q Q D R SCP4MD1 PCRW Reset C Q D R SCP4DT1 PDRW Reset SCPT 4 TxD2 C D PCRW PDRW SCPCR write SCPDR write Legend Figure 16 3 SCPT 4 TxD2 Pin ...

Page 538: ...RxD2 Pin 16 1 3 Pin Configuration The SCIF has the serial pins summarized in table 16 1 Table 16 1 SCIF Pins Pin Name Abbreviation I O Function Serial clock pin SCK2 I O Clock I O Receive data pin RxD2 Input Receive data input Transmit data pin TxD2 Output Transmit data output Request to send pin RTS2 Output Request to send Clear to send pin CTS2 Input Clear to send ...

Page 539: ...TDR2 W H 04000156 H A4000156 2 8 bits Serial status register 2 SCSSR2 R W 1 H 0060 H 04000158 H A4000158 2 16 bits Receive FIFO data register 2 SCFRDR2 R Undefined H 0400015A H A400015A 2 8 bits FIFO control register 2 SCFCR2 R W H 00 H 0400015C H A400015C 2 8 bits FIFO data count register 2 SCFDR2 R H 0000 H 0400015E H A400015E 2 16 bits Notes These registers are located in area 1 of physical spa...

Page 540: ...d data from the receive shift register SCRSR into SCFRDR for storage Continuous reception is possible until 16 bytes are stored The CPU can read but not write to SCFRDR If data is read when there is no receive data in the SCFRDR the value is undefined When this register is full of receive data subsequent serial data is lost Bit 7 6 5 4 3 2 1 0 R W R R R R R R R R 16 2 3 Transmit Shift Register SCT...

Page 541: ...Bit 7 6 5 4 3 2 1 0 R W W W W W W W W W 16 2 5 Serial Mode Register SCSMR The serial mode register SCSMR is an 8 bit register that specifies the SCIF serial communication format and selects the clock source for the baud rate generator The CPU can always read and write to SCSMR SCSMR is initialized to H 00 by a reset and in standby or module standby mode Bit 7 6 5 4 3 2 1 0 CHR PE O E STOP CKS1 CKS...

Page 542: ...n the transmitted character and parity bit combined Receive data is checked to see if it has an even number of 1s in the received character and parity bit combined 2 If odd parity is selected the parity bit is added to transmit data to make an odd number of 1s in the transmitted character and parity bit combined Receive data is checked to see if it has an odd number of 1s in the received character...

Page 543: ...a reset and in standby or module standby mode Bit 7 6 5 4 3 2 1 0 TIE RIE TE RE CKE1 CKE0 Initial value 0 0 0 0 0 0 0 0 R W R W R W R W R W R R R W R W Bit 7 Transmit Interrupt Enable TIE Enables or disables the transmit FIFO data empty interrupt TXI requested when the serial transmit data is transferred from the transmit FIFO data register SCFTDR to the transmit shift register SCTSR when the quan...

Page 544: ...RIE to 0 With the RDF flag read 1 from the RDF flag and clear it to 0 after reading receive data from SCRDR until the quantity of receive data becomes less than the specified receive trigger number Bit 5 Transmit Enable TE Enables or disables the SCIF serial transmitter Bit 5 TE Description 0 Transmitter disabled Initial value 1 Transmitter enabled Note Serial transmission starts after writing of ...

Page 545: ...tput 1 1 0 External clock SCK pin used for clock input 2 1 External clock SCK pin used for clock input 2 Notes 1 The output clock frequency is 16 times the bit rate 2 The input clock frequency is 16 times the bit rate 16 2 7 Serial Status Register SCSSR The serial status register SCSSR is a 16 bit register The upper 8 bits indicate the number of receive errors in the SCFRDR data and the lower 8 bi...

Page 546: ...SMR Notes 1 Clearing the RE bit to 0 in SCSCR does not affect the ER bit which retains its previous value Even if a receive error occurs the receive data is transferred to SCFRDR and the receive operation is continued Whether or not the data read from SCRDR includes a receive error can be detected by the FER and PER bits in SCSSR 2 In stop mode only the first stop bit is checked the second stop bi...

Page 547: ... Note Since SCFTDR is a 16 byte FIFO register the maximum quantity of data that can be written when TDFE is 1 is 16 minus the specified transmission trigger number If an attempt is made to write additional data the data is ignored The quantity of data in SCFTDR is indicated by the upper 8 bits of SCFTDR Bit 4 Break Detection BRK Indicates that a break signal has been detected in receive data Bit 4...

Page 548: ... the data read from SCFRDR Setting condition When a framing error is present in the data read from SCFRDR Bit 2 Parity Error PER Indicates a parity error in the data read from the receive FIFO data register SCFRDR Bit 2 PER Description 0 No receive parity error occurred in the data read from SCFRDR Initial value Clearing conditions 1 When the chip undergoes a power on reset or enters standby mode ...

Page 549: ...quantity of data that can be read when RDF is 1 is the specified receive trigger number If an attempt is made to read after all the data in SCFRDR has been read the data is undefined The quantity of receive data in SCFRDR is indicated by the lower 8 bits of SCFTDR Bit 0 Receive Data Ready DR Indicates that the quantity of data in the receive FIFO data register SCFRDR is less than the specified rec...

Page 550: ...te Register SCBRR The bit rate register SCBRR is an 8 bit register that together with the baud rate generator clock source selected by the CKS1 and CKS0 bits in the serial mode register SCSMR determines the serial transmit receive bit rate The CPU can always read and write to SCBRR SCBRR is initialized to H FF by a reset and in module standby or standby mode Each channel has independent baud rate ...

Page 551: ...d SCBRR Settings Pφ MHz 2 2 097152 2 4576 Bit Rate bits s n N Error n N Error n N Error 110 1 141 0 03 1 148 0 04 1 174 0 26 150 1 103 0 16 1 108 0 21 1 127 0 00 300 0 207 0 16 0 217 0 21 0 255 0 00 600 0 103 0 16 0 108 0 21 0 127 0 00 1200 0 51 0 16 0 54 0 70 0 63 0 00 2400 0 25 0 16 0 26 1 14 0 31 0 00 4800 0 12 0 16 0 13 2 48 0 15 0 00 9600 0 6 6 99 0 6 2 48 0 7 0 00 19200 0 2 8 51 0 2 13 78 0 ...

Page 552: ...0 0 9 2 34 0 11 0 00 0 12 0 16 19200 0 4 2 34 0 5 0 00 0 6 6 99 31250 0 2 0 00 0 3 7 84 0 3 0 00 38400 0 2 0 00 0 2 8 51 Pφ MHz 4 9152 5 6 Bit Rate bits s n N Error n N Error n N Error 110 2 86 0 31 2 88 0 25 2 106 0 44 150 1 255 0 00 2 64 0 16 2 77 0 16 300 1 127 0 00 1 129 0 16 1 155 0 16 600 0 255 0 00 1 64 0 16 1 77 0 16 1200 0 127 0 00 0 129 0 16 0 155 0 16 2400 0 63 0 00 0 64 0 16 0 77 0 16 ...

Page 553: ...0 0 5 2 40 0 6 5 33 0 7 0 00 38400 0 4 0 00 0 5 0 00 0 6 6 99 Pφ MHz 9 8304 10 12 12 288 Bit Rate bits s n N Error n N Error n N Error n N Error 110 1 174 0 26 2 177 0 25 1 212 0 03 2 217 0 08 150 1 127 0 00 2 129 0 16 1 155 0 16 2 159 0 00 300 0 255 0 00 2 64 0 16 1 77 0 16 2 79 0 00 600 0 127 0 00 1 129 0 16 0 155 0 16 1 159 0 00 1200 0 255 0 00 1 64 0 16 0 77 0 16 1 79 0 00 2400 0 127 0 00 0 12...

Page 554: ...9 0 16 600 1 191 0 00 1 207 0 16 1 255 0 00 1 64 0 16 1200 1 95 0 00 1 103 0 16 1 127 0 00 1 129 0 16 2400 0 191 0 00 0 207 0 16 0 255 0 00 0 64 0 16 4800 0 95 0 00 0 103 0 16 0 127 0 00 0 129 0 16 9600 0 47 0 00 0 51 0 16 0 63 0 00 0 64 0 16 19200 0 23 0 00 0 25 0 16 0 31 0 00 0 32 1 36 31250 0 14 1 70 0 15 0 00 0 19 1 70 0 19 0 00 38400 0 11 0 00 0 12 0 16 0 15 0 00 0 15 1 73 115200 0 3 0 00 0 3...

Page 555: ...94 0 16 600 2 77 0 16 2 79 0 00 2 92 0 46 2 97 0 35 1200 1 155 0 16 1 159 0 00 1 186 0 08 1 194 0 16 2400 1 77 0 16 1 79 0 00 1 92 0 46 1 97 0 35 4800 0 155 0 16 0 159 0 00 0 186 0 08 0 194 1 36 9600 0 77 0 16 0 79 0 00 0 92 0 46 0 97 0 35 19200 0 38 0 16 0 39 0 00 0 46 0 61 0 48 0 35 31250 0 23 0 00 0 24 1 70 0 28 1 03 0 29 0 00 38400 0 19 2 34 0 19 0 00 0 22 1 55 0 23 1 73 115200 0 6 6 99 0 6 4 ...

Page 556: ... for Various Frequencies with Baud Rate Generator Asynchronous Mode Settings Pφ MHz Maximum Bit Rate bits s n N 2 62500 0 0 2 097152 65536 0 0 2 4576 76800 0 0 3 93750 0 0 3 6864 115200 0 0 4 125000 0 0 4 9152 153600 0 0 8 250000 0 0 9 8304 307200 0 0 12 375000 0 0 14 7456 460800 0 0 16 500000 0 0 19 6608 614400 0 0 20 625000 0 0 24 750000 0 0 24 576 768000 0 0 28 7 896875 0 0 30 937500 0 0 ...

Page 557: ... 2 0 5000 31250 2 097152 0 5243 32768 2 4576 0 6144 38400 3 0 7500 46875 3 6864 0 9216 57600 4 1 0000 62500 4 9152 1 2288 76800 8 2 0000 125000 9 8304 2 4576 153600 12 3 0000 187500 14 7456 3 6864 230400 16 4 0000 250000 19 6608 4 9152 307200 20 5 0000 312500 24 6 0000 375000 24 576 6 1440 384000 28 7 7 1750 448436 30 7 5000 468750 ...

Page 558: ... flag in the serial status register SCSSR The RDF flag is set to 1 when the quantity of receive data stored in the receive FIFO register SCFRDR exceeds the set trigger number shown below Bit 7 RTRG1 Bit 6 RTRG0 Receive Trigger Number 0 0 1 Initial value 0 1 4 1 0 8 1 1 14 Bits 5 and 4 Transmit FIFO Data Trigger TTRG1 TTRG0 Set the quantity of remaining transmit data which sets the transmit FIFO da...

Page 559: ...eset operation disabled Initial value 1 Reset operation enabled Note Reset is executed in a reset or in standby mode Bit 1 Receive FIFO Data Register Reset RFRST Disables the receive data in the receive FIFO data register and resets the data to the empty state Bit 1 RFRST Description 0 Reset operation disabled Initial value 1 Reset operation enabled Note Reset is executed in a reset or in standby ...

Page 560: ...an always be read by the CPU Upper 8 Bits 15 14 13 12 11 10 9 8 T4 T3 T2 T1 T0 Initial value 0 0 0 0 0 0 0 0 R W R R R R R R R R The upper 8 bits of SCFDR indicate the quantity of non transmitted data stored in SCFTDR H 00 means no transmit data and H 10 means that SCFTDR is full of transmit data Lower 8 Bits 7 6 5 4 3 2 1 0 R4 R3 R2 R1 R0 Initial value 0 0 0 0 0 0 0 0 R W R R R R R R R R The lowe...

Page 561: ...utes the communication format and character length In receiving it is possible to detect framing errors FER parity errors PER receive FIFO data full receive data ready and breaks In transmitting it is possible to detect transmit FIFO data empty The number of stored data bytes is indicated for both the transmit and receive FIFO registers An internal or external clock can be selected as the SCIF clo...

Page 562: ...eive Formats Table 16 9 lists the eight communication formats that can be selected The format is selected by settings in the serial mode register SCSMR Table 16 9 Serial Communication Formats SCSMR Bits Serial Transmit Receive Format and Frame Length CHR PE STOP 1 2 3 4 5 6 7 8 9 10 11 12 0 0 0 START 8 bit data STOP 0 0 1 START 8 bit data STOP STOP 0 1 0 START 8 bit data P STOP 0 1 1 START 8 bit d...

Page 563: ... retain their previous contents Clear TE to 0 after all transmit data has been transmitted and the TEND flag in the SCSSR is set The TE bit can be cleared to 0 during transmission but the transmit data goes to the high impedance state after the bit is cleared to 0 Set the TFRST bit in SCFCR to 1 and reset SCFTDR before TE is set again to start transmission When an external clock is used the clock ...

Page 564: ...and RFRST bits to 0 Set TE and RE bits in SCSCR to 1 and set RIE TIE TEIE and MPIE bits Set communication format in SCSMR Yes No Set value in SCBRR Set CKE1 and CKE0 bits in SCSCR leaving TE and RE bits cleared to 0 End 1 2 3 4 Wait Note Numbers in parentheses refer to steps in the preceding procedure description Figure 16 5 Sample Flowchart for SCIF Initialization ...

Page 565: ...it trigger set number 2 Serial transmission continuation procedure To continue serial transmission read 1 from the TDFE flag to confirm that writing is possible then write data to SCFTDR and then clear the TDFE flag to 0 3 Break output at the end of serial transmission To output a break in serial transmission set the port SC data register SCPDR and port SC control register SCPCR then clear the TE ...

Page 566: ...No All data transmitted No Yes Yes Break output Yes No Write transmit data 16 transmit trigger set number to SCFTDR read 1 from TDFE bit and TEND flag in SCSSR then clear to 0 End of transmission 1 2 3 Note Numbers in parentheses refer to steps in the preceding procedure description Figure 16 6 Sample Flowchart for Transmitting Serial Data ...

Page 567: ...t in the serial control register SCSR is set to 1 at this time a transmit FIFO data empty interrupt TXI request is generated The serial transmit data is sent from the TxD pin in the following order a Start bit One bit 0 is output b Transmit data 8 bit or 7 bit data is output in LSB first order c Parity bit One parity bit even or odd parity is output A format in which a parity bit is not output can...

Page 568: ...n 8 Bit Data Parity One Stop Bit 4 When modem control is enabled transmission can be stopped and restarted in accordance with the CTS input value When CTS is set to 1 if transmission is in progress the line goes to the mark state after transmission of one frame When CTS is set to 0 the next transmit data is output starting from the start bit Figure 16 8 shows an example of the operation when modem...

Page 569: ...ding the value of the RxD pin 2 SCIF status check and receive data read Read the serial status register SCSSR and check that RDF 1 then read the receive data in the receive FIFO data register SCFRDR read 1 from the RDF flag and then clear the RDF flag to 0 The transition of the RDF flag from 0 to 1 can be identified by an RXI interrupt 3 Serial reception continuation procedure To continue serial r...

Page 570: ... FER v ORER 1 RDF 1 Yes Yes Clear RE bit in SCSCR to 0 No No Read RDF flag in SCSSR Error handling Read receive data from SCFRDR and clear RDF flag in SCSSR to 0 1 2 3 Note Numbers in parentheses refer to steps in the preceding procedure description Figure 16 9 Sample Flowchart for Receiving Serial Data ...

Page 571: ...ata is not transferred to SCFRDR while the BRK flag is set However note that the last data in SCFRDR is H 00 and the break data in which a framing error occurred is stored Error handling End BRK 1 DR 1 ER 1 Yes Yes Yes Clear DR ER BRK flags in SCSSR to 0 No No No Receive error handling Break processing Read receive data from SCFRDR Figure 16 10 Sample Flowchart for Receiving Serial Data cont ...

Page 572: ...ecks whether receive data can be transferred from the receive shift register SCRSR to SCFRDR c Break check The SCIF checks that the BRK flag is 0 indicating that the break state is not set If all the above checks are passed the receive data is stored in SCFRDR Note Reception is not suspended when a receive error occurs 4 If the RIE bit in SCSR is set to 1 when the RDF or DR flag changes to 1 a rec...

Page 573: ... Stop bit Idle mark state D0 D1 D7 D0 D1 D7 0 1 Figure 16 11 Example of SCIF Receive Operation 8 Bit Data Parity One Stop Bit 5 When modem control is enabled the RTS signal is output when SCFRDR is empty When RTS is 0 reception is possible When RTS is 1 this indicates that SCFRDR is full and reception is not possible Figure 16 12 shows an example of the operation when modem control is used 0 0 1 0...

Page 574: ...d The DMAC can be activated and data transfer performed when the RDF flag in SCSSR is set to 1 The RDF flag is automatically cleared to 0 when data is read from the receive data register SCFRDR by the DMAC When the ER flag in SCSSR is set to 1 an ERI interrupt request is generated When the BRK flag in SCSSR is set to 1 a BRI interrupt request is generated The TXI interrupt indicates that transmit ...

Page 575: ...rom SCFRDR allowing efficient continuous reception However if the number of data bytes in SCFRDR is equal to or greater than the trigger number the RDF flag will be set to 1 again if it is cleared to 0 RDF should therefore be cleared to 0 after being read as 1 after all the receive data has been read The number of receive data bytes in SCFRDR can be found from the lower 8 bits of the FIFO data cou...

Page 576: ...nternally with the fall of the start bit which it samples on the base clock Receive data is latched at the rising edge of the eighth base clock pulse The timing is shown in figure 16 13 0 1 2 3 4 5 6 7 8 9 101112131415 0 1 2 3 4 5 6 7 8 9 101112131415 0 1 2 3 4 5 Base clock Receive data RxD Synchro nization sampling timing Data sampling timing 8 clocks 16 clocks Start bit 7 5 clocks 7 5 clocks D0 ...

Page 577: ...ata in SCTSR only and no data in SCFTDR and that data including the start bit has been output to TxD It does not cover the case where the next data is written to SCFTDR before transmission of the last data is started Problem Transmission may halt midway through a frame when the entire frame should be transmitted from start bit to stop bit In this case a high level is output from TxD Preventive Mea...

Page 578: ...register settings 17 1 1 Features Conforms to the IrDA 1 0 system Asynchronous serial communication Data length 8 bits Stop bit length 1 bit Parity bit None On chip 16 stage FIFO buffers for both transmit and receive operations On chip baud rate generator with selectable bit rates Guard functions to protect the receiver during transmission Clock supply halted to reduce power consumption when not u...

Page 579: ... 1 shows a block diagram of the IrDA SCIF Clock input TxD Transfer clock RxD Switching IrDA SCIF IrDA SCK TxD1 RxD1 Modulation unit Demodulation unit Legend SCIF Serial communication interface with FIFO Figure 17 1 Block Diagram of IrDA ...

Page 580: ...a bus Output enable Clock input enable IrDA Serial clock output Serial clock input R SCP3MD0 PCRW Reset C Q Q D R SCP3MD1 PCRW Reset C Q D R SCP3DT1 PDRW Reset SCPT 3 SCK1 C D PDRW Legend SCPDR write PDRR PCRW SCPDR read SCPCR write PDRR Note When reading the SCK1 pin the CKE1 and CKE0 bits in SCSCR to 0 and set the SCP3MD1 bit in SCPCR to 1 see section 14 2 8 SC Port Control Register SCPCR SC Por...

Page 581: ... data bus Output enable IrDA Serial transfer output Q R SCP2DT1 PDRW Reset SCPT 2 TxD1 C D PCRW PDRW Legend SCPCR write SCPDR write R SCP2MD0 PCRW Reset C Q D R SCP2MD1 PCRW Reset C Q D Figure 17 3 SCPT 2 TxD1 Pin ...

Page 582: ...7 4 SCPT 2 RxD1 Pin 17 1 3 Pin Configuration The IrDA has the serial pins summarized in table 17 1 Table 17 1 IrDA Pins Pin Name Signal Name I O Function Serial clock pin SCK1 I O Clock I O Receive data pin RxD1 Input Receive data input Transmit data pin TxD1 Output Transmit data output Note Clock input from the serial clock pin cannot be set in IrDA mode ...

Page 583: ...egister 1 SCFTDR1 W H 04000146 H A4000146 2 8 bits Serial status register 1 SCSSR1 R W 1 H 0060 H 04000148 H A4000148 2 16 bits Receive FIFO data register 1 SCFRDR1 R Undefined H 0400014A H A400014A 2 8 bits FIFO control register 1 SCFCR1 R W H 00 H 0400014C H A400014C 2 8 bits FIFO data count register 1 SCFDR1 R H 0000 H 0400014E H A400014E 2 16 bits Notes These registers are located in area 1 of...

Page 584: ...rial communication format selects the IrDA output pulse width and selects the baud rate generator clock source This module operates as IrDA when the IRMOD bit is set to 1 At this time bits 3 to 6 are fixed at 0 This register functions in the same way as the SCSMR register in the SCIF when the IRMOD bit is cleared to 0 therefore this module can also operate as an SCIF SCSMR is initialized to H 00 b...

Page 585: ... care 0 Pulse width 3 16 of bit length It is necessary to generate a fixed clock pulse IRCLK by dividing the Pφ clock by 1 2N 2 with the value of N determined by the setting of ICK3 ICK0 Example Pφ clock 14 7456 MHz IRCLK 921 6 kHz fixed N Setting of ICK3 ICK0 0 N 15 1 7 N Pφ 2XIRCLK Accordingly N is 7 Bits 1 and 0 Clock Select 1 and 0 CKS1 CKS0 Select the internal baud rate generator clock source...

Page 586: ...9600 bps and the communication speed is changed However the communication rate cannot be automatically changed in this module so the communication speed should be confirmed and the appropriate speed set for this module by software Note In IrDA mode reception cannot be performed when the TE bit in the serial control register SCSCR is set to 1 enabling transmission When performing reception clear th...

Page 587: ...in figure 17 5 Demodulation to 0 is performed for pulse output and demodulation to 1 is performed for no pulse output UART frame Data IR frame Data Receive Transmit Stop bit Stop bit Start bit Start bit Bit cycle 3 16 bit cycle pulse width 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 1 Figure 17 5 Transmit Receive Operation ...

Page 588: ... D18 input output data bus A PTA1 input output port D17 input output data bus A PTA0 input output port D16 input output data bus B PTB7 input output port D31 input output data bus B PTB6 input output port D30 input output data bus B PTB5 input output port D29 input output data bus B PTB4 input output port D28 input output data bus B PTB3 input output port D27 input output data bus B PTB2 input out...

Page 589: ...put output port CE2A output PCMCIA E PTE3 input output port E PTE2 input output port RAS3U output BSC E PTE1 input output port E PTE0 input output port TDO output H UDI F PTF7 input port PINT15 input INTC TRST input AUD H UDI F PTF6 input port PINT14 input INTC TMS input H UDI F PTF5 input port PINT13 input INTC TD1 input H UDI F PTF4 input port PINT12 input INTC TCK input H UDI F PTF3 input port ...

Page 590: ...utput CPG J PTJ6 input output port STATUS0 output CPG J PTJ5 input output port J PTJ4 input output port J PTJ3 input output port CASU output BSC J PTJ2 input output port CASL output BSC J PTJ1 input output port J PTJ0 input output port RAS3L output BSC K PTK7 input output port WE3 output BSC DQMUU output BSC ICIOWR output BSC K PTK6 input output port WE2 output BSC DQMUL output BSC ICIORD output B...

Page 591: ...rt RTS2 output UART ch 3 SCPT SCPT5 input output port SCK2 input output UART ch 3 SCPT SCPT4 input port RxD2 input UART ch 3 SCPT4 output port TxD2 output UART ch 3 SCPT SCPT3 input output port SCK1 input output UART ch 2 SCPT SCPT2 input port RxD1 input UART ch 2 SCPT2 output port TxD1 output UART ch 2 SCPT SCPT1 input output port SCK0 input output UART ch 1 SCPT SCPT0 input port RxD0 input UART ...

Page 592: ...010E 16 Port J control register PJCR R W H 0000 H 04000110 H A4000110 16 Port K control register PKCR R W H 0000 H 04000112 H A4000112 16 Port L control register PLCR R W H 0000 H 04000114 H A4000114 16 SC port control register SCPCR R W H A888 H 04000116 H A4000116 16 Notes 1 The initial value of the port E F G and H control registers depends on the state of the ASEMD0 pin If a low level is input...

Page 593: ...er on reset but is not initialized by a manual reset in standby mode or in sleep mode Bits 15 and 14 PA7 Mode 1 and 0 PA7MD1 PA7MD0 Bits 13 and 12 PA6 Mode 1 and 0 PA6MD1 PA6MD0 Bits 11 and 10 PA5 Mode 1 and 0 PA5MD1 PA5MD0 Bits 9 and 8 PA4 Mode 1 and 0 PA4MD1 PA4MD0 Bits 7 and 6 PA3 Mode 1 and 0 PA3MD1 PA3MD0 Bits 5 and 4 PA2 Mode 1 and 0 PA2MD1 PA2MD0 Bits 3 and 2 PA1 Mode 1 and 0 PA1MD1 PA1MD0 ...

Page 594: ...t is not initialized by a manual reset in standby mode or in sleep mode Bits 15 and 14 PB7 Mode 1 and 0 PB7MD1 PB7MD0 Bits 13 and 12 PB6 Mode 1 and 0 PB6MD1 PB6MD0 Bits 11 and 10 PB5 Mode 1 and 0 PB5MD1 PB5MD0 Bits 9 and 8 PB4 Mode 1 and 0 PB4MD1 PB4MD0 Bits 7 and 6 PB3 Mode 1 and 0 PB3MD1 PB3MD0 Bits 5 and 4 PB2 Mode 1 and 0 PB2MD1 PB2MD0 Bits 3 and 2 PB1 Mode 1 and 0 PB1MD1 PB1MD0 Bits 1 and 0 P...

Page 595: ...t is not initialized by a manual reset in standby mode or in sleep mode Bits 15 and 14 PC7 Mode 1 and 0 PC7MD1 PC7MD0 Bits 13 and 12 PB6 Mode 1 and 0 PC6MD1 PC6MD0 Bits 11 and 10 PC5 Mode 1 and 0 PC5MD1 PC5MD0 Bits 9 and 8 PC4 Mode 1 and 0 PC4MD1 PC4MD0 Bits 7 and 6 PC3 Mode 1 and 0 PC3MD1 PC3MD0 Bits 5 and 4 PC2 Mode 1 and 0 PC2MD1 PC2MD0 Bits 3 and 2 PC1 Mode 1 and 0 PC1MD1 PC1MD0 Bits 1 and 0 P...

Page 596: ...de 1 and 0 PD5MD1 PD5MD0 Bits 7 and 6 PD3 Mode 1 and 0 PD3MD1 PD3MD0 Bits 5 and 4 PD2 Mode 1 and 0 PD2MD1 PD2MD0 Bits 3 and 2 PD1 Mode 1 and 0 PD1MD1 PD1MD0 Bits 1 and 0 PD0 Mode 1 and 0 PD0MD1 PD0MD0 These bits select the pin functions and perform input pull up MOS control Bit 2n 1 Bit 2n PDnMD1 PDnMD0 Pin Function 0 0 Other function see table 18 1 Initial value n 2 0 1 Port output 1 0 Port input...

Page 597: ... 1 and 0 PE7MD1 PE7MD0 Bits 13 and 12 PE6 Mode 1 and 0 PE6MD1 PE6MD0 Bits 11 and 10 PE5 Mode 1 and 0 PE5MD1 PE5MD0 Bits 9 and 8 PE4 Mode 1 and 0 PE4MD1 PE4MD0 Bits 7 and 6 PE3 Mode 1 and 0 PE3MD1 PE3MD0 Bits 5 and 4 PE2 Mode 1 and 0 PE2MD1 PE2MD0 Bits 3 and 2 PE1 Mode 1 and 0 PE1MD1 PE1MD0 Bits 1 and 0 PE0 Mode 1 and 0 PE0MD1 PE0MD0 These bits select the pin functions and perform input pull up MOS...

Page 598: ... 14 PF7 Mode 1 and 0 PF7MD1 PF7MD0 Bits 13 and 12 PF6 Mode 1 and 0 PF6MD1 PF6MD0 Bits 11 and 10 PF5 Mode 1 and 0 PF5MD1 PF5MD0 Bits 9 and 8 PF4 Mode 1 and 0 PF4MD1 PF4MD0 Bits 7 and 6 PF3 Mode 1 and 0 PF3MD1 PF3MD0 Bits 5 and 4 PF2 Mode 1 and 0 PF2MD1 PF2MD0 Bits 3 and 2 PF1 Mode 1 and 0 PF1MD1 PF1MD0 Bits 1 and 0 PF0 Mode 1 and 0 PF0MD1 PF0MD0 These bits select the pin functions and perform input...

Page 599: ...t selects the pin functions PGCR is initialized to H AAAA ASEMD0 1 or H A200 ASEMD0 0 by a power on reset but is not initialized by a manual reset in standby mode or in sleep mode Bits 15 and 14 PG7 Mode 1 and 0 PG7MD1 PG7MD0 Bits 13 and 12 PG6 Mode 1 and 0 PG6MD1 PG6MD0 Bits 11 and 10 PG5 Mode 1 and 0 PG5MD1 PG5MD0 Bits 9 and 8 PG4 Mode 1 and 0 PG4MD1 PG4MD0 Bits 7 and 6 PG3 Mode 1 and 0 PG3MD1 P...

Page 600: ...fter the reset signal is nagated 18 3 8 Port H Control Register PHCR Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PH7 MD1 PH7 MD0 PH6 MD1 PH6 MD0 PH5 MD1 PH5 MD0 PH4 MD1 PH4 MD0 PH3 MD1 PH3 MD0 PH2 MD1 PH2 MD0 PH1 MD1 PH1 MD0 PH0 MD1 PH0 MD0 Initial value 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 R W R W R W R W R W R W R W R W R W R W R W R W R W R W R W R W R W The port H control register PHCR is a 16 bit ...

Page 601: ...4 PH2 Mode 1 and 0 PH2MD1 PH2MD0 Bits 3 and 2 PH1 Mode 1 and 0 PH1MD1 PH1MD0 Bits 1 and 0 PH0 Mode 1 and 0 PH0MD1 PH0MD0 These bits select the pin functions and perform input pull up MOS control Bit 13 Bit 12 PH6MD1 PH6MD0 Pin Function 0 0 Other function see table 18 1 Initial value ASEMD0 0 0 1 Reserved 1 0 Port input Pull up MOS on Initial value ASEMD0 1 1 1 Port input Pull up MOS off Bit 2n 1 B...

Page 602: ...alized by a manual reset in standby mode or in sleep mode Bits 15 and 14 PJ7 Mode 1 and 0 PJ7MD1 PJ7MD0 Bits 13 and 12 PJ6 Mode 1 and 0 PJ6MD1 PJ6MD0 Bits 11 and 10 PJ5 Mode 1 and 0 PJ5MD1 PJ5MD0 Bits 9 and 8 PJ4 Mode 1 and 0 PJ4MD1 PJ4MD0 Bits 7 and 6 PJ3 Mode 1 and 0 PJ3MD1 PJ3MD0 Bits 5 and 4 PJ2 Mode 1 and 0 PJ2MD1 PJ2MD0 Bits 3 and 2 PJ1 Mode 1 and 0 PJ1MD1 PJ1MD0 Bits 1 and 0 PJ0 Mode 1 and ...

Page 603: ...ut is not initialized by a manual reset in standby mode or in sleep mode Bits 15 and 14 PK7 Mode 1 and 0 PK7MD1 PK7MD0 Bits 13 and 12 PK6 Mode 1 and 0 PK6MD1 PK6MD0 Bits 11 and 10 PK5 Mode 1 and 0 PK5MD1 PK5MD0 Bits 9 and 8 PK4 Mode 1 and 0 PK4MD1 PK4MD0 Bits 7 and 6 PK3 Mode 1 and 0 PK3MD1 PK3MD0 Bits 5 and 4 PK2 Mode 1 and 0 PK2MD1 PK2MD0 Bits 3 and 2 PK1 Mode 1 and 0 PK1MD1 PK1MD0 Bits 1 and 0 ...

Page 604: ...and 14 PL7 Mode 1 and 0 PL7MD1 PL7MD0 Bits 13 and 12 PL6 Mode 1 and 0 PL6MD1 PL6MD0 Bits 11 and 10 PL5 Mode 1 and 0 PL5MD1 PL5MD0 Bits 9 and 8 PL4 Mode 1 and 0 PL4MD1 PL4MD0 Bits 7 and 6 PL3 Mode 1 and 0 PL3MD1 PL3MD0 Bits 5 and 4 PL2 Mode 1 and 0 PL2MD1 PL2MD0 Bits 3 and 2 PL1 Mode 1 and 0 PL1MD1 PL1MD0 Bits 1 and 0 PL0 Mode 1 and 0 PL0MD1 PL0MD0 These bits select the pin functions and perform in...

Page 605: ...andby mode or in sleep mode When the TE bit in SCSCR is set to 1 the other function output state has a higher priority than the SCPCR setting for the TxD 2 0 pins When the RE bit in SCSCR is set to 1 the input state has a higher priority than the SCPCR setting for the RxD 2 0 pins Bits 15 and 14 SCP7 Mode 1 and 0 SCP7MD1 SCP7MD0 These bits select the pin function and perform input pull up MOS cont...

Page 606: ...in Receive data input 2 RxD2 1 0 SCPT 4 input pin pull up input pin Transmit data output 2 TxD2 1 1 General input SCPT 4 input pin Transmit data output 2 TxD2 Note There is no SCPT 4 simultaneous I O combination because one bit SCP4DT is accessed using two pins TxD2 and RxD2 When port input is set bit SCPnMD1 is set to 1 and when the TE bit in SCSCR is set to 1 the TxD2 pin is in the output state ...

Page 607: ...output 1 TxD1 Note There is no SCPT 2 simultaneous I O combination because one bit SCP2DT is accessed using two pins TxD1 and RxD1 When port input is set bit SCPnMD1 is set to 1 and when the TE bit in SCSCR is set to 1 the TxD1 pin is in the output state When the TE bit is cleared to 0 the TxD1 pin goes to the high impedance state Bits 3 and 2 SCP1 Mode 1 and 0 SCP1MD1 SCP1MD0 These bits select th...

Page 608: ... Receive data input 0 RxD0 1 0 SCPT 0 input pin pull up input pin Transmit data output 0 TxD0 1 1 General input SCPT 0 input pin Transmit data output 0 TxD0 Note There is no SCPT 0 simultaneous I O combination because one bit SCP0DT is accessed using two pins TxD0 and RxD0 When port input is set bit SCPnMD1 is set to 1 and when the TE bit in SCSCR is set to 1 the TxD0 pin is in the output state Wh...

Page 609: ...590 ...

Page 610: ...A5 input output D21 input output PTA4 input output D20 input output PTA3 input output D19 input output PTA2 input output D18 input output PTA1 input output D17 input output PTA0 input output D16 input output Port A Figure 19 1 Port A 19 2 1 Register Description Table 19 1 summarizes the port A register Table 19 1 Port A Register Name Abbreviation R W Initial Value Address Access Size Port A data r...

Page 611: ...s general input port if the port is read the corresponding pin level is read Table 19 2 shows the function of PADR PADR is initialized to H 00 by a power on reset It retains its previous value in standby mode and sleep mode and in a manual reset Table 19 2 Port A Data Register PADR Read Write Operations PAnMD1 PAnMD0 Pin State Read Write 0 0 Other function See table 18 1 PADR value Value is writte...

Page 612: ...utput D25 input output PTB0 input output D24 input output Port B Figure 19 2 Port B 19 3 1 Register Description Table 19 3 summarizes the port B register Table 19 3 Port B Register Name Abbreviation R W Initial Value Address Access Size Port B data register PBDR R W H 00 H 04000122 H A4000122 8 Notes This register is located in area 1 of physical space Therefore when the cache is on either access ...

Page 613: ...s general input port if the port is read the corresponding pin level is read Table 19 4 shows the function of PBDR PBDR is initialized to H 00 by a power on reset It retains its previous value in standby mode and sleep mode and in a manual reset Table 19 4 Port B Data Register PBDR Read Write Operations PBnMD1 PBnMD0 Pin State Read Write 0 0 Other function See table 18 1 PBDR value Value is writte...

Page 614: ...t PTC1 input output PINT1 input MSC1 output PTC0 input output PINT0 input MSC0 output Port C Figure 19 3 Port C 19 4 1 Register Description Table 19 5 summarizes the port C register Table 19 5 Port C Register Name Abbreviation R W Initial Value Address Access Size Port C data register PCDR R W H 00 H 04000124 H A4000124 8 Notes This register is located in area 1 of physical space Therefore when th...

Page 615: ...is read Table 19 6 shows the function of PCDR PCDR is initialized to H 00 by a power on reset after which the general input port function pull up MOS on is set as the initial pin function and the corresponding pin levels are read PCDR retains its previous value in standby mode and sleep mode and in a manual reset Table 19 6 Port C Data Register PCDR Read Write Operations PCnMD1 PCnMD0 Pin State Re...

Page 616: ...ut PTD0 input output DRAK1 output Port D Figure 19 4 Port D 19 5 1 Register Description Table 19 7 summarizes the port D register Table 19 7 Port D Register Name Abbreviation R W Initial Value Address Access Size Port D data register PDDR R W or R B 0 0 0000 H 04000126 H A4000126 1 8 Notes This register is located in area 1 of physical space Therefore when the cache is on either access this regist...

Page 617: ... corresponding pin levels are read from bits PD7DT PD3DT PD1DT and PD0DT PDDR retains its previous value in standby mode and sleep mode and in a manual reset Note that the low level is read if bits 6 and 4 are read except in general purpose input Table 19 8 Port D Data Register PDDR Read Write Operations PDnMD1 PDnMD0 Pin State Read Write 0 0 Other function See table 18 1 PDDR value Value is writt...

Page 618: ...ut output TDO output Port E Figure 19 5 Port E 19 6 1 Register Description Table 19 9 summarizes the port E register Table 19 9 Port E Register Name Abbreviation R W Initial Value Address Access Size Port E data register PEDR R W H 00 H 04000128 H A4000128 8 Notes This register is located in area 1 of physical space Therefore when the cache is on either access this register from the P2 area of log...

Page 619: ...is read Table 19 10 shows the function of PEDR PEDR is initialized to H 00 by a power on reset after which the general input port function pull up MOS on is set as the initial pin function and the corresponding pin levels are read It retains its previous value in standby mode and sleep mode and in a manual reset Table 19 10 Port E Data Register PEDR Read Write Operations PEnMD1 PEnMD0 Pin State Re...

Page 620: ...RLS1 input PTF0 input PINT8 input IRLS0 input Port F Figure 19 6 Port F 19 7 1 Register Description Table 19 11 summarizes the port F register Table 19 11 Port F Register Name Abbreviation R W Initial Value Address Access Size Port F data register PFDR R H H 0400012A H A400012A 1 8 Notes This register is located in area 1 of physical space Therefore when the cache is on either access this register...

Page 621: ... pin level is read Table 19 12 shows the function of PFDR PFDR is initialized by a power on reset after which the general input port function pull up MOS on is set as the initial pin function and the corresponding pin levels are read Table 19 12 Port F Data Register PFDR Read Write Operations PFnMD1 PFnMD0 Pin State Read Write 0 0 Other function See table 18 1 H 00 Ignored no effect on pin state 1...

Page 622: ...put PTG0 input AUDATA0 input output Port G Figure 19 7 Port G 19 8 1 Register Description Table 19 13 summarizes the port G register Table 19 13 Port G Register Name Abbreviation R W Initial Value Address Access Size Port G data register PGDR R W H H 0400012C H A400012C 1 8 Notes This register is located in area 1 of physical space Therefore when the cache is on either access this register from th...

Page 623: ... pin level is read Table 19 14 shows the function of PGDR PGDR is initialized by a power on reset after which the general input port function pull up MOS on is set as the initial pin function and the corresponding pin levels are read Table 19 14 Port G Data Register PGDR Read Write Operations PGnMD1 PGnMD0 Pin State Read Write 0 0 Other function See table 18 1 H 00 Ignored no effect on pin state 1...

Page 624: ... IRQ0 input Port H Figure 19 8 Port H 19 9 1 Register Description Table 19 15 summarizes the port H register Table 19 15 Port H Register Name Abbreviation R W Initial Value Address Access Size Port H data register PHDR R W or R B 0 H 0400012E H A400012E 1 8 Notes This register is located in area 1 of physical space Therefore when the cache is on either access this register from the P2 area of logi...

Page 625: ...nd the corresponding pin levels are read It retains its previous value in standby mode and sleep mode and in a manual reset Note that the low level is read if bits 6 to 0 are read except in general purpose input Table 19 16 Port H Data Register PHDR Read Write Operations PHnMD1 PHnMD0 Pin State Read Write 0 0 Other function See table 18 1 PHDR value Value is written to PHDR but does not affect pin...

Page 626: ...t output RAS3L output Port J Figure 19 9 Port J 19 10 1 Register Description Table 19 17 summarizes the port J register Table 19 17 Port J Register Name Abbreviation R W Initial Value Address Access Size Port J data register PJDR R W H 00 H 04000130 H A4000130 8 Notes This register is located in area 1 of physical space Therefore when the cache is on either access this register from the P2 area of...

Page 627: ...eral input port if the port is read the corresponding pin level is read Table 19 18 shows the function of PJDR PJDR is initialized to H 00 by a power on reset It retains its previous value in software standby mode and sleep mode and in a manual reset Table 19 18 Port J Data Register PJDR Read Write Operations PJnMD1 PJnMD0 Pin State Read Write 0 0 Other function See table 18 1 PJDR value Value is ...

Page 628: ...output PTK1 input output CS3 output PTK0 input output CS2 output Port K Figure 19 10 Port K 19 11 1 Register Description Table 19 19 summarizes the port K register Table 19 19 Port K Register Name Abbreviation R W Initial Value Address Access Size Port K data register PKDR R W H 00 H 04000132 H A4000132 8 Notes This register is located in area 1 of physical space Therefore when the cache is on eit...

Page 629: ... general input port if the port is read the corresponding pin level is read Table 19 20 shows the function of PKDR PKDR is initialized to H 00 by a power on reset It retains its previous value in standby mode and sleep mode and in a manual reset Table 19 20 Port K Data Register PKDR Read Write Operations PKnMD1 PKnMD0 Pin State Read Write 0 0 Other function See table 18 1 PKDR value Value is writt...

Page 630: ...r Description Table 19 21 summarizes the port L register Table 19 21 Port L Register Name Abbreviation R W Initial Value Address Access Size Port L data register PLDR R H 00 H 04000134 H A4000134 8 Notes This register is located in area 1 of physical space Therefore when the cache is on either access this register from the P2 area of logical space or else make an appropriate setting using the MMU ...

Page 631: ... level is read Table 19 22 shows the function of PLDR PKDR is initialized to H 00 by power on reset It retains its previous value in software standby mode and sleep mode and in a manual reset The port L is also used as an analog pin therefore does not have a pull up MOS Table 19 22 Port L Data Register PLDR Read Write Operation PLnMD1 PLnMD0 Pin State Read Write 0 0 Other function See table 18 1 H...

Page 632: ... SCPT1 input output SCK0 input output SCPT0 input RxD0 input SCPT0 output TxD0 output SC Port Figure 19 12 SC Port 19 13 1 Register Description Table 19 23 summarizes the SC port register Table 19 23 SC Port Register Name Abbreviation R W Initial Value Address Access Size SC Port data register SCPDR R W or R B 0000000 H 04000136 H A4000136 1 8 Notes This register is located in area 1 of physical s...

Page 633: ...ding pin level is read Table 19 24 shows the function of SCPDR SCPDR is initialized to B 0000000 by a power on reset After initialization the general input port function pull up MOS on is set as the initial pin function and the corresponding pin levels are read from bits SCP7DT SCP5DT SCP3DT and SCP1DT SCPDR retains its previous value in standby mode and sleep mode and in a manual reset Note that ...

Page 634: ...ull up MOS on Pin state Value is written to SCPDR but does not affect pin state 1 Input Pull up MOS off Pin state Value is written to SCPDR but does not affect pin state n 0 to 6 SCPnMD1 SCPnMD0 Pin State Read Write 0 0 Other function See table 18 1 Low level Ignored no effect on pin state 1 Output Low level Ignored no effect on pin state 1 0 Input Pull up MOS on Pin state Ignored no effect on pin...

Page 635: ...616 ...

Page 636: ... channel Pø 33 MHz operation Three conversion modes Single mode A D conversion on one channel Multi mode A D conversion on one to four channels Scan mode Continuous A D conversion on one to four channels Four 16 bit data registers A D conversion results are transferred for storage into data registers corresponding to the channels Sample and hold function A D conversion can be externally triggered ...

Page 637: ...oxi mation register Comparator Sample and hold circuit ADI interrupt signal AVSS AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 φ 8 φ 16 ADCSR ADCR AVCC A D converter ADCR A D control register ADCSR A D control status register ADDRA A D data register A ADDRB A D data register B ADDRC A D data register C ADDRD A D data register D Legend Internal data bus ADTRG ADDRC Figure 20 1 Block Diagram of A D Converter ...

Page 638: ... Converter Pins Pin Name Abbreviation I O Function Analog power supply pin AVcc Input Analog power supply Analog ground pin AVss Input Analog ground and reference voltage Analog input pin 0 AN0 Input Group 0 analog inputs Analog input pin 1 AN1 Input Analog input pin 2 AN2 Input Analog input pin 3 AN3 Input Analog input pin 4 AN4 Input Group1 analog inputs Analog input pin 5 AN5 Input Analog input...

Page 639: ... register CL ADDRCL R H 00 H 0400008A H A400008A 2 8 A D data register DH ADDRDH R H 00 H 0400008C H A400008C 2 16 8 A D data register DL ADDRDL R H 00 H 0400008E H A400008E 2 8 A D control status register ADCSR R W 1 H 00 H 04000090 H A4000090 2 8 A D control register ADCR R W H 07 H 04000092 H A4000092 2 8 Notes These registers are located in area 1 of physical space Therefore when the cache is ...

Page 640: ...ich is transferred for storage into the A D data register corresponding to the selected channel The upper 8 bits of the result are stored in the upper byte bits 7 to 0 of the A D data register The lower 2 bits are stored in the lower byte bits 7 and 6 Bits 5 to 0 of an A D data register are reserved bits that are always read as 0 Table 20 3 indicates the pairings of analog input channels and A D d...

Page 641: ...ription 0 Clearing conditions Initial value 1 Cleared by reading ADF while ADF 1 then writing 0 to ADF 2 Cleared when DMAC is activated by ADI interrupt and ADDR is read 1 Setting conditions 1 Single mode A D conversion ends 2 Multi mode A D conversion ends on all selected channels 3 Scan mode A D conversion ends on all selected channels Bit 6 A D Interrupt Enable ADIE Enables or disables the inte...

Page 642: ...hannels until ADST is cleared to 0 by software by a reset or by a transition to standby mode Bit 4 Multi Mode MULTI Selects single mode multi mode or scan mode For further information on operation in these modes see section 20 4 Operation Bit 4 MULTI ADCR Bit5 SCN Description 0 0 Single mode 1 1 0 Multi mode Initial value 1 Scan mode Bit 3 Clock Select CKS Selects the A D conversion time Clear the...

Page 643: ...rnal triggering of A D conversion ADCR is initialized to H 07 by a reset and in standby mode Bit 7 and 6 Trigger Enable TRGE1 TRGE0 Enables or disables external triggering of A D conversion The TRGE1 and TRGE0 bits should only be set when conversion is not in progress Bit 7 TRGE1 Bit 6 TRGE0 Description 0 0 A D conversion does not start when an external trigger is input Initial value 0 1 1 0 1 1 A...

Page 644: ...625 Bits 4 and 3 Reserved RESVD1 RESVD2 These bits are always read as 0 The write value should always be 0 Bits 2 to 0 Reserved These bits are always read as 1 The write value should always be 1 ...

Page 645: ...d into TEMP Next when the lower byte is read the TEMP contents are transferred to the bus master When reading an A D data register always read the upper byte before the lower byte It is possible to read only the upper byte but if only the lower byte is read the read value is not guaranteed Figure 20 2 shows the data flow for access to an A D data register See section 20 7 3 Access Size and Read Da...

Page 646: ... After making the necessary changes set the ADST bit to 1 to start A D conversion again The ADST bit can be set at the same time as the mode or channel is changed Typical operations when channel 1 AN1 is selected in single mode are described next Figure 20 3 shows a timing diagram for this example The ADCSR register specifies bits in the operation example 1 Single mode is selected MULTI 0 input ch...

Page 647: ...ing Waiting Waiting Waiting Waiting Waiting A D conversion starts Set Set Set Clear Clear A D conversion result 1 A D conversion result 2 Read result Read result A D conversion 1 A D conversion result 2 Note Vertical arrows indicate instruction execution by software Figure 20 3 Example of A D Converter Operation Single Mode Channel 1 Selected ...

Page 648: ...t A D conversion After making the necessary changes set the ADST bit to 1 A D conversion will start again from the first channel in the group The ADST bit can be set at the same time as the mode or channel selection is changed Typical operations when three channels in group 0 AN0 to AN2 are selected in scan mode are described next Figure 20 4 shows a timing diagram for this example 1 Multi mode is...

Page 649: ...aiting Waiting Set Clear Clear A D conversion result 2 Waiting Waiting A D conversion result 3 A D conversion 1 Waiting A D conversion result 1 Transfer A D conversion 3 A D conversion A D conversion 2 Note Vertical arrows indicate instruction execution by software Figure 20 4 Example of A D Converter Operation Multi Mode Channels AN0 to AN2 Selected ...

Page 650: ...in from the first channel in the group The ADST bit can be set at the same time as the mode or channel selection is changed Typical operations when three channels AN0 to AN2 in group 0 are selected in scan mode are described next Figure 20 5 shows a timing diagram for this example 1 Scan mode is selected MULTI 1 SCN 1 channel group 0 is selected CH2 0 analog input channels AN0 to AN2 are selected ...

Page 651: ...fer A D conversion 1 A D conversion 4 A D conversion 2 A D conversion 3 A D conversion result 1 A D conversion result 4 A D conversion result 2 A D conversion result 3 Clear Clear Set Continuous A D conversion A D conversion 5 Notes 1 Vertical arrows indicate instruction execution by software 2 Data during conversion is ignored Figure 20 5 Example of A D Converter Operation Scan Mode Channels AN0 ...

Page 652: ...he length of tD varies depending on the timing of the write access to ADCSR The total conversion time therefore varies within the ranges indicated in table 20 4 In multi mode and scan mode the values given in table 20 4 apply to the first conversion In the second and subsequent conversions the conversion time is fixed at 512 states when CKS 0 or 256 states when CKS 1 Pø Write signal ADF 1 Input sa...

Page 653: ...t Timing A D conversion can be externally triggered When the TRGE1 and TRGE0 bits are set to 1 in ADCR external trigger input is enabled at the ADTRG pin A high to low transition at the ADTRG pin sets the ADST bit to 1 in ADCSR starting A D conversion Other operations regardless of the conversion mode are the same as if the ADST bit had been set to 1 by software Figure 20 7 shows the timing A D co...

Page 654: ...the figure the 10 bits of the A D converter have been simplified to 3 bits Offset error is the deviation between actual and ideal A D conversion characteristics when the digital output value changes from the minimum zero voltage 0000000000 000 in the figure to 000000001 001 in the figure figure 20 8 item 1 Full scale error is the deviation between actual and ideal A D conversion characteristics wh...

Page 655: ...ltage Range During A D conversion the voltages input to the analog input pins ANn should be in the range AVSS ANn AVCC n 0 to 7 Relationships of AVCC and AVSS AVCC and AVSS should be related as follows AVCC VCC 0 3 V and AVSS VSS 20 7 2 Processing of Analog Input Pins To prevent damage from voltage surges at the analog input pins AN0 to AN7 connect an input protection circuit like the one shown in...

Page 656: ...ase is shown here in which H 3FF is obtained when AVCC is input as an analog input FF is the data containing the upper 8 bits of the conversion result and C0 is the data containing the lower 2 bits 0 01 µF 10 µF AVCC AN0 to AN7 AVSS SH7709S 1 1 100 Ω 0 1 µF Note Figure 20 9 Example of Analog Input Protection Circuit 1 0 kΩ AN0 to AN7 20 pF 1 MΩ Figure 20 10 Analog Input Pin Equivalent Circuit ...

Page 657: ...H R9 MOV B R9 R8 MOV L ADDRAL R9 MOV B R9 R8 FFFFFFFF C0C0C0C0 FFFFFFFF C0C0C0C0 FFFF C0C0 FFFF C0C0 FF C0 FF C0 Word access MOV L ADDRAH R9 MOV W R9 R8 MOV L ADDRAL R9 MOV W R9 R8 FFxxFFxx C0xxC0xx FFxxFFxx C0xxC0xx FFxx C0xx FFxx C0xx FF xx C0 xx xx FF xx C0 Longword access MOV L ADDRAH R9 MOV L R9 R8 FFxxC0xx FFxxC0xx Ffxx C0xx C0xx FFxx FF xx C0 xx xx C0 xx FF In this table ADDRAH EQU H 040000...

Page 658: ... Conversion time maximum 10 µs with 20 pF capacitive load Output voltage 0 V to AVcc 21 1 2 Block Diagram Figure 21 1 shows a block diagram of the D A converter AVCC DA0 DA1 DACR DADR0 DADR1 Module data bus Bus interface On chip data bus Control circuit Legend DACR D A control register DADR0 D A data register 0 DADR1 D A data register 1 8 bit D A AVSS Figure 21 1 Block Diagram of D A Converter ...

Page 659: ...rter s registers Table 21 2 D A Converter Registers Name Abbreviation R W Initial Value Address 1 D A data register 0 DADR0 R W H 00 H 040000A0 H A40000A0 2 D A data register 1 DADR1 R W H 00 H 040000A2 H A40000A2 2 D A control register DACR R W H 1F H 040000A4 H A40000A4 2 Notes These registers are located in area 1 of physical space Therefore when the cache is on either access these registers fr...

Page 660: ...D A Control Register DACR Bit 7 6 5 4 3 2 1 0 DAOE1 DAOE0 DAE Initial value 0 0 0 1 1 1 1 1 R W R W R W R W R R R R R DACR is an 8 bit readable writable register that controls the operation of the D A converter DACR is initialized to H 1F by a reset Bit 7 D A Output Enable 1 DAOE1 Controls D A conversion and analog output Bit 7 DAOE1 Description 0 DA1 analog output is disabled Initial value 1 Chan...

Page 661: ...E1 Bit 6 DAOE0 Bit 5 DAE Description 0 0 D A conversion is disabled in channels 0 and 1 Initial value 0 1 0 D A conversion is enabled in channel 0 D A conversion is disabled in channel 1 0 1 1 D A conversion is enabled in channels 0 and 1 1 0 0 D A conversion is disabled in channel 0 D A conversion is enabled in channel 1 1 0 1 D A conversion is enabled in channels 0 and 1 1 1 D A conversion is en...

Page 662: ...n starts and DA0 becomes an output pin The converted result is output after the conversion time The output value is DADR0 contents 256 AVcc Output of this conversion result continues until the value in DADR0 is modified or the DAOE0 bit is cleared to 0 3 If the DADR0 value is modified conversion starts immediately and the result is output after the conversion time 4 When the DAOE0 bit is cleared t...

Page 663: ...644 ...

Page 664: ...in Data is serially supplied to the H UDI from the data input pin TDI and output from the data output pin TDO in synchronization with this clock TMS Mode select input pin The state of the TAP control circuit is determined by changing this signal in synchronization with TCK The protocol conforms to the JTAG standard IEEE Std 1140 1 TRST H UDI reset input pin Input is accepted asynchronously with re...

Page 665: ...AK Dedicated emulator pin 22 2 2 Block Diagram Figure 22 1 shows a block diagram of the H UDI SDIR TCK TDO TDI TMS TRST SDBPR MUX SDBSR Shift register TAP controller Decoder Local bus Figure 22 1 Block Diagram of H UDI 22 3 Register Descriptions The H UDI has the following registers SDBPR Bypass register SDIR Instruction register SDBSR Boundary scan register ...

Page 666: ...accessed by the CPU When SDIR is set to the bypass mode SDBPR is connected between H UDI pins TDI and TDO 22 3 2 Instruction Register SDIR The instruction register SDIR is a 16 bit read only register The register is in bypass mode in its initial state It is initialized by TRST assertion or in the TAP test logic reset state and can be written to by the H UDI irrespective of the CPU mode Operation i...

Page 667: ...Initial value 0 0 0 1 Recovery from sleep Bits 11 to 0 Reserved These bits are always read as 1 22 3 3 Boundary Scan Register SDBSR The boundary scan register SDBSR is a shift register located on the PAD for controlling the input output pins of the SH7709S Using the EXTEST and SAMPLE PRELOAD commands a boundary scan test conforming to the JTAG standard can be carried out Table 22 3 shows the corre...

Page 668: ...Q4 PTH4 IN 329 D22 PTA6 IN 298 D31 PTB7 OUT 328 D21 PTA5 IN 297 D30 PTB6 OUT 327 D20 PTA4 IN 296 D29 PTB5 OUT 326 D19 PTA3 IN 295 D28 PTB4 OUT 325 D18 PTA2 IN 294 D27 PTB3 OUT 324 D17 PTA1 IN 293 D26 PTB2 OUT 323 D16 PTA0 IN 292 D25 PTB1 OUT 322 D15 IN 291 D24 PTB0 OUT 321 D14 IN 290 D23 PTA7 OUT 320 D13 IN 289 D22 PTA6 OUT 319 D12 IN 288 D21 PTA5 OUT 318 D11 IN 287 D20 PTA4 OUT 317 D10 IN 286 D19...

Page 669: ...B6 Control 235 D0 Control 264 D29 PTB5 Control 234 BS PTK4 IN 263 D28 PTB4 Control 233 WE2 DQMUL ICIORD PTK6 IN 262 D27 PTB3 Control 232 WE3 DQMUU ICIORD PTK7 IN 261 D26 PTB2 Control 231 AUDSYNC PTE7 IN 260 D25 PTB1 Control 230 CS2 PTK0 IN 259 D24 PTB0 Control 229 CS3 PTK1 IN 258 D23 PTA7 Control 228 CS4 PTK2 IN 257 D22 PTA6 Control 227 CS5 CE1A PTK3 IN 256 D21 PTA5 Control 226 CE2A PTE4 IN 255 D2...

Page 670: ...rol 206 A18 OUT 176 A6 Control 205 A19 OUT 175 A7 Control 204 A20 OUT 174 A8 Control 203 A21 OUT 173 A9 Control 202 A22 OUT 172 A10 Control 201 A23 OUT 171 A11 Control 200 A24 OUT 170 A12 Control 199 A25 OUT 169 A13 Control 198 BS PTK4 OUT 168 A14 Control 197 RD OUT 167 A15 Control 196 WE0 DQMLL OUT 166 A16 Control 195 WE1 DQMLU WE OUT 165 A17 Control 194 WE2 DQMUL ICIORD PTK6 OUT 164 A18 Control ...

Page 671: ...A0 PTG0 IN 147 CS2 PTK0 Control 117 ADTRG PTH5 IN 146 CS3 PTK1 Control 116 IRLS3 PTF3 PINT11 IN 145 CS4 PTK2 Control 115 IRLS2 PTF2 PINT10 IN 144 CS5 CE1A PTK3 Control 114 IRLS1 PTF1 PINT9 IN 143 CS6 CE1B Control 113 IRLS0 PTF0 PINT8 IN 142 CE2A PTE4 Control 112 MD0 IN 141 CE2B PTE5 Control 111 CKE PTK5 OUT 140 CKE PTK5 IN 110 RAS3L PTJ0 OUT 139 RAS3L PTJ0 IN 109 PTJ1 OUT 138 PTJ1 IN 108 CASL PTJ2...

Page 672: ...INT5 IN 85 DACK0 PTD5 Control 53 MCS4 PTC4 PINT4 IN 84 DACK1 PTD7 Control 52 MCS3 PTC3 PINT3 IN 83 PTE6 Control 51 MCS2 PTC2 PINT2 IN 82 PTE3 Control 50 MCS1 PTC1 PINT1 IN 81 RAS3U PTE2 Control 49 MCS0 PTC0 PINT0 IN 80 PTE1 Control 48 MD3 IN 79 BACK Control 47 MD4 IN 78 ASEBRKAK PTG5 Control 46 MD5 IN 77 AUDATA3 PTG3 Control 45 STATUS0 PTJ6 OUT 76 AUDATA2 PTG2 Control 44 STATUS1 PTJ7 OUT 75 AUDATA...

Page 673: ...9 MCS5 PTC5 PINT5 Control 26 MCS1 PTC1 PINT1 OUT 8 MCS4 PTC4 PINT4 Control 25 MCS0 PTC0 PINT0 OUT 7 WAKEUP PTD3 Control 24 DRAK0 PTD1 OUT 6 RESETOUT PTD2 Control 23 DRAK1 PTD0 OUT 5 MCS3 PTC3 PINT3 Control 22 STATUS0 PTJ6 Control 4 MCS2 PTC2 PINT2 Control 21 STATUS1 PTJ7 Control 3 MCS1 PTC1 PINT1 Control 20 TCLK PTH7 Control 2 MCS0 PTC0 PINT0 Control 19 IRQOUT Control 1 DRAK0 PTD1 Control 18 TxD0 ...

Page 674: ...Shift IR Exit1 IR Pause IR Exit2 IR Update IR Select IR scan 0 0 1 0 0 1 0 1 1 1 0 0 Figure 22 2 TAP Controller State Transitions Note The transition condition is the TMS value at the rising edge of TCK The TDI value is sampled at the rising edge of TCK shifting occurs at the falling edge of TCK The TDO value changes at the TCK falling edge The TDO is at high impedance except with shift DR shift S...

Page 675: ...mulator and the H UDI 2 In ASE mode reset hold is enabled by driving the RESETP and TRST pins low for a constant cycle In this state the CPU does not start up even if RESETP is driven high When TRST is driven high H UDI operation is enabled but the CPU does not start up The reset hold state is cancelled by the following Boot request from H UDI Another RESETP assert power on reset 22 4 3 H UDI Rese...

Page 676: ...dby mode 22 4 5 Bypass The JTAG based bypass mode for the H UDI pins can be selected by setting a command from the H UDI in SDIR 22 4 6 Using H UDI to Recover from Sleep Mode It is possible to recover from sleep mode by setting a command 0001 from the H UDI in SDIR 22 5 Boundary Scan A command can be set in SDIR by the H UDI to place the H UDI pins in the boundary scan mode stipulated by JTAG 22 5...

Page 677: ... not affect normal operation of this LSI In a PRELOAD operation an initial value is set in the parallel output latch of the boundary scan register from the scan path prior to the EXTEST instruction Without a PRELOAD operation when the EXTEST instruction was executed an undefined value would be output from the output pin until completion of the initial scan sequence transfer to the output latch wit...

Page 678: ...to stabilize before performing a boundary scan test 5 Fix the RESETP pin low 6 Fix the CA pin high and the ASEMD0 pin low 22 6 Usage Notes 1 An H UDI command other than an H UDI interrupt once set will not be modified as long as another command is not re issued from the H UDI An H UDI interrupt command however will be changed to a bypass command once set 2 Because chip operations are suspended in ...

Page 679: ...660 ...

Page 680: ... to 75 C Storage temperature Tstr 55 to 125 C Caution Operating the chip in excess of the absolute maximum rating may result in permanent damage Order of turning on 1 7 V 1 8 V 1 9 V 2 0 V power Vcc Vcc PLL1 Vcc PLL2 Vcc RTC and 3 3 V power VccQ AVcc 1 First turn on the 3 3 V power then turn on the 1 7 V 1 8 V 1 9 V 2 0 V power within 100 µs This interval should be as short as possible 2 Until vol...

Page 681: ...ted and analog pins Power On Sequence Power off order 1 In the reverse order of powering on first turn off the 1 7 V 1 8 V 1 9 V 2 0 V power then turn off the 3 3 V power within 100 µs This interval should be as short as possible 2 Pin states are undefined while only the 1 7 V 1 8 V 1 9 V 2 0 V power is off The system design must ensure that these undefined states do not cause erroneous system ope...

Page 682: ...1 80 2 05 133 MHz model Vcc RTC 1 55 1 70 1 95 100 MHz model Current dissipation Normal operation Icc 410 680 mA Vcc 2 0 V Iφ 200 MHz 330 540 Vcc 1 9 V Iφ 167 MHz 250 410 Vcc 1 8 V Iφ 133 MHz 190 310 Vcc 1 7 V Iφ 100 MHz IccQ 20 40 VccQ 3 3 V Bφ 33 MHz Sleep mode 1 Icc 15 30 1 When there is no other external bus cycle other than the refresh cycle IccQ 10 20 Bφ 33MHz Standby mode Icc 40 120 µA Ta 2...

Page 683: ... Typ Max Unit Measurement Conditions Input high voltage RESETP RESETM NMI IRQ5 to IRQ0 MD5 to MD0 IRL3 to IRL0 IRLS3 to IRLS0 PINT15 to PINT0 ASEMD0 ADTRG TRST EXTAL CKIO RxD1 CA VIH VccQ 0 9 VccQ 0 3 V EXTAL2 When not connecting to a crystal oscillator connect to Vcc Port L 2 0 AVcc 0 3 Other input pins 2 0 VccQ 0 3 ...

Page 684: ...2 When not connecting to a crystal oscillator connect to Vcc Port L 0 3 AVcc 0 2 Other input pins 0 3 VccQ 0 2 Input leak current All input pins I Iin I 1 0 µA Vin 0 5 to VccQ 0 5 V Three state leak current I O all output pins off condition I Isti I 1 0 µA Vin 0 5 to VccQ 0 5 V Output high voltage All output pins VOH 2 4 V VccQ 3 0 V IOH 200 µA 2 0 VccQ 3 0 V IOH 2 mA Output low voltage All output...

Page 685: ... VccQ 0 3 V AVcc VccQ 0 3 V If the A D and D A converters are not used do not leave the AVcc and AVss pins open Connect AVcc to VccQ and connect AVss to VssQ 4 Current dissipation values shown are the values at which all output pins are without load under conditions of VIH min VccQ 0 5 V VIL max 0 5 V Table 23 3 Permitted Output Current Values VccQ 3 3 0 3 V Vcc 1 55 to 2 15 V AVcc 3 3 0 3 V Ta 20...

Page 686: ... V Ta 20 to 75 C Item Symbol Min Typ Max Unit Remarks Operating CPU cache TLB f 30 200 MHz 200 MHz model frequency 25 167 167 MHz model 133 133 MHz model 100 100 MHz model External bus 30 66 67 200 MHz model 25 167 MHz model 133 MHz model 100 MHz model Peripheral module 7 5 33 34 200 MHz model 6 25 167 MHz model 133 MHz model 100 MHz model Note The Min value depends on the clock mode used See tabl...

Page 687: ...CKIO clock input rise time tCKIR 4 ns CKIO clock input fall time tCKIF 4 ns CKIO clock output frequency fOP 25 25 MHz 23 3 CKIO clock output cycle time tcyc 40 40 ns CKIO clock output low pulse width tCKOL 10 6 ns CKIO clock output high pulse width tCKOH 10 6 ns CKIO clock output rise time tCKOR 7 ns CKIO clock output fall time tCKOF 7 ns CKIO2 clock output delay time tCK2D 3 3 ns CKIO2 clock outp...

Page 688: ...ernal Bus Operating Frequency 25 MHz Item Symbol Min Max Unit Figure PLL synchronization settling time 1 standby canceled tPLL1 100 µs 23 8 23 9 PLL synchronization settling time 2 multiplication rate modified tPLL2 100 µs 23 10 IRQ IRL interrupt determination time RTC used and standby mode tIRQSTB 100 µs 23 9 ...

Page 689: ...lock input rise time tCKIR 3 ns CKIO clock input fall time tCKIF 3 ns CKIO clock output frequency fOP 25 33 MHz 23 3 CKIO clock output cycle time tcyc 30 3 40 ns CKIO clock output low pulse width tCKOL 8 ns CKIO clock output high pulse width tCKOH 8 ns CKIO clock output rise time tCKOR 6 ns CKIO clock output fall time tCKOF 6 ns CKIO2 clock output delay time tCK2D 3 3 ns CKIO2 clock output rise ti...

Page 690: ... Bus Operating Frequency 33 MHz cont Item Symbol Min Max Unit Figure PLL synchronization settling time 1 standby canceled tPLL1 100 µs 23 8 23 9 PLL synchronization settling time 2 multiplication rete modified tPLL2 100 µs 23 10 IRQ IRL interrupt determination time RTC used and standby mode tIRLSTB 100 µs 23 9 ...

Page 691: ...clock input low pulse width tCKIL 4 ns CKIO clock input high pulse width tCKIH 4 ns CKIO clock input rise time tCKIR 2 ns CKIO clock input fall time tCKIF 2 ns CKIO clock output frequency fOP 25 66 MHz 23 3 CKIO clock output cycle time tcyc 15 2 40 ns CKIO clock output low pulse width tCKOL 3 ns CKIO clock output high pulse width tCKOH 3 ns CKIO clock output rise time tCKOR 5 ns CKIO clock output ...

Page 692: ...on settling time 1 tOSC2 10 ms 23 5 Standby return oscillation settling time 2 tOSC3 10 ms 23 6 Standby return oscillation settling time 3 tOSC4 11 ms 23 7 PLL synchronization settling time 1 standby canceled tPLL1 100 µs 23 8 23 9 PLL synchronization settling time 2 multiplication rete modified tPLL2 100 µs 23 10 IRQ IRL interrupt determination time RTC used and standby mode tIRLSTB 100 µs 23 9 ...

Page 693: ...IH VIH 1 2 VCCQ 1 2 VCCQ VIL VIL EXTAL input Note The clock input from the EXTAL pin Figure 23 1 EXTAL Clock Input Timing tCKIH tCKIF tCKIR tCKIL tCKIcyc VIH 1 2 VCCQ 1 2 VCCQ VIH VIL VIH VIL CKIO input Figure 23 2 CKIO Clock Input Timing ...

Page 694: ...tCK2D VOH CKIO2 output tCK2OR tCK2OF VOH VOL VOL VOH Figure 23 3 CKIO Clock Output Timing VCC min tRESP MW tRESP MS tOSC1 VCC RESETP RESETM CKIO internal clock Stable oscillation Note Oscillation settling time when built in oscillator is used Figure 23 4 Power on Oscillation Settling Time ...

Page 695: ...r is used in the oscillation off mode Figure 23 5 Oscillation Settling Time at Standby Return Return by Reset CKIO internal clock Stable oscillation Standby tOSC3 NMI Note Oscillation settling time when built in oscillator is used in the oscillation off mode WAKEUP Figure 23 6 Oscillation Settling Time at Standby Return Return by NMI ...

Page 696: ...dby Return Return by IRQ4 to IRQ0 PINT0 1 IRL3 to IRL0 EXTAL input or CKIO input Stable input clock Reset or NMI interrupt request Stable input clock Normal Normal Standby PLL output CKIO output Internal clock STATUS 0 STATUS 1 PLL synchronization Note PLL oscillation settling time during the continued oscillation mode or when clock is input from EXTAL pin or CKIO pin tPLL1 PLL synchronization Fig...

Page 697: ...when clock is input from EXTAL pin or CKIO pin tPLL1 PLL synchronization Standby PLL synchronization tIRLSTB Figure 23 9 PLL Synchronization Settling Time by IRQ IRL and PINT0 1 Interrupt EXTAL input 1 CKIO input CKIO output 2 PLL output Internal clock Multiplication rate modified tPLL2 Notes 1 CKIO input in clock mode 7 2 PLL output in other than clock mode 7 Figure 23 10 PLL Synchronization Sett...

Page 698: ...3 15 Bus tri state delay time 1 tBOFF1 0 15 ns Bus tri state delay time 2 tBOFF2 0 15 ns Bus buffer on time 1 tBON1 0 15 ns Bus buffer on time 2 tBON2 0 15 ns Notes 1RESETP NMI and IRQ5 to IRQ0 are asynchronous Changes are detected at the clock fall when the setup shown is used When the setup cannot be used detection can be delayed until the next clock falls 2The upper limit of the external bus cl...

Page 699: ...M tRESPW MW Figure 23 11 Reset Input Timing CKIO RESETP RESETM tRESPH MH tRESPS MS VIH VIL NMI tNMIH tNMIS VIH VIL IRQ5 to IRQ0 tIRQH tIRQS VIH VIL Figure 23 12 Interrupt Signal Input Timing CKIO tIRQOD tIRQOD IRQOUT Figure 23 13 IRQOUT Timing ...

Page 700: ... tBOFF1 tBON1 tBACKD tBON2 tBREQH tBREQH tBREQS tBREQS MCSn Figure 23 14 Bus Release Timing CKIO tSTD tBOFF2 tBOFF1 tSTD tBON2 tBON1 Normal mode Standby mode Normal mode STATUS 0 STATUS 1 RD RD WR RAS CAS CSn WEn BS MCSn A25 to A0 D31 to D0 Figure 23 15 Pin Drive Timing at Standby ...

Page 701: ... 21 CS delay time SDRAM access tCSD3 1 5 10 ns 23 22 23 39 Read write delay time tRWD 1 5 10 ns 23 16 23 46 23 39 23 46 Read write hold time tRWH 0 ns 23 16 23 21 Read strobe delay time tRSD 10 ns 23 16 23 21 23 40 23 43 Read data setup time 1 tRDS1 6 ns 23 16 23 21 23 40 23 46 Read data setup time 2 tRDS2 5 ns 23 22 23 25 23 30 23 33 Read data hold time 1 tRDH1 0 ns 23 16 23 21 23 40 23 46 Read d...

Page 702: ...23 41 23 43 23 45 23 46 WAIT hold time tWTH 0 ns 23 17 23 21 23 41 23 43 23 45 23 46 RAS delay time 2 tRASD2 1 5 10 ns 23 22 23 39 CAS delay time 2 tCASD2 1 5 10 ns 23 22 23 39 DQM delay time tDQMD 1 5 10 ns 23 22 23 36 CKE delay time tCKED 1 5 10 ns 23 38 ICIORD delay time tICRSD 10 ns 23 44 23 46 ICIOWR delay time tICWSD 10 ns 23 44 23 46 IOIS16 setup time tIO16S 6 ns 23 45 23 46 IOIS16 hold tim...

Page 703: ...n RD WR RD D31 to D0 read WEn D31 to D0 write BS T2 tAD tAH tAD tCSD1 tRWD tRSD tCSD2 tWED tWDD1 tRDS1 tBSD tBSD tDAKD1 tDAKD1 tRDH1 tRDH1 tWED tRSD tAH tRWH tRWD tWDH1 tRWH tRWH tAH tWDH3 DACKn read write tAS Figure 23 16 Basic Bus Cycle No Wait ...

Page 704: ... to D0 read WEn D31 to D0 write BS WAIT tAD tAD tRWD tRWH tAH tAH tRSD tCSD1 tWED tWDD1 tBSD tWTS tWTH tBSD tRDS1 tCSD2 tWED tRSD tRDH1 tRDH1 tRWD tAH tRWH tWDH3 tWDH1 tRWH tDAKD1 tDAKD1 DACKn read write tAS Figure 23 17 Basic Bus Cycle One Wait ...

Page 705: ...A0 CSn RD WR RD read D31 to D0 read WEn write D31 to D0 write BS WAIT tAD tAD tRWD tRSD tWED tWTS tWTH tBSD tBSD tRDS1 tWTS tWTH tCSD1 tCSD2 tRDH1 tRWH tAH tRWH tRWD tRWH tWDH3 tWDH1 tDAKD1 tDAKD2 DACKn tAS Figure 23 18 Basic Bus Cycle External Wait WAITSEL 1 ...

Page 706: ... tCSD1 tRWD tBSD tBSD tAH tBSD tDAKD1 tDAKD2 tCSD2 tRSD tRDS1 tWTS tWTH tWTS tWTH tWTS tWTH tRDS tRSD T1 TB2 TB1 TB2 TB1 TB2 TB1 T2 tRSD tRDH1 tRSD tAH tRDH1 tRWH tAH tRWH tRWD tRDH1 tBSD Note In the write cycle the basic bus cycle the basic bus cycle is performed Figure 23 19 Burst ROM Bus Cycle No Wait ...

Page 707: ...e In the write cycle the basic bus cycle is performed BS WAIT DACKn tAD tAD tAD tCSD1 tRWH tRWD tRSD tRSD tRDH1 tRDH1 tRDS1 tBSD tDAKD1 tDAKD2 tBSD tBSD tBSD tWTS tWTH tWTS tWTH T1 Tw Tw TB2 TB1 TB2 Tw T2 T2 tCSD2 tRDS1 tRDH1 tRSD tRWD tRWH Figure 23 20 Burst ROM Bus Cycle Two Waits ...

Page 708: ...D tAD tCSD1 tCSD2 tRWD tRWH tRDH1 tAH tAH tRWD tRSD tRSD1 tAH tAD tBSD tBSD tWTS tWTH tWTS tWTH tWTS tWTH tWTS tWTH tBSD tBSD tRDS1 tRDH1 tRSD tDAKD1 tDAKD2 tRDH1 tRWH tRSD1 tRDS Note In the write cycle the basic bus cycle is performed Figure 23 21 Burst ROM Bus Cycle External Wait WAITSEL 1 ...

Page 709: ... Tr tAD Row address Row address Read A command Row address Column address Tc1 Tc2 Tpc D31 to D0 tAD tAD tAD tAD tCSD3 tRWD tCSD3 tRWD tRASD2 tDQMD tDQMD tRDH2 tBSD tBSD High tRDS2 tRASD2 tCASD2 tCASD2 tAD tAD tAD DACKn tDAKD1 tDAKD1 Figure 23 22 Synchronous DRAM Read Bus Cycle RCD 0 CAS Latency 1 TPC 0 ...

Page 710: ...w Td1 Tpc Tpc D31 to D0 Row address Row address Read A command Row address Column address tAD tAD tAD tAD tCSD3 tRWD tDQMD tRDH2 tBSD tBSD tRDS2 tCSD3 tRWD tRASD2 tDQMD tRASD2 tCASD2 tCASD2 tAD tAD tAD tAD DACKn tDAKD1 tDAKD1 Figure 23 23 Synchronous DRAM Read Bus Cycle RCD 2 CAS Latency 2 TPC 1 ...

Page 711: ... Row address Row address Read A command Read command Row address Column address 1 4 tAD tAD tAD tAD tAD tAD tAD tAD tAD tCSD3 tCSD3 tRWD tRWD tRASD2 tDQMD tBSD tBSD tRDS2 tRDH2 tRDS2 tRDH2 tDQMD tRASD2 tCASD2 tCASD2 tDAKD1 tDAKD1 DACKn Figure 23 24 Synchronous DRAM Read Bus Cycle Burst Read Single Read 4 RCD 0 CAS Latency 1 TPC 1 ...

Page 712: ...ead tAD tAD tAD tAD tAD tAD tAD tAD tAD tAD tCSD3 tRWD tDQMD tRDS2 tBSD tBSD tRDH2 tRDS2 tRDH2 tCSD3 tRWD tRASD2 tRASD2 tCASD2 tDQMD tCASD2 Row address Row address Row address Read command High Column address 1 4 tDAKD1 tDAKD1 DACKn Figure 23 25 Synchronous DRAM Read Bus Cycle Burst Read Single Read 4 RCD 1 CAS Latency 3 TPC 0 ...

Page 713: ... High D31 to D0 tAD Row address Row address Write A command Row address Column address tAD tAD tCSD3 tRWD tRASD2 tAD tAD tAD tAD tAD tCSD3 tRWD tRWD tRASD2 tCASD2 tDQMD tWDD2 tBSD tDQMD tWDH2 tBSD tCASD2 tDAKD1 tDAKD1 DACKn Figure 23 26 Synchronous DRAM Write Bus Cycle RCD 0 TPC 0 TRWL 0 ...

Page 714: ...c Tpc High D31 to D0 tAD Row address Row address Write A command Row address Column address tAD tAD tAD tAD tAD tAD tCSD1 tRWD tRWD tAD tAD tAD tCSD1 tRWD tRASD2 tRASD2 tDQMD tWDD2 tBSD tCASD2 tDQMD tWDH2 tBSD tCASD2 tDAKD1 tDAKD1 DACKn Figure 23 27 Synchronous DRAM Write Bus Cycle RCD 2 TPC 1 TRWL 1 ...

Page 715: ... Row address Row address Write A command Write command Row address tAD tAD tAD tAD tCSD3 tRWD tRWD tAD tAD tAD tAD tCSD3 tRWD tRASD2 tRASD2 tDQMD tWDD2 tWDD2 tBSD tCASD2 tDQMD tWDH2 tBSD tCASD2 Column address 1 4 tDAKD1 tDAKD1 DACKn Figure 23 28 Synchronous DRAM Write Bus Cycle Burst Mode Single Write 4 RCD 0 TPC 1 TRWL 0 ...

Page 716: ... address Row address Write A command Write command Row address Column address 1 4 tAD tAD tAD tAD tAD tAD tAD tAD tAD tCSD3 tCSD3 tRWD tRWD tRWD tRASD2 tDQMD tBSD tBSD tWDD2 tWDD2 tWDH2 tDQMD tRASD2 tCASD2 tCASD2 tDAKD1 tDAKD1 DACKn Figure 23 29 Synchronous DRAM Write Bus Cycle Burst Mode Single Write 4 RCD 1 TPC 0 TRWL 0 ...

Page 717: ...Td2 Tc4 Td3 Td4 D31 to D0 tAD tAD tCSD3 tCSD3 tRWD tRWD tRASD2 tDQMD tDQMD tBSD tBSD High tAD tAD tAD tRDS2 tRDH2 tRDS2 tRDH2 tCASD2 tCASD2 tAD Row address Read command Column address tDAKD1 tDAKD1 DACKn Figure 23 30 Synchronous DRAM Burst Read Bus Cycle RAS Down Same Row Address CAS Latency 1 ...

Page 718: ...SD2 tCASD2 tDQMD tRWD tCSD3 tAD tAD tAD Tnop Tc1 Tc2 Tc3 Td1 Tc4 Td2 Td3 Td4 CKIO A12 or A10 A15 to A0 CSn RD WR RAS CAS DQMxx D31 to D0 BS CKE Row address DACKn tDAKD1 tDAKD1 Column address Read command Figure 23 31 Synchronous DRAM Burst Read Bus Cycle RAS Down Same Row Address CAS Latency 2 ...

Page 719: ...CSD3 tCSD3 tRWD tRWD tRWD tRASD2 tRASD2 tDQMD tDQMD tDQMD tBSD tBSD tDAKD1 tDAKD1 High tAD tAD tAD tAD tAD tAD tRDS2 tRDH2 tRDS2 tRDH2 tAD Row address Read command Row address Row address Column address tCASD2 tCASD2 DACKn Figure 23 32 Synchronous DRAM Burst Read Bus Cycle RAS Down Different Row Address TPC 0 RCD 0 CAS Latency 1 ...

Page 720: ...3 tRWD tRWD tRWD tRASD2 tRASD2 tRASD2 tRASD2 tDQMD tDQMD tDQMD tBSD tBSD High tAD tAD tAD tAD tAD tAD tRDS2 tRDH2 tRDS2 tRDH2 tAD Td4 Row address Read command Column address tCASD2 tCASD2 Row address Row address tDAKD1 tDAKD1 DACKn Figure 23 33 Synchronous DRAM Burst Read Bus Cycle RAS Down Different Row Address TPC 1 RCD 0 CAS Latency 1 ...

Page 721: ...1 Tc2 Tc3 Tc4 D31 to D0 tAD tAD tCSD3 tCSD3 tRWD tRWD tRASD2 tRASD2 tDQMD tDQMD tWDD2 tWDD2 tBSD tBSD High tAD tAD tAD tCASD2 tCASD2 tAD Row address Write command Column address tDAKD1 tDAKD1 DACKn Figure 23 34 Synchronous DRAM Burst Write Bus Cycle RAS Down Same Row Address ...

Page 722: ...o D0 tAD tAD tCSD3 tCSD3 tRWD tRWD tRWD tRWD tRASD2 tRASD2 tDQMD tDQMD tDQMD tBSD tBSD High tAD tAD tAD tAD tAD tAD tAD Row address Write command Row address Row address Column address tCASD2 tCASD2 tDAKD1 tDAKD1 DACKn Figure 23 35 Synchronous DRAM Burst Write Bus Cycle RAS Down Different Row Address TPC 0 RCD 0 ...

Page 723: ...SD3 tRWD tRWD tRWD tRWD tRASD2 tRASD2 tRASD2 tRASD2 tDQMD tDQMD tDQMD tWDD2 tWDD2 tBSD tBSD High tAD tAD tAD tAD tAD tAD Td4 Write command Column address tCASD2 tCASD2 Row address Row address tAD tAD Row address tDAKD1 tDAKD1 DACKn Figure 23 36 Synchronous DRAM Burst Write Bus Cycle RAS Down Different Row Address TPC 1 RCD 1 ...

Page 724: ... CKIO CSn RD WR CASxx CKE RAS3x Tp Tpc TRr TRrw TRrw Tpc Tpc tCSD3 tCSD3 tCSD3 tCSD3 tRASD2 tRASD2 tRASD2 tRASD2 tCASD2 tCASD2 tRWD tRWD High Figure 23 37 Synchronous DRAM Auto Refresh Timing TRAS 1 TPC 1 ...

Page 725: ... TRs2 TRs2 TRs3 CKIO CKE CSn RAS CAS RD WR t RWD tRWD t CASD2 tRASD2 tCSD3 t CASD2 t CSD3 t RASD2 Tp tCSD3 tCSD3 tRASD2 tRASD2 Tpc Tpc tCKED tCKED tRWD Figure 23 38 Synchronous DRAM Self Refresh Cycle TRAS 1 TPC 1 ...

Page 726: ...1 A11 to A2 or A9 to A2 TRp1 TRp2 TRp3 TRp4 TMw1 TMw2 TMw3 TMw4 High CKE tAD tAD tAD tAD tAD tAD tAD tAD tAD tAD tAD tCSD3 tCSD3 tRWD tRWD tRWD tRASD2 tRASD2 tRASD2 tRASD2 tCASD2 tCASD2 tDAKD1 tDAKD1 DACKn Figure 23 39 Synchronous DRAM Mode Register Write Cycle ...

Page 727: ...O A25 to A0 CExx RD WR RD D15 to D0 WE1 D15 to D0 BS DACKn tAD tAD tCSD1 tCSD1 tRWD tRSD tRSD tRWD tDAKD1 tDAKD1 tWED tWDD1 tWED tRDS1 tRDH1 tBSD tBSD tWDH4 tWDH1 read read write write Figure 23 40 PCMCIA Memory Bus Cycle TED 0 TEH 0 No Wait ...

Page 728: ...D WR RD read D15 to D0 read WE1 write D15 to D0 write BS DACKn WAIT tAD tCSD1 tRWD tAD tCSD1 tRWD tWDH4 tRSD tRSD tDAKD1 tDAKD1 tWED tWDD1 tWED tWDH1 tRDH1 tBSD tWTS tWTH tWTS tWTH tRDS1 tBSD Figure 23 41 PCMCIA Memory Bus Cycle TED 2 TEH 1 One Wait External Wait WAITSEL 1 ...

Page 729: ...0 BS DACKn tAD tAD tCSD1 tRWD tCSD1 tRWD tAD tAD tAD tAD tDAKD1 tRSD tRSD tRDH1 tRDH1 tRSD tRSD tBSD tBSD tBSD tBSD tRDS1 tRDS1 Note Even though burst mode is set write cycle operation is the same as in normal mode read read tDAKD1 Figure 23 42 PCMCIA Memory Bus Cycle Burst Read TED 0 TEH 0 No Wait ...

Page 730: ... Note Even though burst mode is set the write cycle operation is the same as in normal mode BS DACKn WAIT tAD tAD tCSD1 tRWD tCSD1 tDAKD1 tRWD tAD tAD tAD tRSD tRSD tRSD tDAKD1 tBSD tBSD tBSD tBSD tRDH1 tRDH1 tRDS1 tWTS tWTH tWTS tWTS tWTH tWTH Figure 23 43 PCMCIA Memory Bus Cycle Burst Read TED 1 TEH 1 Two Waits Burst Pitch 3 WAITSEL 1 ...

Page 731: ... RD WR ICIORD read D15 to D0 read ICIOWR write D15 to D0 write BS DACKn tAD tAD tCSD1 tCSD1 tRWD tICRSD tICRSD tRWD tDAKD1 tDAKD1 tICWSD tWDD1 tICWSD tRDH1 tRDS1 tBSD tBSD tWDH1 tWDH4 Figure 23 44 PCMCIA I O Bus Cycle TED 0 TEH 0 No Wait ...

Page 732: ...D15 to D0 read ICIOWR write D15 to D0 write BS DACKn WAIT IOIS16 tAD tCSD1 tRWD tAD tCSD1 tRWD tICRSD tICRSD tDAKD1 tDAKD1 tICWSD tWDD1 tICWSD tWDH1 tWDH4 tRDH1 tBSD tBSD tWTS tWTH tWTS tWTH tIO16S tIO16H tRDS1 Figure 23 45 PCMCIA I O Bus Cycle TED 2 TEH 1 One Wait External Wait WAITSEL 1 ...

Page 733: ...16 DACKn tAD tAD tCSD1 tCSD1 tRWD tRWD tWDD1 tWDH4 tWDH4 tBSD tBSD tAD tAD tICRSD tICRSD tICRSD tICRSD tICWSD tWTS tWTH tWTH tIO16S tIO16H tAD tRDS1 tCSD1 tDAKD1 tDAKD1 tRDS1 tICWSD tICWSD tICWSD tRDH1 tRDH1 tWDD1 tWDH1 tBSD tBSD tWTS read read write write Figure 23 46 PCMCIA I O Bus Cycle TED 1 TEH 1 One Wait Bus Sizing WAITSEL 1 ...

Page 734: ...KR 1 5 23 50 Input clock fall time tSCKF 1 5 Input clock pulse width tSCKW 0 4 0 6 tscyc Transmission data delay time tTXD 100 ns 23 51 Receive data setup time clock synchronization tRXS 100 Receive data hold time clock synchronization tRXH 100 RTS delay time tRTSD 100 CTS setup time clock synchronization tCTSS 100 CTS hold time clock synchronization tCTSH 100 Port Output data delay time tPORTD 17...

Page 735: ... tTCKWH tTCKWL CKIO TCLK input Figure 23 48 TCLK Clock Input Timing RTC crystal oscillator Stable oscillation VCC VCCmin tROSC Figure 23 49 Oscillation Settling Time at RTC Crystal Oscillator Power on tSCKW SCK input tSCKR tSCKF tSCYC Figure 23 50 SCK Input Clock Timing ...

Page 736: ...CI I O Timing in Clock Synchronous Mode tPORTS1 CKIO PORT 7 to 0 read B P clock ratio 1 1 PORT 7 to 0 read B P clock ratio 4 1 tPORTH1 tPORTS2 PORT 7 to 0 read B P clock ratio 2 1 tPORTH2 tPORTS3 tPORTH3 PORT 7 to 0 write tPORTD Figure 23 52 I O Port Timing DREQn CKIO tDREQS tDREQH Figure 23 53 DREQ Input Timing ...

Page 737: ...2 ns TCK low pulse width tTCKL 12 ns TCK rise fall time tTCKf 4 ns TRST setup time tTRSTS 12 ns Figure 23 56 TRST hold time tTRSTH 50 tcyc TDI setup time tTDIS 10 ns Figure 23 57 TDI hold time tTDIH 10 ns TMS setup time tTMSS 10 ns TMS hold time tTMSH 10 ns TDO delay time tTDOD 16 ns ASEMD0 setup time tASEMDH 12 ns Figure 23 58 ASEMD0 hold time tASEMDS 12 ns tTCKL tTCKf VIL VIL VIH VIH VIH 1 2VccQ...

Page 738: ...STS tTRSTH TRST Figure 23 56 TRST Input Timing Reset Hold TCK TDI TMS tTDIS tTMSS tTDIH tTCKCYC tTMSH tTDOD TDO Figure 23 57 H UDI Data Transfer Timing tASEMD0S tASEMD0H RESETP ASEMD0 Figure 23 58 ASEMD0 Input Timing ...

Page 739: ... to PINT0 TRST RxD1 CA NMI IRQ5 IRQ0 CKIO and MD5 MD0 are within Vss to Vcc Input rise and fall times 1 ns IOL IOH CL VREF LSI output pin DUT output Notes CL is the total value that includes the capacitance of measurement instruments etc and is set as follows for each pin 30pF CKIO RAS CAS CS0 CS2 CS6 CE2A CE2B BACK 50pF All other pins IOL and IOH are the values shown in table 23 3 1 2 Figure 23 5...

Page 740: ... s pins is shown below The graph shown in figure 23 60 should be taken into consideration in the design process if the stipulated capacitance is exceeded in connecting an external device If the connected load capacitance exceeds the range shown in figure 23 60 the graph will not be a straight line 3 2 1 0 0 10 20 30 40 50 Load Capacitance pF Delay Time ns Figure 23 60 Load Capacitance vs Delay Tim...

Page 741: ...nal source single source impedance 5 k Nonlinearity error 3 0 LSB Offset error 2 0 LSB Full scale error 2 0 LSB Quantization error 0 5 LSB Absolute accuracy 4 0 LSB 23 5 D A Converter Characteristics Table 23 11 lists the D A converter characteristics Table 23 11 D A Converter Characteristics VccQ 3 3 0 3 V Vcc 1 55 to 2 15 V AVcc 3 3 0 3 V Ta 20 to 75 C Item Min Typ Max Unit Test Conditions Resol...

Page 742: ... 1 CKIO IO 1 IO 1 IO 1 IO 1 IO 1 EXTAL2 I I I I I XTAL2 O O O O O CAP1 CAP2 System control RESETP I I I I I RESETM I I I I I BREQ I I I I I BACK O O O O L MD 5 0 I I I I I CA I I I I I STATUS 1 0 PTJ 7 6 O OP 3 OP 3 OP 3 OP 3 Interrupt IRQ 3 0 IRL 3 0 PTH 3 0 V 8 I I I I IRQ 4 PTH 4 V 8 I I I I NMI I I I I I IRLS 3 0 PTF 3 0 PINT 11 8 V I IZ I I MCS 7 0 PTC 7 0 PINT 7 0 V OP 3 ZH 11 K 3 OP 3 ZP 3 ...

Page 743: ... O ZH 11 O Z CS 2 4 PTK 0 2 H OP 3 ZH 11 K 3 OP 3 ZP 3 CS5 CE1A PTK 3 H OP 3 ZH 11 K 3 OP 3 ZP 3 CS6 CE1B H O ZH 11 O Z BS PTK 4 H OP 3 ZH 11 K 3 OP 3 ZP 3 RAS3L PTJ 0 H OP 3 ZOK 4 OP 3 ZOP 4 RAS3U PTE 2 V OP 3 ZOK 4 OP 3 ZOP 4 CASL PTJ 2 H OP 3 ZOK 4 OP 3 ZOP 4 CASU PTJ 3 H OP 3 ZOK 4 OP 3 ZOP 4 WE0 DQMLL H O ZH 11 O Z WE1 DQMLU WE H O ZH 11 O Z WE2 DQMUL ICIORD PTK 6 H OP 3 ZH 11 K 3 OP 3 ZP 3 W...

Page 744: ... 5 IZ 6 OZ 6 IOP 5 SCIF IrDA RxD1 SCPT 2 Z ZI 7 Z IZ 6 IZ 6 with FIFO TxD1 SCPT 2 Z ZO 7 ZK 3 OZ 6 OZ 6 SCK1 SCPT 3 V ZP 3 ZK 3 IOP 5 IOP 5 SCIF with FIFO RxD2 SCPT 4 Z ZI 7 Z IZ 6 IZ 6 TxD2 SCPT 4 Z ZO 7 ZK 3 OZ 6 OZ 6 SCK2 SCPT 5 V ZP 3 ZK 3 IOP 5 IOP 5 RTS2 SCPT 6 V OP 3 ZK 3 OP 3 OP 3 CTS2 IRQ5 SCPT 7 V 8 ZI 7 I I I Port AUDSYNC PTE 7 OV OP 3 OK 3 OP 3 OP 3 CE2B PTE 5 V OP 3 ZH 11 K 3 OP 3 ZP ...

Page 745: ... state V I O buffer off pull up MOS on Notes 1 Depending on the clock mode MD2 MD0 setting 2 Z when the port function is used 3 K or P when the port function is used 4 K or P when the port function is used Z or O when the port function is not used depending on register setting 5 K or P when the port function is used I or O when the port function is not used depending on register setting 6 Dependin...

Page 746: ... Serial port 0 data input input port RXD1 SCPT 2 172 C13 I Serial port 1 data input input port RXD2 SCPT 4 174 B12 I Serial port 2 data input input port TXD0 SCPT 0 164 C15 O Serial port 0 data output output port TXD1 SCPT 2 166 A14 O Serial port 1 data output output port TXD2 SCPT 4 168 C14 O Serial port 2 data output output port SCK0 SCPT 1 165 D15 I O Serial port 0 clock input output I O port S...

Page 747: ...s MCS 7 0 PTC 7 0 PINT 7 0 177 to 180 185 to 188 B11 D11 C11 B10 D9 B9 A9 D8 I O Mask ROM chip select I O port port interrupt request WAKEUP PTD 3 182 D10 I O Wakeup I O port RESETOUT PTD 2 184 C9 I O Reset output I O port DRAK0 PTD 1 189 C8 I O DMA control pin I O port DRAK1 PTD 0 190 B8 I O DMA control pin I O port DREQ0 PTD 4 191 A8 I DMA transfer request 0 input port DREQ1 PTD 6 192 D7 I DMA t...

Page 748: ... 88 T13 O Read strobe pin WE0 DQMLL 89 U13 O D7 D0 select signal DQM SDRAM WE1 DQMLU WE 90 V13 O D15 D8 select signal DQM SDRAM PCMCIA WE signal WE2 DQMUL ICIORD PTK 6 91 W13 I O D23 D16 select signal DQM SDRAM PCMCIA IORD signal I O port WE3 DQMUU ICIOWR PTK 7 92 T14 I O D31 D24 select signal DQM SDRAM PCMCIA IOWR signal I O port RD WR 93 U14 O Read write select signal AUDSYNC PTE 7 94 V14 I O AU...

Page 749: ...itch input port port interrupt request TDI PTF 5 PINT 13 138 H17 I Test data input input port port interrupt request TCK PTF 4 PINT 12 139 H18 I Test clock input port port interrupt request IRLS 3 0 PTF 3 0 PINT 11 8 140 to 143 H19 G16 G17 G18 I External interrupt request input port port interrupt request AUDCK PTH 6 151 D16 I AUD clock input port WAIT 123 M19 I Hardware wait request BREQ 122 N16 ...

Page 750: ...al oscillator pin for on chip RTC CKE PTK 5 105 T18 I O CK enable for SDRAM I O port CA 194 B7 I Setting hardware standby pin VCCQ 21 35 47 59 71 85 97 111 163 183 H4 M1 R1 U3 V8 U15 R19 C17 A10 U12 Power supply Power supply 3 3 V VCC RTC 3 E2 Power supply RTC oscillator power supply 1 9 1 8 V VCC PLL1 VCC PLL2 145 150 F16 E17 Power supply PLL power supply 1 9 1 8 V AVCC 205 A4 Power supply Analog...

Page 751: ...n hardware standby mode power must be supplied to Vcc RTC and Vss RTC at least A 3 Treatment of Unused Pins When RTC is not used EXTAL2 Pull up XTAL2 Leave unconnected VCC RTC Power supply 1 9 1 8 V VSS RTC Power supply 0 V When PLL2 is not used CAP2 Leave unconnected VCC PLL2 Power supply 1 9 1 8 V VSS PLL2 Power supply 0 V When on chip crystal oscillator is not used XTAL Leave unconnected When E...

Page 752: ... High High High CASU PTJ 3 High High High High WE0 DQMLL R High High High High W Low Low High Low WE1 DQMLU WE R High High High High W High High Low Low WE2 DQMUL ICIORD R High High High High PTK 6 W High High High High WE3 DQMUU ICIOWR R High High High High PTK 7 W High High High High CE2A PTE 4 High High High High CE2B PTE 5 High High High High CKE PTK 5 Disabled Disabled Disabled Disabled WAIT ...

Page 753: ...L ICIORD R High High High High High High High PTK 6 W High High Low High High Low Low WE3 DQMUU ICIOWR R High High High High High High High PTK 7 W High High High Low High Low Low CE2A PTE 4 High High High High High High High CE2B PTE 5 High High High High High High High CKE PTK 5 Disabled Disabled Disabled Disabled Disabled Disabled Disabled WAIT Enabled 1 Enabled 1 Enabled 1 Enabled 1 Enabled 1 ...

Page 754: ...3 High High High High WE0 DQMLL R High High High High W Low High Low Low WE1 DQMLU WE R High High High High W High Low High Low WE2 DQMUL ICIORD R High High High High PTK 6 W High High High High WE3 DQMUU ICIOWR R High High High High PTK 7 W High High High High CE2A PTE 4 High High High High CE2B PTE 5 High High High High CKE PTK 5 Disabled Disabled Disabled Disabled WAIT Enabled 1 Enabled 1 Enabl...

Page 755: ... ICIORD R High High High High High High High PTK 6 W High Low High High Low High Low WE3 DQMUU ICIOWR R High High High High High High High PTK 7 W Low High High High Low High Low CE2A PTE 4 High High High High High High High CE2B PTE 5 High High High High High High High CKE PTK 5 Disabled Disabled Disabled Disabled Disabled Disabled Disabled WAIT Enabled 1 Enabled 1 Enabled 1 Enabled 1 Enabled 1 E...

Page 756: ...igh High CASU PTJ 3 High High High High WE0 DQMLL R High High High High W WE1 DQMLU WE R High High High High W WE2 DQMUL ICIORD R High High High High PTK 6 W WE3 DQMUU ICIOWR R High High High High PTK 7 W CE2A PTE 4 High High High High CE2B PTE 5 High High High High CKE PTK 5 Disabled Disabled Disabled Disabled WAIT Enabled 1 Enabled 1 Enabled 1 Enabled 1 IOIS16 PTG 7 Disabled Disabled Disabled Di...

Page 757: ...h High High PTK 6 W WE3 DQMUU ICIOWR R High High High High High High High PTK 7 W CE2A PTE 4 High High High High High High High CE2B PTE 5 High High High High High High High CKE PTK 5 Disabled Disabled Disabled Disabled Disabled Disabled Disabled WAIT Enabled 1 Enabled 1 Enabled 1 Enabled 1 Enabled 1 Enabled 1 Enabled 1 IOIS16 PTG 7 Disabled Disabled Disabled Disabled Disabled Disabled Disabled A2...

Page 758: ...gh High CASU PTJ 3 High High High High WE0 DQMLL R High High High High W WE1 DQMLU WE R High High High High W WE2 DQMUL ICIORD R High High High High PTK 6 W WE3 DQMUU ICIOWR R High High High High PTK 7 W CE2A PTE 4 High High High High CE2B PTE 5 High High High High CKE PTK 5 Disabled Disabled Disabled Disabled WAIT Enabled 1 Enabled 1 Enabled 1 Enabled 1 IOIS16 PTG 7 Disabled Disabled Disabled Dis...

Page 759: ...High High PTK 6 W WE3 DQMUU ICIOWR R High High High High High High High PTK 7 W CE2A PTE 4 High High High High High High High CE2B PTE 5 High High High High High High High CKE PTK 5 Disabled Disabled Disabled Disabled Disabled Disabled Disabled WAIT Enabled 1 Enabled 1 Enabled 1 Enabled 1 Enabled 1 Enabled 1 Enabled 1 IOIS16 PTG 7 Disabled Disabled Disabled Disabled Disabled Disabled Disabled A25 ...

Page 760: ... High Low High High Low High Low WE2 DQMUL ICIORD R High High Low High High Low Low PTK 6 W High High Low High High Low Low WE3 DQMUU ICIOWR R High High High Low High Low Low PTK 7 W High High High Low High Low Low CE2A PTE 4 High High High High High High High CE2B PTE 5 High High High High High High High CKE PTK 5 High 2 High 2 High 2 High 2 High 2 High 2 High 2 WAIT Disabled Disabled Disabled Di...

Page 761: ...igh High Low High High Low Low WE2 DQMUL ICIORD R High Low High High Low High Low PTK 6 W High Low High High Low High Low WE3 DQMUU ICIOWR R Low High High High Low High Low PTK 7 W Low High High High Low High Low CE2A PTE 4 High High High High High High High CE2B PTE 5 High High High High High High High CKE PTK 5 High 2 High 2 High 2 High 2 High 2 High 2 High 2 WAIT Disabled Disabled Disabled Disa...

Page 762: ...gh CASU PTJ 3 High High High High WE0 DQMLL R High High High High W High High High High WE1 DQMLU WE R High High High High W Low Low Low Low WE2 DQMUL ICIORD R High High High High PTK 6 W High High High High WE3 DQMUU ICIOWR R High High High High PTK 7 W High High High High CE2A PTE 4 High High Low Low CE2B PTE 5 High High High High CKE PTK 5 Disabled Disabled Disabled Disabled WAIT Enabled 1 Enab...

Page 763: ...igh High High High High WE1 DQMLU WE R High High High High High High High High W Low Low Low Low High High High High WE2 DQMUL R High High High High Low Low Low Low ICIORD PTK 6 W High High High High High High High High WE3 DQMUU R High High High High High High High High ICIOWR PTK 7 W High High High High Low Low Low Low CE2A PTE 4 High High High High High High High High CE2B PTE 5 High High Low L...

Page 764: ...h CASU PTJ 3 High High High High WE0 DQMLL R High High High High W High High High High WE1 DQMLU WE R High High High High W Low Low Low Low WE2 DQMUL ICIORD R High High High High PTK 6 W High High High High WE3 DQMUU ICIOWR R High High High High PTK 7 W High High High High CE2A PTE 4 High High Low Low CE2B PTE 5 High High High High CKE PTK 5 Disabled Disabled Disabled Disabled WAIT Enabled 1 Enabl...

Page 765: ...gh High High High High WE1 DQMLU WE R High High High High High High High High W Low Low Low Low High High High High WE2 DQMUL R High High High High Low Low Low Low ICIORD PTK 6 W High High High High High High High High WE3 DQMUU R High High High High High High High High ICIOWR PTK 7 W High High High High Low Low Low Low CE2A PTE 4 High High High High High High High High CE2B PTE 5 High High Low Lo...

Page 766: ...FE8 32 32 CCR CCN L FFFFFFEC 32 32 CCR2 CCN I 40000B0 32 32 TRA CCN L FFFFFFD0 32 32 EXPEVT CCN L FFFFFFD4 32 32 INTEVT CCN L FFFFFFD8 32 32 BARA UBC L FFFFFFB0 32 32 BAMRA UBC L FFFFFFB4 32 32 BBRA UBC L FFFFFFB8 16 16 BARB UBC L FFFFFFA0 32 32 BAMRB UBC L FFFFFFA4 32 32 BBRB UBC L FFFFFFA8 16 16 BDRB UBC L FFFFFF90 32 32 BDMRB UBC L FFFFFF94 32 32 BRCR UBC L FFFFFF98 16 16 FRQCR CPG I FFFFFF80 1...

Page 767: ...2 16 16 RFCR BSC I FFFFFF74 16 16 SDMR BSC I FFFFD000 FFFFEFFE 8 MCSCR0 BSC I FFFFFF50 16 16 MCSCR1 BSC I FFFFFF52 16 16 MCSCR2 BSC I FFFFFF54 16 16 MCSCR3 BSC I FFFFFF56 16 16 MCSCR4 BSC I FFFFFF58 16 16 MCSCR5 BSC I FFFFFF5A 16 16 MCSCR6 BSC I FFFFFF5C 16 16 MCSCR7 BSC I FFFFFF5E 16 16 R64CNT RTC P FFFFFEC0 8 8 RSECCNT RTC P FFFFFEC2 8 8 RMINCNT RTC P FFFFFEC4 8 8 RHRCNT RTC P FFFFFEC6 8 8 RWKCN...

Page 768: ... 8 TCOR0 TMU P FFFFFE94 32 32 TCNT0 TMU P FFFFFE98 32 32 TCR0 TMU P FFFFFE9C 16 16 TCOR1 TMU P FFFFFEA0 32 32 TCNT1 TMU P FFFFFEA4 32 32 TCR1 TMU P FFFFFEA8 16 16 TCOR2 TMU P FFFFFEAC 32 32 TCNT2 TMU P FFFFFEB0 32 32 TCR2 TMU P FFFFFEB4 16 16 TCPR2 TMU P FFFFFEB8 32 32 SCSMR SCI P FFFFFE80 8 8 SCBRR SCI P FFFFFE82 8 8 SCSCR SCI P FFFFFE84 8 8 SCTDR SCI P FFFFFE86 8 8 SCSSR SCI P FFFFFE88 8 8 SCRDR...

Page 769: ...AC P 400003C 32 8 16 32 SAR2 DMAC P 4000040 32 16 32 DAR2 DMAC P 4000044 32 16 32 DMATCR2 DMAC P 4000048 32 16 32 CHCR2 DMAC P 400004C 32 8 16 32 SAR3 DMAC P 4000050 32 16 32 DAR3 DMAC P 4000054 32 16 32 DMATCR3 DMAC P 4000058 32 16 32 CHCR3 DMAC P 400005C 32 8 16 32 DMAOR DMAC P 4000060 16 8 16 CMSTR CMT P 4000070 16 8 16 32 CMCSR CMT P 4000072 16 8 16 32 CMCNT CMT P 4000074 16 8 16 32 CMCOR CMT ...

Page 770: ... 16 PDCR PORT P 4000106 16 16 PECR PORT P 4000108 16 16 PFCR PORT P 400010A 16 16 PGCR PORT P 400010C 16 16 PHCR PORT P 400010E 16 16 PJCR PORT P 4000110 16 16 PKCR PORT P 4000112 16 16 PLCR PORT P 4000114 16 16 SCPCR PORT P 4000116 16 16 PADR PORT P 4000120 8 8 PBDR PORT P 4000122 8 8 PCDR PORT P 4000124 8 8 PDDR PORT P 4000126 8 8 PEDR PORT P 4000128 8 8 PFDR PORT P 400012A 8 8 PGDR PORT P 40001...

Page 771: ...BSC Bus state controller RTC Realtime clock INTC Interrupt controller TMU Timer unit SCI Serial communication interface 2 Internal buses L CPU CCN cache TLB and DSP connected I BSC cache DMAC INTC CPG and H UDI connected P BSC and peripheral modules RTC TMU SCI SCIF IrDA A D D A DMAC PORT CMT connected 3 The access size shown is for control register access read write An incorrect result will be ob...

Page 772: ...SC SCSMR C A CHR PE O E STOP MP CKS1 CKS0 SCI SCBRR SCI SCSCR TIE RIE TE RE MPIE TEIE CKE1 CKE0 SCI SCTDR SCI SCSSR TDRE RDRF ORER FER PER TEND MPB MPBT SCI SCRDR SCI SCSCMR SDIR SINV SMIF SCI TOCR TCOE TMU TSTR STR2 STR1 STR0 TMU TCOR0 TMU TCNT0 TMU TCR0 UNF TMU UNIE CKEG1 CKEG0 TPSC2 TPSC1 TPSC0 TCOR1 TMU TCNT1 TMU ...

Page 773: ...G0 TPSC2 TPSC1 TPSC0 TCPR2 TMU R64CNT 1 Hz 2 Hz 4 Hz 8 Hz 16 Hz 32 Hz 64 Hz RTC RSECCNT 10 sec 1 sec RTC RMINCNT 10 min 1 min RTC RHRCNT 10 hours 1 hour RTC RWKCNT Day of week RTC RDAYCNT 10 days 1 day RTC RMONCNT 10 months 1 month RTC RYRCNT 10 years 1 year RTC RSECAR ENB 10 sec 1 sec RTC RMINAR ENB 10 min 1 min RTC RHRAR ENB 10 hours 1 hour RTC RDAYAR ENB 10 days 1 day RTC RMONAR ENB 10 months 1...

Page 774: ...RAMT P1 DRAMT P0 A5PCM A6PCM BCR2 A6SZ1 A6SZ0 A5SZ1 A5SZ0 A4SZ1 A4SZ0 BSC A3SZ1 A3SZ0 A2SZ1 A2SZ0 WCR1 WAITSEL A6IW1 A6IW0 A5IW1 A5IW0 A4IW1 A4IW0 BSC A3IW1 A3IW0 A2IW1 A2IW0 A0IW1 A0IW0 WCR2 A6W2 A6W1 A6W0 A5W2 A5W1 A5W0 A4W2 A4W1 BSC A4W0 A3W1 A3W0 A2W1 A2W0 A0W2 A0W1 A0W0 MCR TPC1 TPC0 RCD1 RCD0 TRWL1 TRWL0 TRAS1 TRAS0 BSC RASD AMX3 AMX2 AMX1 AMX0 RFSH RMODE PCR A6W3 A5W3 A5TED2 A6TED2 A5TEH2 A...

Page 775: ...C0 IFC1 IFC0 PFC1 PFC0 STBCR STBY STBXTL MSTP2 MSTP1 MSTP0 CPG STBCR2 MSTP9 MDCHG MSTP8 MSTP7 MSTP6 MSTP5 MSTP4 MSTP3 CPG WTCNT CPG WTCSR TME WT IT RSTS WOVF IOVF CKS2 CKS1 CKS0 CPG BDRB UBC BDMRB UBC BRCR UBC BASMA BASMB SCMFCA SCMFCB SCMFDA SCMFDBPCTE PCBA DBEB PCBB SEQ ETBE BARB UBC BAMRB BASM BAM BAM UBC BBRB XYE XYS UBC CDB1 CDB0 IDB1 IDB0 RWB1 RWB0 SZB1 SZB0 ...

Page 776: ...SVF PID2 PID1 PID0 BSA27 BSA26 BSA25 BSA24 UBC BSA23 BSA22 BSA21 BSA20 BSA19 BSA18 BSA17 BSA16 BSA15 BSA14 BSA13 BSA12 BSA11 BSA10 BSA9 BSA8 BSA7 BSA6 BSA5 BSA4 BSA3 BSA2 BSA1 BSA0 BRDR DVF BDA27 BDA26 BDA25 BDA24 UBC BDA23 BDA22 BDA21 BDA20 BDA19 BDA18 BDA17 BDA16 BDA15 BDA14 BDA13 BDA12 BDA11 BDA10 BDA9 BDA8 BDA7 BDA6 BDA5 BDA4 BDA3 BDA2 BDA1 BDA0 TRA CCN EXPEVT CCN INTEVT CCN ...

Page 777: ...cont Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module MMUCR CCN SV RC RC TF IX AT BASRA UBC BASRB UBC CCR CCN 0 0 CF CB WT CE CDR2 CCN W3LOAD W3LOCK W2LOAD W2LOCK PTEH CCN PTEL CCN V PR PR SZ C D SH TTB CCN TEA CCN ...

Page 778: ...RQ50S IRQ41S IRQ40S INTC IRQ31S IRQ30S IRQ21S IRQ20S IRQ11S IRQ10S IRQ01S IRQ00S ICR2 INT15S INT14S INT13S INT12S INT11S INT10S INT9S INT8S INTC INT7S INT6S INT5S INT4S INT3S INT2S INT1S INT0S INTER INT15E INT14E INT13E INT12E INT11E INT10E INT9E INT8E INTC INT7E INT6E INT5E INT4E INT3E INT2E INT1E INT0E IPRC IRQ3 level IRQ2 level INTC IRQ1 level IRQ0 level IPRD PINT0 to 7 level PINT8 to 15 level ...

Page 779: ...5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Module DMATCR0 DMAC CHCR0 DMAC DI RO AM AL DM1 DM0 SM1 SM0 RS3 RS2 RS1 RS0 DS TM TS1 TS0 IE TE DE SAR1 DMAC DAR1 DMAC DMATCR1 DMAC CHCR1 DMAC DI RO AM AL DM1 DM0 SM1 SM0 RS3 RS2 RS1 RS0 DS TM TS1 TS0 IE TE DE SAR2 DMAC DAR2 DMAC ...

Page 780: ...odule DMATCR2 DMAC CHCR2 DMAC DI RO RL AM AL DM1 DM0 SM1 SM0 RS3 RS2 RS1 RS0 DS TM TS1 TS0 IE TE DE SAR3 DMAC DAR3 DMAC DMATCR3 DMAC CHCR3 DMAC DI RO RL AM AL DM1 DM0 SM1 SM0 RS3 RS2 RS1 RS0 DS TM TS1 TS0 IE TE DE DMAOR PR1 PR0 DMAC AE NMIF DME CMSTR CMT STR CMCSR CMT CMF CKS1 CKS0 CMCNT CMT ...

Page 781: ... D A DACR DAOE1 DAOE0 DAE D A PACR PA7M D1 PA7M D0 PA6M D1 PA6M D0 PA5M D1 PA5M D0 PA4M D1 PA4M D0 PORT PA3M D1 PA3M D0 PA2M D1 PA2M D0 PA1M D1 PA1M D0 PA0M D1 PA0M D0 PBCR PB7M D1 PB7M D0 PB6M D1 PB6M D0 PB5M D1 PB5M D0 PB4M D1 PB4M D0 PORT PB3M D1 PB3M D0 PB2M D1 PB2M D0 PB1M D1 PB1M D0 PB0M D1 PB0M D0 PCDR PC7M D1 PC7M D0 PC6M D1 PC6M D0 PC5M D1 PC5M D0 PC4M D1 PC4M D0 PORT PC3M D1 PC3M D0 PC2M...

Page 782: ...K6M D1 PK6M D0 PK5M D1 PK5M D0 PK4M D1 PK4M D0 PORT PK3M D1 PK3M D0 PK2M D1 PK2M D0 PK1M D1 PK1M D0 PK0M D1 PK0M D0 PLCR PL7M D1 PL7M D0 PL6M D1 PL6M D0 PL5M D1 PL5M D0 PL4M D1 PL4M D0 PORT PL3M D1 PL3M D0 PL2M D1 PL2M D0 PL1M D1 PL1M D0 PL0M D1 PL0M D0 SCPCR SCP7M D1 SCP7M D0 SCP6M D1 SCP6M D0 SCP5M D1 SCP5M D0 SCP4M D1 SCP4M D0 PORT SCP3M D1 SCP3M D0 SCP2M D1 SCP2M D0 SCP1M D1 SCP1M D0 SCP0M D1 ...

Page 783: ...BIT0 Module PJDR PJ7DT PJ6DT PJ5DT PJ4DT PJ3DT PJ2DT PJ1DT PJ0DT PORT PKDR PK7DT PK6DT PK5DT PK4DT PK3DT PK2DT PK1DT PK0DT PORT PLDR PL7DT PL6DT PL5DT PL4DT PL3DT PL2DT PL1DT PL0DT PORT SCPDR SCP7DT SCP6DT SCP5DT SCP4DT SCP3DT SCP2DT SCP1DT SCP0DT PORT SDIR TI3 TI2 TI1 TI0 H UDI ...

Page 784: ...ly Voltage Operating Abbr I O Internal Frequency Model Marking Package SH7709S 3 3 0 3 V 1 9 0 15 V 167 MHz HD6417709SF167 208 pin plastic LQFP FP 208C 1 8 0 15 V 133 MHz HD6417709SF133 208 pin plastic LQFP FP 208C 100 MHz HD6417709SF100 208 pin plastic LQFP FP 208C ...

Page 785: ...IAJ Weight reference value FP 208C Conforms 2 7 g Unit mm Dimension including the plating thickness Base material dimension 30 0 0 2 30 0 0 2 0 5 1 70 Max 0 8 0 17 0 05 156 105 104 52 1 157 208 53 0 22 0 05 0 08 M 0 08 1 40 0 5 0 1 1 0 28 0 10 0 05 1 25 0 20 0 04 0 15 0 04 Figure D 1 Package Dimensions FP 208C ...

Page 786: ... 3 g Unit mm Dimension including the plating thickness Base material dimension 30 6 0 2 30 6 0 2 0 5 3 56 Max 0 17 0 05 156 105 104 52 1 157 208 53 0 22 0 05 0 10 M 0 10 3 20 0 5 0 1 1 3 28 0 15 0 20 0 04 0 15 0 04 1 25 0 8 0 10 0 15 Figure D 2 Package Dimensions FP 208E ...

Page 787: ... A 0 15 4 0 33 0 05 0 2 0 10 C C 1 40 Max C C φ0 08 A B M 240 φ0 40 0 05 0 65 A B 0 65 0 65 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 A B C D E F G H J K L M N P R T U V W Preliminary 0 65 Figure D 3 Package Dimensions BP 240AV ...

Page 788: ...dition September 2001 Published by Customer Service Division Semiconductor Integrated Circuits Hitachi Ltd Edited by Technical Documentation Group Hitachi Kodaira Semiconductor Co Ltd Copyright Hitachi Ltd 2001 All rights reserved Printed in Japan ...

Reviews: