(8 interrupt selectable negative/positive of edge)
(22) DMAC function: 6 channels
• High-speed data transfer enable by controlling which convert micro DMA function and this function
(23) Input/Output ports : 136 pins (Except Data bus (16bit), Address bus (24bit) and RD pin)
(24) Nand_Flash interface: 2 channel
• Available to connect directly with NAND flash
• Supported up to SLC type and MLC type
• Data Bus 8/16 Bit, Page Size 512/2048 Bytes
• Built-in Rees Solomon calculation circuits which enabled correct 4-address, and detect error more
than 5-address
(25) SPI controller : 1 channel
• Supported up to SPI mode of SD card and MMC card
• Built-in FIFO buffer of 32 bytes to each Input/Output
Note1: The P96, P97 and PG0~PG5 operate with the AVCC power supply.
Note2: The PW0~PW7 and PV0~PV7 operate with the DVCC3B power supply.
Note3: The X1 and X2 operate with the DVCC1C power supply.
92CZ26A-7
2.2 Pin names and Functions
The names of the input/output pins and their functions are described below.
Table 2.2.1 Pin names and functions (1/6)
TMP92CZ26A
Pin name
D0 to D7 8 I/O Data: Data bus D0 to D7.
P10 to P17
D8 to D15
P40 to P47
A0 to A7
P50 to P57
A8 to A15
P60 to P67
A16 to A23
P70
RD
P71
WRLL
NDRE
P72
WRLU
NDWE
P73
EA24
P74
EA25
P75
R/
W
NDR/
B
P76
WAIT
P80
0CS
P81
1CS
SDCS
P82
2CS
CSZA
SDCS
P83
3CS
CSXA
P84
CSZB
P85
CSZC
Number of
Pins
8
8
8
8
1 Output
1 I/O
1 I/O
1 I/O
1 I/O
1 I/O
1
1
1 Output
1 Output
1 Output
1 Output
1 Output
I/O Functions
I/O
I/O
Output
Output
Output
Output
I/O
Output
Output
Output
Output
Output
Output
Output
Output
Output
Input
I/O
Input
Output
Output
Output
Output
Output
Output
Output
Output
Output
Output
Output
Port 1: I/O port. Input or output is specifiable in units of bit.
Data : Data bus D8 to D15.
Port 4: Output port.
Address : Address bus A0 to A7.
Port 5: Output port.
Address : Address bus A8 to A15.
Port 6 : I/O port. Input or output is specifiable in units of bit.
Address : Address bus A16 to A23.
Port 70 : Output port.
Read : Outputs strobe signal to read external memory.
Port 71 : Output port.
Write : Outputs strobe signal to write data on pins D0 to D7.
NAND Flash read : Outputs strobe signal to read external NAND-Flash.
Port 72 : I/O port.
Write : Outputs strobe signal to write data on pins D8 to D15.
NAND Flash write : Write enable for NAND Flash.
Port 73 : I/O port.
Expanded address 24.
Port 74 : I/O port.
Expanded address 25.
Port 75 : I/O port.
Read/Write : “High” represents read or dummy cycle and “Low” write cycle.
NAND Flash Ready(1) / Busy(0) input.
Port 76: I/O port.
Wait: Signal used to request CPU bus wait.
Port 80: Output port.
Chip select 0: Outputs “Low” when address is within specified address area.
Port 81 : Output port
Chip select 1: Outputs “Low” when address is within specified address area.
Chip select for SDRAM : Outputs “Low” when the address is within SDRAM address area.
Port 82 : Output port.
Chip select 2: Outputs “Low” when address is within specified address area.
Expanded address ZA : Outputs “Low” when address is within specified address area.
Chip select for SDRAM : Outputs “0” when the address is within SDRAM address area.
Port 83 : Output port.
Chip select 3: Outputs “Low” when address is within specified address area.
Expanded address XA : Outputs “Low” when address is within specified address area.
Port 84 : Output port.
Expanded address ZB : Outputs “Low” when address is within specified address area.
Port 85 : Output port.
Expanded address ZC : Outputs “Low” when address is within specified address area.
Port 86 : Output port.
Expanded address ZD : Outputs “Low” when address is within specified address area.
Chip select of NAND Flash 0: Outputs “Low” when NAND Flash 0 is enable.
Port 87 : Output port.
Expanded address XB : Outputs “Low” when address is within specified address area.
Chip select of NAND Flash 1: Outputs “Low” when NAND Flash 1 is enable.
Port 90: I/O port.
Transmit data of serial 0: programmable open drain output.
Port 91: I/O port. (Schmitt input)
Receive data of serial 0.
Port 92: I/O port. (Schmitt input)
Clock I/O of serial 0
Enable to send data of serial 0 (Clear to send).
Port 96: Input port. (schmitt input, with pull-up resistor)
Interrupt request pin 4 : Interrupt request pin with programmable rising/falling edge.
X-Plus : Pin connected to X+ pin for Touch Screen I/F.
Port 97: Input port. (schmitt input)
Y-Plus : Pin connected to Y+ pin for Touch Screen I/F.
Port A0 to A7: Input port.
Key input 0 to 7: For key on wake-up 0 to 7. (Schmitt input, with pull-up resistor)
Port C0: I/O port. (Schmitt input)
Interrupt request pin 0 : Interrupt request pin with programmable rising/falling edge.
Port C1: I/O port. (Schmitt input)
Interrupt request pin 1 : Interrupt request pin with programmable rising/falling edge.
Timer A0 input: Input pin of 8 bit timer 0.
Port C2: I/O port. (Schmitt input)
Interrupt request pin 2 : Interrupt request pin with programmable rising/falling edge.
Port C3: I/O port. (Schmitt input)
Interrupt request pin 3 : Interrupt request pin with programmable rising/falling edge.
Timer A2 input: Input pin of 8 bit timer 2.
Port C4: I/O port.
Expanded address 26.
Port C5: I/O port.
Expanded address 27.
Port C6: I/O port.
Expanded address 28.
Port C7: I/O port.
Key output 8: Key scan strobe pin (programmable open drain output).
Port F0: I/O port.
Outputs clock of I2S0.
Port F1: I/O port.
Outputs data of I2S0.
Port F2: I/O port.
Outputs word select signal of I2S0.
Port F3: I/O port.
Outputs clock of I2S1.
Port F4: I/O port.
Outputs data of I2S1.
Port F5: I/O port.
Outputs word select signal of I2S1.
Port F7: Output port.
Clock for SDRAM.
Port G0 to G1: Input port.
Analog input pin 0 to 1 : Input pin of A/D converter.
Port G2: Input port.
Analog input pin 2 : Input pin of A/D converter.
X-Minus : Pin connected to X- pin for Touch Screen I/F.
Port G3: Input port.
Analog input pin 3 : Input pin of A/D converter.
Y-Minus : Pin connected to Y- pin for Touch Screen I/F.
A/D Trigger : Request signal of A/D start.
Port G4 to G5: Input port.
Analog input pin 4 to 5 : Input pin of A/D converter.
Port J0: Output port.
Outputs strobe signal of SDRAM row address.
Data enable signal for D0 to D7 of SRAM.
Port J1: Output port.
Outputs strobe signal of SDRAM column address.
Data enable signal for D8 to D15 of SRAM.
Port J2: Output port.
Outputs write enable signal of SDRAM.
Write enable of SRAM: Outputs strobe signal to write data.
Port J3: Output port.
Data enable signal for D0 to D7 of SDRAM.
Port J4: Output port.
Data enable signal for D8 to D15 of SDRAM.
Port J5: I/O port.
Address latch enable signal of NAND Flash.
Port J6: I/O port.
Command latch enable signal of NAND Flash.
Port J7: Output port.
Clock enable signal of SDRAM.
Port K0: Output port.
Signal for LCD driver.
Port K1: Output port.
Signal for LCD driver.: Data load signal
Port K2: Output port.
Signal for LCD driver.
Port K3: Output port.
Signal for LCD driver. : Vertical sync signal
Port K4: Output port.
Signal for LCD driver. : Horizontal sync signal.
Port K5: Output port.
Signal for LCD driver.
Port K6: Output port.
Signal for LCD driver.
Port K7: Output port.
Signal for LCD driver.
Port L0 to L7: Output port.
Data bus for LCD driver: LD0 to LD7.
Port M1: Output port.
Timer A1 output: Output pin of 8 bit timer 1.
Melody / Alarm output pin.
Port M2: Output port.
Alarm output from RTC.
Melody / Alarm output pin (inverted).
Port M7 : Output port
External power supply control output: Pin to control ON/OFF of external power
supply. In st and-by mode, outputs “L” level. In other than stand-by mode, outputs
“H” level.
Port N: I/O port.
Key output 0 to 7 : Key scan strobe pin (programmable open drain output).
Port P1: I/O port.
Timer A3 output: Output pin of 8 bit timer 3.
Port P2: I/O port.
Timer A5 output: Output pin of 8 bit timer 5.
Port P3: I/O port. (Schmitt input)
Interrupt request pin 5 : Interrupt request pin with programmable rising/falling edge.
Timer A7 output: Output pin of 8 bit timer 7.
Port P4: I/O port. (Schmitt input)
Interrupt request pin 6 : Interrupt request pin with programmable rising/falling edge.
Timer B0 input: Input pin of 16 bit timer 0.
Port P5: I/O port. (Schmitt input)
Interrupt request pin 7 : Interrupt request pin with programmable rising/falling edge.
Timer B1 input: Input pin of 16 bit timer 1.
Port P6: I/O port.
Timer B0 output: Output pin of 16 bit timer 0.
Port P7: I/O port.
Timer B1 output: Output pin of 16 bit timer 1.
Port R0: I/O port.
Data input pin of SD card.
Port R1: I/O port.
Data output pin of SD card.
Port R2: I/O port.
Chip select signal of SD card.
Port R3: I/O port.
Clock output pin of SD card.
Port T0 to T7: I/O port.
Data bus for LCD driver: LD8 to LD15.
Port U0 to U4 , U6: I/O port
Data bus for LCD driver: LD16 to LD20, LD22.
Port U5: I/O port
Data bus for LCD driver: LD21
Port U7: I/O port
Data bus for LCD driver: LD23
Debug mode output pin
Port V0 : I/O port
Clock I/O of serial 0.
Port V6: I/O port
Send/receive data in I
Port V7: I/O port
Input/output clock in I
Port X4 : Output port
Internal clock output pin
Output pin for LCD driver
Port X5: I/O port.
Clock input pin of USB.
Port Z0: I/O port. (Schmitt input)
Debug mode input pin
Port Z1: I/O port. (Schmitt input)
Debug mode input pin
Port Z2: I/O port. (Schmitt input)
Debug mode input pin
Port Z3: I/O port. (Schmitt input)
Debug mode input pin
Port Z4: I/O port. (Schmitt input)
Debug mode input pin
Port Z5: I/O port. (Schmitt input)
Debug mode input pin
Port Z6: I/O port. (Schmitt input)
Debug mode output pin
Port Z7: I/O port. (Schmitt input)
Debug mode output pin
Data pin connected to USB.
In case USB is not used, connect both pins to pull-up(DVCC3A) or pull-down resistor for protect
current flows it.
Operation mode;
Fix to AM1=”0”,AM0=”1” for 16 bit external bus starting.
Fix to AM1=”1”,AM0=”0” is prohibit to set.
Fix to AM1=”1”,AM0=”1” for BOOT (32 bit internal Mask ROM) starting.
Fix to AM1=”0”,AM0=”0” is prohibited to set.
−
−
−
−
−
−
−
−
−
−
Power supply pin for A/D converter.
GND pin for AD converter (0V).
Power supply pin for peripheral I/O-A (Connect all DVCC3A pins to power supply pin.)
Power supply pin for peripheral I/O-B (Connect all DVCC3B pins to power supply pin.)
Power supply pin for internal logic-A. (Connect all DVCC1A pins to power supply pin.)
Power supply pin for internal logic-B. (Keep the voltage DVCC1A level.)
GND pin (0V). (Connect all DVSS pins to GND(0V).)
Power supply pin for High speed oscillator. (Keep the voltage DVCC1A level.)
GND pin (0V). (Connect to GND(0V).)
Dummy1 and Dummy2, Dummy3 and Dummy4 are shorted in package. (These pins are not
connected with internal LSI chip.)
Tabl e 2.2.2 shows the range of operational voltage for power supply pins.
Table 2.2.2 the range of operational voltage for power supply pins
Range of
Power supply pin
operational
voltage
DVCC1A
DVCC1B
DVCC1C
DVCC3A
DVCC3B
AVCC
1.4V~1.6V
3.0V~3.6V
92CZ26A-13
3. Operation
This section describes the basic components, functions and operation of the TMP92CZ26A.
3.1 CPU
The TMP92CZ26A c onta ins an ad vanced high-speed 32-bit CPU (900/H1 CPU)
3.1.1 CPU Outline
900/H1 CPU is high-speed and high-performance CPU based on 900/L1 CPU. 900/H1
CPU has expanded 32-bit internal data bus to process Instructions more quickly.
Outline is as follows:
TMP92CZ26A
Table 3.1.1Outline of TMP92CZ26A
Parameter TMP92CZ26A
Width of CPU Address Bus 24-bit
Width of CPU Data Bus 32-bit
Internal Operating Frequency Max 80MHz
Minimum Bus Cycle 1-clock access
(12.5ns at 80MHz)
Internal RAM 32-bit 2-1-1-1 clock access
Internal Boot ROM 32 bit 2-clock access
Internal I/O
8-bit,
2-clock access
16-bit,
2-clock access
32-bit,
2-clock access
INTC,SDRAMC,
MEMC,LCDC,
TSI,PORT,
PMC
MMU,USB,
NDFC,SPIC,DMAC
I2S
MAC
32-bit,
1-clock access
8-bit,
5 to 6-clock access
External memory
(SRAM, MASKROM etc.)
External memory
(SDRAM)
External memory
(NAND FLASH)
Minimum Instruction
Execution Cycle
Conditional Jump 2-clock(25.0ns at 80MHz)
Instruction Queue Buffer 12-byte
Instruction Set Compatible with TLCS-900/L1
CPU mode Only maximum mode
Micro DMA 8-channel
Hardware DMA 6-channel
8/16-bit 2-clock access
(can insert some waits)
16-bit 1-clock access
8/16-bit 2-clock access
(can inset some waits)
1-clock(12.5ns at 80MHz)
(LDX instruction is deleted)
MAC
TMRA,TMRB,
SIO,RTC,
MLD/ALM, SBI
CGEAR,ADC,WDT
92CZ26A-14
3.1.2 Reset Operation
When resetting the TMP92CZ26A microcontroller, ensure that the power supply voltage
is within the operating voltage range, and that the internal high-frequency oscillator has
stabilized. Then hold the
X1=10MHz).
At reset, since the clock doublers (PLL0) is bypassed and clock-gear is set to 1/16, system
clock operates at 625 kHz(X1=10MHz).
When the Reset has been accepted, the CPU performs the following. CPU internal
registers do not change when the Reset is released.
• Sets the Stack Pointer (XSP) to 00000000H.
• Sets bits <IFF2:0> of the Status Register (SR) to “111” (thereby setting the Interrupt
Level Mask Register to level 7).
•Clears bits <RFP1:0> of the Status Register to 00 (thereby selecting Register Bank 0).
When the Reset is released, the CPU starts executing instructions according to the
Program Counter settings.
•Sets the Program Counter (PC) as follows in accordance with the Reset Vector stored
at address FFFF00H~FFFF02H:
TMP92CZ26A
RESET input Low for at least 20 system clocks (32µs at
PC<7:0> ←data in location FFFF00H
PC<15:8> ←data in location FFFF01H
PC<23:16> ←data in location FFFF02H
When the Reset is accepted, the CPU sets internal I/O, ports and other pins as follows.
•Initializes the internal I/O registers as table of “Special Function Register” in Section
5.
Note1: This LSI builds in RAM internally. However, the data in internal RAM may not be held by Reset
operation. After reset, initialize the data in internal RAM.
Note2: This LSI builds in PMC function (for reducing stand-by current by blocking the power supply of
DVCC1A and DVCC1C). However, if executing reset operation without supplying DVCC1A and
DVCC1C, the current may flow to internal. When reset this LSI, supply the power of DVCC1A and
DVCC1C first and wait until the power supply stabilizes.
Figure 3.1.2 shows reset timing chart. Figure 3.1.2 shows the example of or der of supplying
power and the timing of releasing reset.
92CZ26A-15
A
TMP92CZ26A
Read
Write
0FFFF00H
DATA-IN
(After reset is released, it is started
from 1 wait read cycle)
×(15.5∼16.5) Clock
SYS
f
Sampling
Sampling
sys
RESET
f
23∼0
CS2
CS0,1, 3
Figure 3.1.1 TMP92CZ26A Reset timing chart
DATA-IN
D0∼15
RD
SRxxB
DATA-OUT
D0∼15
WRxx
SRWR
: High-Z
SRxxB
92CZ26A-16
)
1.5V
Power
3.3V
Power
This LSI has the restriction for the order of supplying power. Be sure to supply external
3.3V power with 1.5V power is supplied.
DVCC1A
DVCC1B
DVCC1C
After 1.5V power
supply is rising,
set 3.3V to ON.
DVCC3A
DVCC3B
AVCC
RESET
Power On
Power supply is rising with
in 100mS, and stabilizes.
High-frequency oscillation
stabilization time
+20 system clock
Stand-by Mode (PMC
Power supply is falling with
in 100mS, and stabilizes.
TMP92CZ26A
Power Off
After 1.5V power
supply is falling, set
3.3V to OFF.
PWE terminal
Note1: Inernal 1.5 V and External 3.3V power supply can be set to ON/OFF at the same time. However, external pin
may become unstable condition momentary. Therefore, set external power supply toON/OFF during internal
power supply is stabile like above figure if there is possibility to affect machinery connected with micro controller.
Note2: When setting to ON, don’t set 3.3V power supply earlier than 1.5V power supply. When setting to OFF, don’t
set to 3.3V power supply later than 1.5 V power supply.
Figure 3.1.2 Power on Reset Timing Example
92CZ26A-17
3.1.3 Setting of AM0 and AM1
Set AM1 and AM0 pins as Table 3.1.2 shows according to system usage.
Mode Setup input pin
RESET
AM1 AM0
0 1
1 0
1 1
0 0
Table 3.1.2 Operation Mode Setup Table
DBGE
0 Debug mode
1
0
1
0
1
0
1
Operation Mode
16-bit external bus starting
Test mode (Prohibit to set)
Test mode (Prohibit to set)
BOOT(32-bit internal-MROM )
starting
(BOOT mode)
Test mode (Prohibit to set)
TMP92CZ26A
92CZ26A-18
3.2 Memory Map
Figure 3.2.1 is a memory map of the TMP92CZ26A.
000000H
000100H
001FF0H
002000H
010000H
046000H
04A000H
F00000H
F10000H
FFFF00H
FFFFFFH
Internal I/O
(8 Kbyte)
Internal RAM
(288 Kbyte)
(Internal Back Up RAM 16kbyte)
External memory
Provisional Emulator Control Area
(64kbyte)
External memory
Vector table (256 Byte)
Direct area(n)
64Kbyte area
(nn)
16Mbyte area
(R)
(
(Note1)
(R
(R
(R + d8/16)
(nnn)
( = Internal area)
TMP92CZ26A
−R)
+)
+ R8/16)
Figure 3.2.1 Memory Map
Note1: Don’t use specified 64kbyte area of above 16M byte when using debug mode. This is because the area is reserved
for control in the debug mode.
Note2: Don’t use the last 16-byte area (FFFFF0H to FFFFFFH). This area is reserved as internal area.
92CZ26A-19
3.3 Clock Function and Standby Function
TMP92CZ26A contains (1) clock gear, (2) clock doubler (PLL), (3) standby controller and (4)
noise-reducing circuit. They are used for low-power, low-noise systems.
This chapter is organized as follows:
3.3.1 Block diagram of system clock
3.3.2 SFRs
3.3.3 System clock controller
3.3.4 Prescaler clock controller
3.3.5 Noise-reducing circuit
3.3.7 Standby controller
TMP92CZ26A
92CZ26A-20
The clock operating modes are as follows: (a) PLL-OFF Mode (X1, X2 pins only),
(b) PLL-ON Mode (X1, X2, and PLL).
Figure 3.3.1 shows a transition figure.
The clock frequency input from the X1 and X2 pins is called fOSCH and the clock
frequency input from the XT1 and XT2 pins is called fs. The clock frequency selected by
SYSCR1<GEAR2:0> is called the system clock fSYS. And one cycle of fSYS is defined to
as one state.
IDLE2 mode
(I/O operate)
IDLE1 mode
(Operate only oscillator)
IDLE2 mode
(I/O operate)
IDLE1 mode
(Operate only oscillator)
IDLE2 mode
(I/O operate)
IDLE1 mode
(Operate only oscillator)
instruction
interrupt
instruction
interrupt
instruction
interrupt
instruction
interrupt
instruction
interrupt
instruction
interrupt
Reset
(f
/16)
OSCH
release Reset
PLL-OFF mode
/gear value)
(f
(a) PLL-OFF mode transition figure
OSCH
(f
PLL-OFF mode
(f
OSCH
PLL-ON mode
((12 or 16)×f
Reset
/16)
OSCH
release Reset
/gear value)
Instruction (Note)
/gear value)
OSCH
instruction
interrupt
instruction
interrupt
TMP92CZ26A
STOP mode
(Stops all circuits)
STOP mode
(Stops all circuits)
(b) PLL-OFF , PLL-ON mode transition figure
Note 1: If you shift from PLL-ON mode to PLL-OFF mode, execute following setting in the same order.
(1) Change CPU clock (Set “0” to PLLCR0<FCSEL>)
(2) Stop PLL circuit (Set “0” to PLLCR1<PLLON>)
Note 2: It’s prohibited to shift from PLL-ON mode to STOP mode directly.
You should set PLL-OFF mode once, and then shift to STOP mode.
Figure 3.3.1 System clock block diagram
The clock frequency input from the X1 and X2 pins is called f
called fs. The clock frequency selected by SYSCR1<GEAR2:0> is called the sy stem clock f
to as one state.
and the clock frequency input from the XT1 and XT2 pins is
OSCH
. And one cycle of f
SYS
is defined
SYS
92CZ26A-21
R
r
r
(
3.3.1 Block diagram of system clock
SYSCR0<WUEF>
SYSCR2<WUPTM1:0>
TMP92CZ26A
SYSCR0<XTEN >
XT1
XT2
X1
X2
X1USB
Low frequency
Oscillator circuit
High frequency
Oscillator circuit
φT0TMR
Warming up timer
(High/Low frequency oscillator circuit)
Lock up timer
(PLL)
PLLCR1<PLLON>,
fs
Clock Doubler0
×
f
OSCH
PLLCR0<LUPFG>
(PLL0)
12 or16)
÷2
f
PLL
PLLCR0<FCSEL>
Clock Doubler1
(PLL1)× 24
f
SYS
f
io
TMRA0:7,TMRB0:1
Prescaler
SIO0
φT0
Prescaler
SBI
Prescaler
fc
fc/2
÷2÷16÷4
÷5
fc/4
fc/8
÷8
Clock gear
f
PLLUSB
÷2
÷8
SYSCR0<PRCK>
fc/16
SYSCR1<GEAR2:0>
SYSCR0<USBCLK1:0>
CPU
RAM
Interrupt
NAND-Flash
Controller
I/O ports
SDRAMC
DMAC
÷4
LCDC
Memory
Controlle
Controlle
2
S
I
TSI
SPIC
÷2
÷2
φT0
φT0TM
fs
f
SYS
fIO
f
USB
f
OSCH4
RTC
MAC
fs
MLD/ALM
ADC
f
USB
USB
Figure 3.3.2 Block Diagram of System clock
92CZ26A-22
TMP92CZ26A
TMP92CZ26A has two PLL circuits: one is for CPU (PLL0) and the other for USB (PLL1).
Each PLL can be controlled independently. Frequency of external oscillator is 6 to 10MHz.
Don’t connect oscillator m ore than 10 MH z. When clo ck is in put by usin g ext ern al osci llato r,
range of input frequency is 6 to10MHz. Don’t input the clock over 10MHz.
Table 3.3.1 Setting example for f
(a) PLL, USB (PLL0 ON/PLL1ON) 10.0 MHz Max 80 MHzMax 60 MHz 48 MHz
(b) PLL, No USB (PLL0 ON/PLL1OFF) Max 10.0 MHz Max 80 MHzMax 60 MHz
(c) No PLL, No USB (PLL0 OFF/PLL1OFF) Max 10.0 MHz Max 10 MHzMax 10 MHz
Note: When using USB, set high-frequency oscillator to 10.0 MHz.
Note1: SYSCR0<bit7><bit3><bit1>,SYSCR1<bit7:3> and SYSCR2<bit1:0> are read as undefined value.
Note2: By reset, low frequency oscillator circuit is enabled.
Note3: Don’t write SYSCR0 resiter during warming up. Because the warm-up end flag doesn’t become enable if
write ”0” to SYSCR0<WUEF> bit during warming up.
( Read-modify-write is prohibited for SYSCR0 register during warming up.)
Bit symbol
Read/Write R R/W R/W R/W R/W
After reset 0 0 0 1 1
Function
Bit symbol
Read/Write
After reset
Function
Bit symbol
Read/Write
After reset
Function
Note: In case restarting the oscillator in the stop oscillation state (e.g. Restart the oscillator in STOP mode), set
PROTECT
Protect flag
0: OFF
1: ON
EMCCR0<DRVOSCH>, <DRVOSCL>
Switching the protect ON/OFF by write to following 1
st
1
-KEY: EMCCR1=5AH,EMCCR2=A5H in succession write
nd
2
-KEY: EMCCR1=A5H,EMCCR2=5AH in succession write
=”1”.
−
Always
write “0”.
EXTIN DRVOSCH DRVOSCL
1: External
clock
st
-KEY,2nd-KEY
fc oscillator
drive ability
1: NORMAL
0: WEAK
fs oscillator
drive ability
1: NORMAL
0: WEAK
Figure 3.3.4 SFR for system clock
92CZ26A-25
PLLCR0
(10E8H)
PLLCR1
(10E9H)
TMP92CZ26A
7 6 5 4 3 2 1 0
bit symbol FCSEL LUPFG
Read/Write R/W R
After reset 0 0
Function
Note: Be carefull that logic of PLLCR0<LUPFG> is different from 900/L1’s DFM.
Select
fc-clock
0 : f
OSCH
1 : f
PLL
Lock-up
timer
Status flag
0 : not end
1 : end
7 6 5 4 3 2 1 0
bit symbol PLL0 PLL1 LUPSEL
Read/Write R/W R/W R/W R/W
After reset 0 0 0 0
Select the
Function
PLL0 for
CPU
0: Off
1: On
PLL1 for
USB
0: Off
1: On
Select
stage of
Lock up
counter
0: 12 stage
(for PLL0)
1:13 stage
(for PLL1)
PLLTIMES
number of
PLL
0: ×12
1: ×16
PxDR
(xxxxH)
Figure 3.3.5 SFR for PLL
7 6 5 4 3 2 1 0
bit symbol Px7D Px6D Px5D Px4D Px3D Px2D Px1D Px0D
Read/Write R/W
After reset 1 1 1 1 1 1 1 1
Function Output/Input buffer drive-register for standby-mode
(Purpose and method of using)
• This register is used to set each pin-status at stand-by mode.
• All ports have this format’s register. (“x” means port-name.)
• For each register, refer to 3.5 Function of Ports.
• Before “HALT” instruction is executed, set each register pin-status. They will be
effective after CPU executes “HALT” instructi on.
• This register is effective in all stand-by modes (IDLE2, IDLE1 or STOP).
• This register is effective when using PMC function. For details, refer to PMC
section.
The truth table to control Output/Input-buffer is below.
OE PxnD Output bufferInput buffer
0 0 OFF OFF
0 1 OFF ON
1 0 OFF OFF
1 1 ON OFF
Note1: OE means an output enable signal before stand-by mode. Basically, PxCR is used as OE.
Note2: “n” in PxnD means bit-number of PORTx.
Figure 3.3.6 SFR for drive register
92CZ26A-26
3.3.3 System clock controller
TMP92CZ26A
The system clock controller generates the system clock signal (f
) for the CPU core and
SYS
internal I/O.
SYSCR0<XEN> and SYSCR0<XTEN> control enabling and disabling of each oscillator.
SYSCR1<GEAR2:0> sets the high frequency clock gear to either 1, 2, 4, 8 or 16 (fc, fc/2, fc/4,
fc/8, fc/16). These functions can reduce the power consumption of the equipment in which
the device is installed.
The combination of settings <XEN> = “1”, <SYSCK> = “0” and <GEAR2 to 0> = “100” will
be PLL-OFF mode and cause the system clock (f
For example, f
is set to 625 kHz when the 10MHz oscillator is conn ected to the X1 an d
SYS
) to be set to fc/16 after reset.
SYS
X2 pins.
(1) Clock gear controller
is set according to the contents of the Clock Gear Select Register SYSCR1<GEAR2:
f
SYS
0> to either fc, fc/2, fc/4, fc/8 or fc/16. Using the clock gear to select a lower value of f
SYS
reduces power consumption.
(Example)
Changing clock gear
SYSCR1 EQU 10E1H
LD (SYSCR1),XXXXX001B;Changes system clock f
LD (DUMMY),00H Dummy instruction
X: don't care
SYS to
fc/2
(High-speed clock gear changing)
To change the clock gear, write the register value to the SYSCR1<GEAR2 to 0> register.
It is necessary the warming up time until changing after writ ing the register value.
There is the possibility that the instruction next to the cl ock gea r changing i n struction is
executed by the clock gear before changing. To execu te the instruction next to the cl ock gear
switching instruction by the clock gear after changing, input the dummy instruction as
follows (instruction to execute the write cycle).