M37545G6-XXXGP [RENESAS]
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER; 单片8位CMOS微机型号: | M37545G6-XXXGP |
厂家: | RENESAS TECHNOLOGY CORP |
描述: | SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER |
文件: | 总62页 (文件大小:1010K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
7545 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
REJ03B0140-0106
Rev.1.06
Mar 07, 2008
DESCRIPTION
• Clock generating circuit ........................................Built-in type
(connect to external ceramic resonator or quartz-crystal
oscillator)
• Watchdog timer .........................................................16-bit × 1
• Power-on reset circuit............................................ Built-in type
• Voltage drop detection circuit................................Built-in type
• Power source voltage
The 7545 Group is the 8-bit microcomputer based on the 740
family core technology.
The 7545 Group has an 8-bit timer, power-on reset circuit and the
voltage drop detection circuit. Also, Function set ROM is
equipped.
XIN oscillation frequency at ceramic/quartz-crystal oscillation
At 4 MHz.......................................... 1.8 to 3.6 V
FEATURES
• Power dissipation .......................................................... 1.8mW
• Operating temperature range.................................−20 to 85 °C
• Basic machine-language instructions .................................. 71
• The minimum instruction execution time .................... 2.00 µs
(at 4 MHz oscillation frequency for the shortest instruction)
• Memory size ROM ........................................ 4K to 60K bytes
RAM ............................................ 256, 512 bytes
• Programmable I/O ports ...................................................... 25
• Key-on wakeup input .................................................. 8 inputs
• LED output port...................................................................... 8
• Interrupts.................................................... 7 sources, 7 vectors
• Timers .......................................................................... 8-bit × 3
• Carrier wave generating circuit .......1 channel (8-bit timer × 2)
APPLICATION
Remote control transmit.
PIN CONFIGURATION (TOP VIEW)
22
24 23
21 20 19 18 17
25
26
27
28
29
30
31
32
16
P05/KEY5
P06/KEY6
P07/KEY7
P34
15
P33
14
P32
13
P20(LED0)/INT0
P21(LED1)/INT1
P22(LED2)
P31
M37545Gx-XXXGP
M37545GxGP
12
11
10
9
P30
VSS
P23(LED3)
P24(LED4)
XOUT
XIN
7
8
1
2
3
4
5
6
Package type: PLQP0032GB-A (32P6U-A)
Fig. 1 Pin configuration (PLQP0032GB-A type)
Rev.1.06 Mar 07, 2008 Page 1 of 59
REJ03B0140-0106
7545 Group
PIN CONFIGURATION (TOP VIEW)
1
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
P20(LED0)/INT0
P07/KEY7
P06/KEY6
P05/KEY5
P04/KEY4
P03/KEY3
P02/KEY2
P01/KEY1
P37
P00/KEY0
P36
P35
P34
P33
P21(LED1)/INT1
2
P22(LED2)
P23(LED3)
P24(LED4)
P25(LED5)
P26(LED6)
P27(LED7)
P42/CARR
3
4
5
6
7
8
9
RESET
10
VDDR
11
CNVSS
VCC
12
13
XIN
14
XOUT
VSS
15
P32
P31
16
P30
Package type: PLSP0032JB-A
Fig. 2 Pin configuration (PLSP0032JB-A type)
PIN CONFIGURATION (TOP VIEW)
1
2
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
P21(LED1)/INT1
P20(LED0)/INT0
P07/KEY7
P06/KEY6
P05/KEY5
P04/KEY4
P03/KEY3
P02/KEY2
P01/KEY1
P00/KEY0
P37
P22(LED2)
NC
3
NC
4
P23(LED3)
P24(LED4)
NC
5
6
7
P25(LED5)
P26(LED6)
P27(LED7)
P40(LED8)
P41(LED9)
P42/CARR
NC
8
9
10
11
12
13
14
15
16
17
18
19
20
21
P36
NC
P35
P34
P33
NC
VDDR
RESET
CNVSS
VCC
P32
P31
P30
XIN
P11
P10
XOUT
VSS
Package type: 42S1M
Fig. 3 Pin configuration (42S1M type)
Rev.1.06 Mar 07, 2008 Page 2 of 59
REJ03B0140-0106
7545 Group
Table 1
Performance overview (1)
Parameter
Function
Number of basic instructions
Instruction execution time
Memory sizes ROM
71
2.00 µs (Minimum instruction)
4096 bytes × 8 bits
8192 bytes × 8 bits
16384 bytes × 8 bits
24576 bytes × 8 bits
32768 bytes × 8 bits
49152 bytes × 8 bits
61440 bytes × 8 bits
M37545G1
M37545G2
M37545G4
M37545G6
M37545G8
M37545GC
M37545GF
M37545G1/G2
RAM
RAM1: 240 bytes × 8 bits, RAM2: 16 bytes × 8 bits
M37545G4/G6/G8/GC/GF RAM1: 384 bytes × 8 bits, RAM2: 128 bytes × 8 bits
I/O port
P00−P07 I/O
• 1-bit × 8
• CMOS compatible input level
• CMOS 3-state output structure
• Whether the pull-up function/key-on wakeup function is to be used or not
can be determined by program.
P10, P11 I/O (RLSS-only pin)
• 1-bit × 2
• CMOS compatible input level
• The output structure can be switched to N-channel open-drain or CMOS by software.
P20−P27 I/O
• 1-bit × 8
• CMOS compatible input level
• The output structure can be switched to N-channel open-drain or CMOS by software.
• P2 can output a large current for driving LED.
• P20 and P21 are also used as INT0 and INT1, respectively.
P30−P37 I/O
• 1-bit × 8
• CMOS compatible input level
• The output structure can be switched to N-channel open-drain or CMOS by software.
P40, P41 I/O (RLSS-only pin)
• 1-bit × 2
• CMOS compatible input level
• CMOS 3-state output structure
P42
I/O
• 1-bit × 1
• CMOS compatible input level
• CMOS 3-state output structure
• Carrier wave output pin for remote-control transmitter
Timer
Timer 1
Timer 2
Timer 3
8-bit timer with timer 1 latch
Count source is Prescaler output.
8-bit timer with timer 2 primary latch and timer 2 secondary latch
Count source can be selected from f(XIN)/16, f(XIN)/8, f(XIN)/2 or f(XIN)/1.
8-bit timer with timer 3 latch
Count source can be selected from f(XIN)/16, f(XIN)/8 or f(XIN)/2 or carrier wave output.
Carrier wave generating circuit
Remote-control waveform is generated by using timer 2 and timer 3.
455 kHz carrier wave generating mode is available.
Watchdog timer
16-bit × 1
Power-on reset circuit
Built-in
Voltage drop detection circuit (Not available for RLSS) Typ. 1.75 V (Ta=25 °C)
Interrupt
Source
7 sources (External × 3, Timer × 3, Software)
Function set
ROM area
Function set ROM
Function set ROM is assigned to address FFDA16.
Enable/disable of watchdog timer and STP instruction can be selected.
Valid/invaid of voltage drop detection circuit can be selected.
ROM code protect
ROM code protect is assigned to address FFDB16.
Read/write the built-in QzROM by serial programmer is disabled by setting
“00” to ROM code protect.
Device structure
Package
CMOS silicon gate
32-pin plastic molded LQFP (PLQP0032GB-A)
32-pin plastic molded SSOP (PLSP0032JB-A)
Operating temperature range
−20 to 85 °C
Power source f(XIN) = 4 MHz
voltage
1.8 to 3.6 V
Rev.1.06 Mar 07, 2008 Page 3 of 59
REJ03B0140-0106
7545 Group
Table 2
Performance overview (2)
Parameter
Function
Power dissipation
At CPU active
Typ. 0.6 mA (f(XIN)=4 MHz, Vcc=3.0 V, output transistors “off” )
At WIT instruction executed
Typ. 0.3 mA (f(XIN)=4 MHz, Vcc=3.0 V, output transistors “off” , in WIT state,
function except timer 1 disabled)
At STP instruction executed
Typ. 0.1 µA (Ta = 25 °C, VCC ≥ VDDR ≥ VCC−0.6 V, output transistors “off”, in
STP state, all oscillation stopped)
During reset by voltage drop
detection circuit
Typ. 0.1 µA (Ta = 25 °C, VDDR = 1.1 V, 1.8 V ≥ VCC ≥ 0V)
Rev.1.06 Mar 07, 2008 Page 4 of 59
REJ03B0140-0106
7545 Group
p u e k a w n o - y e K
Fig. 4 Functional block diagram (PLQP0032GB-A package)
Rev.1.06 Mar 07, 2008 Page 5 of 59
REJ03B0140-0106
7545 Group
p u e k a w n o - y e K
Fig. 5 Functional block diagram (PLSP0032JB-A package)
Rev.1.06 Mar 07, 2008 Page 6 of 59
REJ03B0140-0106
7545 Group
PIN DESCRIPTION
Table 3
Pin description
Pin
Name
Function
Function expect a port function
VCC, VSS
VDDR
Power source
Power source
• Apply voltage of 1.8 to 3.6V to VCC, and 0 V to VSS.
• Power source pin only for RAM2. When this pin is used, connect an approximately 0.1 µF
bypass capacitor across the VSS line and the VDDR line. When not used, connect it to VSS.
CNVSS
RESET
CNVSS
• Chip operating mode control pin, which is always connected to Vss.
Reset I/O
• An N-channel open-drain I/O pin for a system reset. This pin has a pull-up transistor. When the
watchdog timer, the built-in power-on reset or the voltage drop detection circuit causes the
system to be reset, the RESET pin outputs "L" level.
XIN
Clock input
Clock output
I/O port P0
• Input and output pins for main clock generating circuit
• Connect a ceramic resonator or quartz-crystal oscillator between the XIN and XOUT pins.
XOUT
P00/KEY0−
P07/KEY7
• 8-bit I/O port.
• Key-input (key-on wake up interrupt
input) pins
• I/O direction register allows each pin to be individually
programmed as either input or output.
• CMOS compatible input level
• CMOS 3-state output structure
• Whether the pull-up function/key-on wakeup function
is to be used or not can be determined by program.
P10, P11
I/O port P1
I/O port P2
• 2-bit I/O port having almost the same function as P0. Note: RLSS-only pins
• CMOS compatible input level
• The output structure can be switched to N-channel
open-drain or CMOS by software.
P20(LED0)/INT0
P21(LED1)/INT1
P22(LED2)−
• 8-bit I/O port having almost the same function as P0. • Interrupt input pins
• CMOS compatible input level
• The output structure can be switched to N-channel
open-drain or CMOS by software.
P27(LED7)
• P2 can output a large current for driving LED.
P30−P37
I/O port P3
I/O port P4
• 8-bit I/O port
• I/O direction register allows each pin to be individually programmed as either input or output.
• CMOS compatible input level
• The output structure can be switched to N-channel open-drain or CMOS by software.
P40(LED8),
P41(LED9)
• 2-bit I/O port having almost the same function as P0. Note: RLSS-only pins
• CMOS compatible input level
• CMOS 3-state output structure
P42/CARR
• 1-bit I/O port
• CMOS compatible input level
• CMOS 3-state output structure
• Carrier wave output pin for remote-
control transmit
Rev.1.06 Mar 07, 2008 Page 7 of 59
REJ03B0140-0106
7545 Group
GROUP EXPANSION
Memory Size
• ROM size ..................................................... 4 K to 60 K bytes
• RAM size .......................................................... 256, 512 bytes
We are planning to expand the 7545 group as follow:
Memory Type
Packages
Support for QzROM version and emulator MCU.
• PLQP0032GB-A ... 0.8 mm-pitch 32-pin plastic molded LQFP
• PLSP0032JB-A ... 0.65 mm-pitch 32-pin plastic molded SSOP
• 42S1M ...........................42-pin shrink ceramic PIGGY BACK
**: Under development
ROM size
(bytes)
**
60K
M37545GF
**
48K
32K
M37545GC
**
M37545G8
**
24K
16K
M37545G6
**
M37545G4
**
8K
4K
M37545G2
**
M37545G1
RAM size
(bytes)
0
256
512
Fig. 6 Memory expansion plan
Currently supported products are listed below.
Table 4
List of supported products
ROM size (bytes)
ROM size for User ( )
RAM size
(bytes)
Part number
Package
Remarks
M37545G1KP
4096 (3966)
PLSP0032JB-A
PLSP0032JB-A
QzROM version (blank)
QzROM version (blank)
QzROM version
256
M37545G2KP
8192 (8062)
M37545G4-XXXGP
M37545G4GP
M37545G4KP
PLQP0032GB-A
PLSP0032JB-A
PLQP0032GB-A
PLSP0032JB-A
PLQP0032GB-A
PLSP0032JB-A
PLQP0032GB-A
PLSP0032JB-A
PLQP0032GB-A
16384
(16254)
QzROM version (blank)
QzROM version (blank)
QzROM version
M37545G6-XXXGP
M37545G6GP
M37545G6KP
24576
(24446)
QzROM version (blank)
QzROM version (blank)
QzROM version
M37545G8-XXXGP
M37545G8GP
M37545G8KP
32768
(32638)
QzROM version (blank)
QzROM version (blank)
QzROM version
512
M37545GC-XXXGP
M37545GCGP
M37545GCKP
M37545GF-XXXGP
M37545GFGP
M37545GFKP
49152
(49022)
QzROM version (blank)
QzROM version (blank)
QzROM version
61440
(61310)
QzROM version (blank)
QzROM version (blank)
Emulator MCU
PLSP0032JB-A
42S1M
M37545RLSS
Rev.1.06 Mar 07, 2008 Page 8 of 59
REJ03B0140-0106
7545 Group
FUNCTIONAL DESCRIPTION
Central Processing Unit (CPU)
[Stack pointer (S)]
The stack pointer is an 8-bit register used during subroutine calls
and interrupts. The stack is used to store the current address data
and processor status when branching to subroutines or interrupt
routines.
The lower eight bits of the stack address are determined by the
contents of the stack pointer. The upper eight bits of the stack
address are determined by the Stack Page Selection Bit. If the
Stack Page Selection Bit is “0”, then the RAM in the zero page is
used as the stack area. If the Stack Page Selection Bit is “1”, then
RAM in page 1 is used as the stack area.
The MCU uses the standard 740 family instruction set. Refer to
the table of 740 family addressing modes and machine-language
instructions or the SERIES 740 <SOFTWARE> USER’S
MANUAL for details on each instruction set.
Machine-resident 740 family instructions are as follows:
1. The FST and SLW instructions cannot be used.
2. The MUL and DIV instructions can be used.
3. The WIT instruction can be used.
The Stack Page Selection Bit is located in the SFR area in the
zero page. Note that the initial value of the Stack Page Selection
Bit varies with each microcomputer type. Also some
microcomputer types have no Stack Page Selection Bit and the
upper eight bits of the stack address are fixed. The operations of
pushing register contents onto the stack and popping them from
the stack are shown in Figure 8.
4. The STP instruction can be used.
This instruction cannot be used while CPU operates by an on-
chip oscillator.
[Accumulator (A)]
The accumulator is an 8-bit register. Data operations such as data
transfer, etc., are executed mainly through the accumulator.
[Program counter (PC)]
[Index register X (X), Index register Y (Y)]
The program counter is a 16-bit counter consisting of two 8-bit
registers PCH and PCL. It is used to indicate the address of the
next instruction to be executed.
Both index register X and index register Y are 8-bit registers. In
the index addressing modes, the value of the OPERAND is
added to the contents of register X or register Y and specifies the
real address.
When the T flag in the processor status register is set to “1”, the
value contained in index register X becomes the address for the
second OPERAND.
b7
b0
b0
b0
b0
b0
b0
A
Accumulator
b7
X
Index Register X
Index Register Y
Stack Pointer
b7
Y
b7
S
b15
b7
b7
PCH
PCL
Program Counter
Processor Status Register (PS)
N V T B D I Z C
Carry Flag
Zero Flag
Interrupt Disable Flag
Decimal Mode Flag
Break Flag
Index X Mode Flag
Overflow Flag
Negative Flag
Fig. 7 740 Family CPU register structure
Rev.1.06 Mar 07, 2008 Page 9 of 59
REJ03B0140-0106
7545 Group
On-going Routine
Interrupt request
(Note)
M (S) (PCH)
(S) (S - 1)
M (S) (PCL)
Execute JSR
Store Return Address
on Stack
M (S)
(S)
(PCH)
(S - 1)
Store Return Address
on Stack
(S)
(S - 1)
(PS)
Store Contents of Processor
Status Register on Stack
M (S) (PCL)
(S) (S - 1)
Subroutine
Execute RTS
M (S)
(S)
(S - 1)
Interrupt
Service Routine
I Flag “0” to “1”
Fetch the Jump Vector
Execute RTI
(S)
(PCL)
(S)
(S + 1)
(S)
(S + 1)
Restore Return
Address
Restore Contents of
Processor Status Register
M (S)
(S + 1)
M (S)
(PS)
(S)
M (S)
(S + 1)
(PCH)
(PCL) M (S)
Restore Return
Address
(S)
(S + 1)
M (S)
(PCH)
Note : The condition to enable the interrupt
Interrupt enable bit is “1”
Interrupt disable flag is “0”
Fig. 8 Register push and pop at interrupt generation and subroutine call
Table 5
Push and pop instructions of accumulator or processor status register
Push instruction to stack
Pop instruction from stack
Accumulator
PHA
PHP
PLA
PLP
Processor status register
Rev.1.06 Mar 07, 2008 Page 10 of 59
REJ03B0140-0106
7545 Group
[Processor status register (PS)]
Decimal correction is automatic in decimal mode. Only the
ADC and SBC instructions can be used for decimal
arithmetic.
The processor status register is an 8-bit register consisting of
flags which indicate the status of the processor after an
arithmetic operation. Branch operations can be performed by
testing the Carry (C) flag, Zero (Z) flag, Overflow (V) flag, or
the Negative (N) flag. In decimal mode, the Z, V, N flags are not
valid.
After reset, the Interrupt disable (I) flag is set to “1”, but all other
flags are undefined. Since the Index X mode (T) and Decimal
mode (D) flags directly affect arithmetic operations, they should
be initialized in the beginning of a program.
Bit 4: Break flag (B)
The B flag is used to indicate that the current interrupt was
generated by the BRK instruction. The BRK flag in the
processor status register is always “0”. When the BRK
instruction is used to generate an interrupt, the processor
status register is pushed onto the stack with the break flag set
to “1”. The saved processor status is the only place where the
break flag is ever set.
Bit 0: Carry flag (C)
Bit 5: Index X mode flag (T)
The C flag contains a carry or borrow generated by the
arithmetic logic unit (ALU) immediately after an arithmetic
operation. It can also be changed by a shift or rotate
instruction.
When the T flag is “0”, arithmetic operations are performed
between accumulator and memory. When the T flag is “1”,
direct arithmetic operations and direct data transfers are
enabled between memory locations.
Bit 1: Zero flag (Z)
Bit 6: Overflow flag (V)
The Z flag is set if the result of an immediate arithmetic
operation or a data transfer is “0”, and cleared if the result is
anything other than “0”.
The V flag is used during the addition or subtraction of one
byte of signed data. It is set if the result exceeds +127 to -
128. When the BIT instruction is executed, bit 6 of the
memory location operated on by the BIT instruction is stored
in the overflow flag.
Bit 2: Interrupt disable flag (I)
The I flag disables all interrupts except for the interrupt
generated by the BRK instruction. Interrupts are disabled
when the I flag is “1”.
Bit 7: Negative flag (N)
The N flag is set if the result of an arithmetic operation or
data transfer is negative. When the BIT instruction is
executed, bit 7 of the memory location operated on by the
BIT instruction is stored in the negative flag.
When an interrupt occurs, this flag is automatically set to “1”
to prevent other interrupts from interfering until the current
interrupt is serviced.
Bit 3: Decimal mode flag (D)
The D flag determines whether additions and subtractions are
executed in binary or decimal. Binary arithmetic is executed
when this flag is “0”; decimal arithmetic is executed when it
is “1”.
Table 6
Set and clear instructions of each bit of processor status register
C flag
SEC
CLC
Z flag
I flag
SEI
D flag
SED
CLD
B flag
T flag
SET
CLT
V flag
−
N flag
Set instruction
−
−
−
−
−
−
Clear instruction
CLI
CLV
Rev.1.06 Mar 07, 2008 Page 11 of 59
REJ03B0140-0106
7545 Group
[CPU mode register (CPUM)]
The CPU mode register contains the stack page selection bit.
This register is allocated at address 003B16.
For this product, the clock speed of CPU is always f(XIN)/4.
b7
b0
CPU mode register
(CPUM: address 003B16, initial value: 8016)
Processor mode bits (Note)
b1 b0
0
0
1
1
0
1
0
1
Single-chip mode
Not available
Stack page selection bit
0 : 0 page
1 : 1 page
Not used (returns “0” when read)
Clock division ratio selection bits
b7 b6
0
0
1
1
0
1
0
1
: Not available
: Not available
: f(φ) = f(XIN)/4
: Not available
Note : The bit can be rewritten only once after releasing reset.
After rewriting, it is disabled to write any data to this bit.
However, by reset the bit is initialized and can be rewritten, again.
It is not disabled to write any data to this bit for emulator MCU “M37545RLSS.”
Fig. 9 Structure of CPU mode register
Rev.1.06 Mar 07, 2008 Page 12 of 59
REJ03B0140-0106
7545 Group
MEMORY
ROM Code Protect Address (address FFDB16)
Address FFDB16, which is the reserved ROM area of QzROM, is
the ROM code protect address. “0016” is written into this address
when selecting the protect bit write by using a serial programmer
or selecting protect enabled for writing shipment by Renesas
Technology corp.. When “0016” is set to the ROM code protect
address, the protect function is enabled, so that reading or writing
from/to QzROM is disabled by a serial programmer.
As for the QzROM product in blank, the ROM code is protected
by selecting the protect bit write at ROM writing with a serial
programmer.
Special Function Register (SFR) Area
The SFR area in the zero page contains control registers such as
I/O ports and timers.
RAM
RAM is used for data storage and for a stack area of subroutine
calls and interrupts. RAM consists of RAM1 and RAM2. The
power source for RAM1 is supplied from VCC pin. The power
source for RAM2 is supplied from VDDR pin.
Note: When the VDDR pin is used, connect an approximately 0.1
µF bypass capacitor across the VSS line and the VDDR line.
When not used, connect it to VSS.
As for the QzROM product shipped after writing, “0016” (protect
enabled) or “FF16” (protect disabled) is written into the ROM
code protect address when Renesas Technology corp. performs
writing.
ROM
The writing of “0016” or “FF16” can be selected as the ROM
option setup (referred to as “Mask option setup” in MM) when
ordering.
The first 128 bytes and the last 2 bytes of ROM are reserved for
device testing and the rest is a user area for storing programs.
<Notes>
Interrupt Vector Area
1. Because the contents of RAM are indefinite at reset, set ini-
tial values before using.
The interrupt vector area contains reset and interrupt vectors.
2. Do not access to the reserved area.
Zero Page
3. Random data is written into the Renesas shipment test area
and the reserved ROM area. Do not rewrite the data in these
areas. Data of these area may be changed without notice.
Accordingly, do not include these areas into programs such
as checksum of all ROM areas.
4. The QzROM values in function set ROM data set the oper-
ating modes of the various peripheral functions after an
MCU reset is released. Do not fail to set the value for the
selected function. Bits designated with a fixed value of 1 or
0 must be set to the designated value.
The 256 bytes from addresses 000016 to 00FF16 are called the
zero page area. The internal RAM and the special function
registers(SFR) are allocated to this area.
The zero page addressing mode can be used to specify memory
and register addresses in the zero page area. Access to this area
with only 2 bytes is possible in the zero page addressing mode.
Special Page
The 256 bytes from addresses FF0016 to FFFF16 are called the
special page area. The special page addressing mode can be used
to specify memory addresses in the special page area. Access to
this area with only 2 bytes is possible in the special page
addressing mode.
5. Emulator MCU: As for M37545RLSS, set “010000XX2” to
Function set ROM data (address FFDA16). Also, set “FF16”
to ROM code protect (address FFDB16).
Function Set ROM Area
[Renesas shipment test area]
Figure 10 shows the Assignment of Function set ROM area.
The random data are set to the Renesas shipment test areas
(addresses FFD416 to address FFD916).
Do not rewrite the data of these areas.
When the checksum is included in the user program, avoid
assigning it to these areas.
[Function set ROM data] FSROM
Function set ROM data (address FFDA16) is used to set modes of
peripheral functions. By setting this area, the operation mode of
each peripheral function are set after system is released from
reset.
Refer to the descriptions of peripheral functions for the details of
operation of peripheral functions.
• Watchdog timer
• Low voltage detection circuit
This mode setting of peripheral functions cannot be changed by
program after system is released from reset.
Rev.1.06 Mar 07, 2008 Page 13 of 59
REJ03B0140-0106
7545 Group
RAM 1 area
RAM capacity
(bytes)
address
WWWW16
000016
004016
SFR area
RAM1
240
384
012F16
01BF16
RAM 2 area
WWWW16
01C016
address
XXXX16
RAM capacity
(bytes)
RAM2
16
01CF16
023F16
XXXX16
128
Reserved area
ROM area
044016
ROM capacity
(bytes)
address
YYYY16
address
ZZZZ16
Disable
4096
8192
F00016
E00016
C00016
A00016
800016
400016
100016
F08016
E08016
C08016
A08016
808016
408016
108016
16384
24576
32768
49152
61440
YYYY16
ZZZZ16
Reserved ROM area
(128 bytes)
ROM
FF0016
FFD416
FFDC16
ROM
Function set ROM area
Address
Function set ROM area
FFD416 Renesas shipment test area
FFD516 Reserved ROM area
FFD616 Reserved ROM area
FFD716 Reserved ROM area
FFD816 Reserved ROM area
FFD916 Reserved ROM area
FFDA16 Function set ROM data
FFDB16 ROM code protect
Interrupt vector area
Reserved ROM area
FFFE16
FFFF16
Fig. 10 Memory map diagram
Rev.1.06 Mar 07, 2008 Page 14 of 59
REJ03B0140-0106
7545 Group
Port P0 (P0)
Reserved
000016
000116
000216
000316
000416
000516
000616
000716
000816
000916
000A16
000B16
000C16
000D16
000E16
000F16
001016
001116
002016
002116
002216
002316
002416
002516
002616
002716
002816
002916
002A16
002B16
002C16
002D16
002E16
002F16
003016
003116
003216
003316
Port P0 direction register (P0D)
Port P1 (P1)
Reserved
Reserved
Port P1 direction register (P1D)
Port P2 (P2)
Reserved
Reserved
Port P2 direction register (P2D)
Port P3 (P3)
Reserved
Reserved
Port P3 direction register (P3D)
Carrier wave control register (CARCNT)
Prescaler 1 (PRE1)
Timer 1 (T1)
Port P4 (P4)
Port P4 direction register (P4D)
Reserved
Timer count source set register (TCSS)
Timer 1,2,3 control register (TC123)
Timer 2 primary (T2P)
Timer 2 secondary (T2S)
Timer 3 (T3)
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
001216 Reserved
Reserved
001316 Reserved
001416 Reserved
003416 Reserved
001516 Reserved
003516
003616
003716
003816
003916
003A16
003B16
003C16
003D16
003E16
003F16
Reserved
Reserved
001616 Pull-up control register (PULL)
001716 Port output mode selection register (PMOD)
001816 Key-on wakeup pin selection register (KEYSEL)
Reserved
MISRG
Key-on wakeup edge selection register (KEYEDGE)
Watchdog timer control register (WDTCON)
Interrupt edge selection register (INTEDGE)
CPU mode register (CPUM)
Interrupt request register 1 (IREQ1)
Reserved
001916
001A16
001B16
001C16
001D16
001E16
001F16
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Interrupt control register 1 (ICON1)
Reserved
Note : Do not access to the SFR area including nothing.
Fig. 11 Memory map of special function register (SFR)
Rev.1.06 Mar 07, 2008 Page 15 of 59
REJ03B0140-0106
7545 Group
b7
b0
Function set ROM data
(FSROM: address FFDA16)
Watchdog timer disable bit
0: Watchdog timer enabled
1: Watchdog timer disabled
STP instruction function selection bit
0: Internal reset occurs at the STP
instruction execution
1: System enters into the stop mode
at the STP instrcution execution
MCU package set bit
0: GP package version
1: KP package version
Set “0” to this bit.
Voltage drop detection circuit valid bit
0: Voltage drop detection circuit invalid
1: Voltage drop detection circuit valid
Set “0” to this bit.
Setting the number of pins
0: set “0” to this bit in GP or KP
package version
1: set “1” to this bit in the emulator
MCU
Set “0” to this bit.
Fig. 12 Structure of Function set ROM area
Rev.1.06 Mar 07, 2008 Page 16 of 59
REJ03B0140-0106
7545 Group
I/O PORTS
[Pull-up control register] Pull
By setting the pull-up control register (address 001616), port P0
can exert pull-up control by program. However, pins set to
output are disconnected from this control and cannot exert pull-
up control.
[Direction registers] PiD
The I/O ports have direction registers which determine the input/
output direction of each pin. Each bit in a direction register
corresponds to one pin, and each pin can be set to be input or
output.
When “1” is set to the bit corresponding to a pin, this pin
becomes an output port. When “0” is set to the bit, the pin
becomes an input port.
When data is read from a pin set to output, not the value of the
pin itself but the value of port latch is read. Pins set to input are
floating, and permit reading pin values.
[Port output mode selection register] PMOD
By setting the port output mode selection register (address
001716), CMOS output or Nch open-drain can be selected for
ports P1, P2, P3 by program.
If a pin set to input is written to, only the port latch is written to
and the pin remains floating.
b7
b0
Pull-up control register
(PULL: address 001616, initial value: 0016)
Port P00
Port P01
Port P02
Port P03
0: Pull-up transistor off
1: Pull-up transistor on
Port P04
Port P05
Port P06
Port P07
Fig. 13 Structure of pull-up control register
b7
b0
Port output mode selection register
(PMOD: address 001716, initial value: 0016)
Port P10−P11
Port P20−P23
0: CMOS output
Port P24−P27
1: Nch open-drain
Port P30−P33
Port P34−P37
Disable (returns “0” when read)
Fig. 14 Structure of port output mode selection register
Table 7
I/O port function table
Pin
Name
Input/Output
I/O format
Non-port function
Related SFRs
Diagram No.
(1)
• CMOS compatible input Key input interrupt
P00−P07
Port P0 I/O individual
bits
Pull-up control register
level
Key-on wakeup pin selection register
Key-on wakeup edge selection regis-
ter
• CMOS 3-state output
• CMOS compatible input RLSS-only pin
Port output mode selection register
P10−P11
Port P1
Port P2
(2)
(3)
level
External interrupt input
P20/INT0
P21/INT1
Interrupt edge selection register
Port output mode selection register
• CMOS 3-state output or
N-channel opendrain
Port output mode selection register
Port output mode selection register
P22−P27
P30−P37
P40, P41
P42/CARR
(2)
(2)
(4)
(5)
Port P3
Port P4
• CMOS compatible input RLSS-only pin
level
Carrier wave control register
Carrier wave output for
• CMOS 3-state output
remote-control transmitter
Rev.1.06 Mar 07, 2008 Page 17 of 59
REJ03B0140-0106
7545 Group
(2) Ports P10-P11, P22-P27, P30-P37
(1) Ports P00-P07
Port output mode switch
Pull-up control
Direction
register
Direction
register
Data bus
Port latch
Port latch
Data bus
To key input interrupt
generating circuit
Key-on wakeup pin selection
(3) Ports P20, P21
(4) Ports P40, P41
Port output mode switch
Direction
register
Direction
register
Data bus
Port latch
Port latch
Data bus
To INT0, INT1 interrupt circuit
(5) Port P42
Carrier wave output valid bit
Direction
register
Port latch
Data bus
Carrier wave output
Fig. 15 Block diagram of ports (1)
Rev.1.06 Mar 07, 2008 Page 18 of 59
REJ03B0140-0106
7545 Group
Termination of Unused Pins
1. Termination of common pins
I/O ports:
Select an input port or an output port and follow
each processing method.
Output ports: Open.
Input ports: If the input level become unstable, through current
flow to an input circuit, and the power supply
current may increase.
Especially, when expecting low consumption
current (at STP or WIT instruction execution etc.),
pull-up or pull-down input ports to prevent
through current (built-in resistor can be used).
We recommend processing unused pins through a
resistor which can secure IOH(avg) or IOL(avg).
Table 8
Termination of unused pins
Pin
Termination 1 (recommend)
Termination 2 (recommend)
P00/KEY0−P07/KEY7
P10−P11(RLSS-only pin)
P20 (LED0)/INT0
I/O port
When selecting key-on wakeup function, perform termination of input port.
When selecting N-channel open-drain for output structure, open.
When selecting N-channel open-drain for output structure, connect to VSS
through a resistor. Or set its port latch to “0” and open.
P21 (LED1)/INT1
When selecting N-channel open-drain for output structure, connect to VSS
through a resistor. Or set its port latch to “0” and open.
P22 (LED2)−P27 (LED7)
P30−P37
When selecting N-channel open-drain for output structure, open.
When selecting N-channel open-drain for output structure, open.
P40 (LED8) (RLSS-only pin)
P41 (LED9) (RLSS-only pin)
P42/CARR
−
−
When selecting CARR output function, perform termination of output port.
VDDR
Connect to VSS.
−
Rev.1.06 Mar 07, 2008 Page 19 of 59
REJ03B0140-0106
7545 Group
Interrupts
The 7545 group interrupts are vector interrupts with a fixed
priority scheme, and generated by 7 sources 3 external, 3
internal, and 1 software.
The interrupt sources, vector addresses(1), and interrupt priority
are shown in Table 9.
Each interrupt except the BRK instruction interrupt has the
interrupt request bit and the interrupt enable bit. These bits and
the interrupt disable flag (I flag) control the acceptance of
interrupt requests. Figure 16 shows an interrupt control diagram.
An interrupt requests is accepted when all of the following
conditions are satisfied:
• Interrupt disable flag ................................ “0”
• Interrupt request bit.................................. “1”
• Interrupt enable bit................................... “1”
Though the interrupt priority is determined by hardware, priority
processing can be performed by software using the above bits
and flag.
Table 9
Interrupt vector address and priority
Vector addresses(1)
Interrupt source Priority
Interrupt request generating conditions
Remarks
Non-maskable
High-
order
Low-
order
Reset (2)
1
2
3
FFFD16 FFFC16 At reset input
Key-on wakeup
INT0
FFFB16
FFF916
FFFA16 AND operation of input logic level of port P0 (input) External interrupt
FFF816 At detection of either rising or falling edge of INT0 External interrupt
input
(active edge selectable)
INT1
4
FFF716
FFF616 At detection of either rising or falling edge of INT1 External interrupt
input
(active edge selectable)
Timer 2
5
6
7
8
FFF516
FFF316
FFF116
FFF416 At timer 2 underflow
FFF216 At timer 3 underflow
FFF016 At timer 1 underflow
Timer 3
Timer 1
STP release timer underflow
BRK instruction
FFDD16 FFDC16 At BRK instruction execution
Non-maskable software interrupt
NOTES:
1. Vector addressed contain interrupt jump destination addresses.
2. Reset function in the same way as an interrupt with the highest priority.
Rev.1.06 Mar 07, 2008 Page 20 of 59
REJ03B0140-0106
7545 Group
Interrupt request bit
Interrupt enable bit
Interrupt disable flag I
BRK instruction
Reset
Interrupt request
Fig. 16 Interrupt control diagram
• Interrupt Disable Flag
• Interrupt Edge Selection
The interrupt disable flag is assigned to bit 2 of the processor
status register. This flag controls the acceptance of all interrupt
requests except for the BRK instruction. When this flag is set to
“1”, the acceptance of interrupt requests is disabled. When it is
set to “0”, acceptance of interrupt requests is enabled. This flag is
set to “1” with the SET instruction and set to “0” with the CLI
instruction.
When an interrupt request is accepted, the contents of the
processor status register are pushed onto the stack while the
interrupt disable flag remains set to “0”. Subsequently, this flag
is automatically set to “1” and multiple interrupts are disabled.
To use multiple interrupts, set this flag to “0” with the CLI
instruction within the interrupt processing routine.
The valid edge of external interrupt INT0 and INT1 can be
selected by the interrupt edge selection register(address003A16),
respectively.
• Key-on Wakeup Pin Selection
By setting the key-on wakeup pin selection register (address
001816), the valid or invalid of key-on wakeup for each pin can
be selected.
• Key-on Wakeup Edge Selection
By setting the key-on wakeup edge selection register (address
001916), the trigger edge of key-on wakeup for each pin can be
selected.
The contents of the processor status register are popped off the
stack with the RTI instruction.
• Interrupt Request Bits
Once an interrupt request is generated, the corresponding
interrupt request bit is set to “1” and remains “1” until the request
is accepted. When the request is accepted, this bit is
automatically set to “0”.
Each interrupt request bit can be set to “0”, but cannot be set to
“1”, by software.
• Interrupt Enable Bits
The interrupt enable bits control the acceptance of the
corresponding interrupt requests. When an interrupt enable bit is
set to “0”, the acceptance of the corresponding interrupt request
is disabled. If an interrupt request occurs in this condition, the
corresponding interrupt request bit is set to “1”, but the interrupt
request is not accepted. When an interrupt enable bit is set to “1”,
acceptance of the corresponding interrupt request is enabled.
Each interrupt enable bit can be set to “0” or “1” by software.
The interrupt enable bit for an unused interrupt should be set to
“0”.
Rev.1.06 Mar 07, 2008 Page 21 of 59
REJ03B0140-0106
7545 Group
b0
b7
b0
b0
b0
b7
Interrupt edge selection register
Interrupt request register 1
(INTEDGE : address 003A16, initial value : 0016)
(IREQ1 : address 003C16, initial value : 0016)
Key-on wakeup interrupt request bit
INT0 interrupt edge selection bit
0 : Falling edge active
INT0 interrupt request bit
INT1 interrupt request bit
1 : Rising edge active
Timer 2 interrupt request bit
Timer 3 interrupt request bit
INT1 interrupt edge selection bit
0 : Falling edge active
Timer 1 interrupt request bit
1 : Rising edge active
Disable (returns “0” when read)
(Do not write “1” to these bits)
Disable (returns “0” when read)
b7
b7
b0
Interrupt control register 1
Key-on wakeup pin selection register
(KEYSEL: address 001816, initial value: 0016)
(ICON1 : address 003E16, initial value : 0016)
Key-on wakeup interrupt enable bit
Port P00
Port P01
Port P02
INT0 interrupt enable bit
INT1 interrupt enable bit
Timer 2 interrupt enable bit
Timer 3 interrupt enable bit
Port P03
0: Key-on wakeup invalid
1: Key-on wakeup valid
Port P04
Timer 1 interrupt enable bit
Port P05
Port P06
Port P07
Disable (returns “0” when read)
(Do not write “1” to these bits)
b7
Key-on wakeup edge selection register
(KEYEDGE: address 001916, initial value: 0016)
Port P00
Port P01
Port P02
Port P03
Port P04
Port P05
Port P06
Port P07
0: Falling edge
1: Rising edge
Fig. 17 Structure of interrupt-related registers
Rev.1.06 Mar 07, 2008 Page 22 of 59
REJ03B0140-0106
7545 Group
• Interrupt Request Generation, Acceptance, and Handling
Interrupts have the following three phases.
(i) Interrupt Request Generation
<Notes>
The interrupt request bit may be set to “1” in the following cases.
• When setting the external interrupt active edge
Related registers:Interrupt edge selection register
(address 003A16)
An interrupt request is generated by an interrupt source
(external interrupt signal input, timer underflow, etc.) and
the corresponding request bit is set to “1”.
Key-on wakeup edge selection register
(address 001916)
(ii) Interrupt Request Acceptance
Based on the interrupt acceptance timing in each instruction
cycle, the interrupt control circuit determines acceptance
conditions (interrupt request bit, interrupt enable bit, and
interrupt disable flag) and interrupt priority levels for
accepting interrupt requests. When two or more interrupt
requests are generated simultaneously, the highest priority
interrupt is accepted. The value of interrupt request bit for
an unaccepted interrupt remains the same and acceptance is
determined at the next interrupt acceptance timing point.
(iii) Handling of Accepted Interrupt Request
If it is not necessary to generate an interrupt synchronized with
these settings, take the following sequence.
(1) Set the corresponding enable bit to “0” (disabled).
(2) Set the interrupt edge selection bit (the active edge switch
bit) or the interrupt source bit.
(3) Set the corresponding interrupt request bit to “0” after one
or more instructions have been executed.
(4) Set the corresponding interrupt enable bit to “1” (enabled).
The accepted interrupt request is processed.
Interrupt request
generated
Interrupt request
acceptance
Interrupt routine
starts
Figure 18 shows the time up to execution in the interrupt
processing routine, and Figure 19 shows the interrupt sequence.
Figure 20 shows the timing of interrupt request generation,
interrupt request bit, and interrupt request acceptance.
Interrupt sequence
Stack push and
Vector fetch
Interrupt handling
routine
Main routine
• Interrupt Handling Execution
When interrupt handling is executed, the following operations
are performed automatically.
*
7 cycles
0 to 16 cycles
(1) Once the currently executing instruction is completed, an
7 to 23 cycles
interrupt request is accepted.
(2) The contents of the program counters and the processor
status register at this point are pushed onto the stack area in
order from 1 to 3.
* When executing DIV instruction
Fig. 18 Time up to execution in interrupt routine
1. High-order bits of program counter (PCH)
2. Low-order bits of program counter (PCL)
3. Processor status register (PS)
Push onto stack
Vector fetch
Execute interrupt
routine
(3) Concurrently with the push operation, the jump address of
the corresponding interrupt (the start address of the interrupt
processing routine) is transferred from the interrupt vector to
the program counter.
(4) The interrupt request bit for the corresponding interrupt is
set to “0”. Also, the interrupt disable flag is set to “1” and
multiple interrupts are disabled.
φ
SYNC
RD
WR
S,SPS S-1,SPS S-2,SPS
Address bus
PC
BL
BH
AL,AH
(5) The interrupt routine is executed.
Not used
PCH
PCL
PS
AL
AH
Data bus
(6) When the RTI instruction is executed, the contents of the
registers pushed onto the stack area are popped off in the
order from 3 to 1. Then, the routine that was before running
interrupt processing resumes.
SYNC : CPU operation code fetch cycle
(This is an internal signal that cannot be observed from the external unit.)
BL, BH: Vector address of each interrupt
AL, AH: Jump destination address of each interrupt
SPS : “0016” or “0116”
([SPS] is a page selected by the stack page selection bit of CPU mode register.)
As described above, it is necessary to set the stack pointer and
the jump address in the vector area corresponding to each
interrupt to execute the interrupt processing routine.
Fig. 19 Interrupt sequence
Rev.1.06 Mar 07, 2008 Page 23 of 59
REJ03B0140-0106
7545 Group
Push onto stack
Vector fetch
Instruction cycle
Instruction cycle
Internal clock φ
SYNC
1
2
T1
IR1T2
IR2T3
T1 T2 T3 : Interrupt acceptance timing points
IR1 IR2 : Timings points at which the interrupt request bit is set to “1”.
Note : Period 2 indicates the last φ cycle during one instruction cycle.
(1) The interrupt request bit for an interrupt request generated during period 1 is set to “1” at timing point IR1.
(2) The interrupt request bit for an interrupt request generated during period 2 is set to “1” at timing point IR1 or IR2.
The timing point at which the bit is set to “1” varies depending on conditions. When two or more interrupt
requests are generated during the period 2, each request bit may be set to “1” at timing point IR1 or IR2
separately.
Fig. 20 Timing of interrupt request generation, interrupt request bit, and interrupt acceptance
Rev.1.06 Mar 07, 2008 Page 24 of 59
REJ03B0140-0106
7545 Group
Key Input Interrupt (Key-on Wake-Up)
An example of using a key input interrupt is shown in Figure 21,
where an interrupt request is generated by pressing one of the
keys provided as an active-low key matrix which uses ports P00
to P03 as input ports.
A key-on wake-up interrupt request is generated by applying the
level set by KEYEDGE to any pin of port P0 that has been set to
input mode and KEYSEL has been valid. In other words, it is
generated when the AND of input level goes from “1” to “0” or
from “0” to “1”.
Port PXx
“L” level output
PULL register
bit 7 = “0”
Port P07
Direction register = "1”
Key input interrupt request
*
**
Port P07
latch
P07 output
Falling edge
detection
Port P07 key-on wakeup
selection register
Bit 7
PULL register
bit 6 = "0”
Port P06
Direction register = "1”
*
**
Port P06
latch
P06 output
Falling edge
detection
Port P06 key-on wakeup
selection register
Bit 6
PULL register
bit 5 = "0”
Port P05
Direction register = "1”
*
**
Port P05
latch
P05 output
P04 output
P03 input
Falling edge
detection
Port P05 key-on wakeup
selection register
Bit 5
PULL register
bit 4 = "0”
Port P04
Direction register = "1”
*
**
Port P04
latch
Falling edge
detection
Port P04 key-on wakeup
selection register
Bit 4
Port P0
Input read circuit
PULL register
bit 3 = "1”
Port P03
Direction register = "0”
*
**
Port P03
latch
Falling edge
detection
Port P03 key-on wakeup
selection register
Bit 3
PULL register
bit 2 = "1”
Port P02
Direction register = "0”
*
**
Port P02
latch
P02 input
Falling edge
detection
Port P02 key-on wakeup
selection register
Bit 2
PULL register
bit 1 = "1”
Port P01
Direction register = "0”
*
**
Port P01
latch
P01 input
Falling edge
detection
Port P01 key-on wakeup
selection register
Bit 1
PULL register
bit 0 = "1”
Port P00
Direction register = "0”
*
**
Port P00
latch
P00 input
Falling edge
detection
Port P00 key-on wakeup
selection register
Bit 0
* P-channel transistor for pull-up
** CMOS output buffer
Fig. 21 Connection example when using key input interrupt and port P0 block diagram
Rev.1.06 Mar 07, 2008 Page 25 of 59
REJ03B0140-0106
7545 Group
Timers
2. Timer 2
Timer 2 is an 8-bit timer and counts the clock selected by the
timer 2 count source selection bit. When Timer 2 underflows, the
timer 2 interrupt request bit is set to “1”.
Timer 2 has two timer latches (primary latch and secondary
latch) to retain the reload value.
The 7545 Group has 3 timers: timer 1, timer 2 and timer 3.
The division ratio of every timer and prescaler is 1/(n+1)
provided that the value of the timer latch or prescaler is n.
All the timers are down count timers. When a timer reaches “0”,
an underflow occurs at the next count pulse, and the
corresponding timer latch is reloaded into the timer. When a
timer underflows, the interrupt request bit corresponding to each
timer is set to “1”.
The value written to timer 2 primary (T2P) while timer 2 is
stopped is transferred to the timer 2 primary latch and the
counter.
The value written to timer 2 secondary (T2S) while timer 2 is
stopped is transferred only to timer 2 secondary latch.
After the count of timer 2 starts, the values written to timer 2
primary (T2P) and timer 2 secondary (T2S) are transferred only
to each latch. The values are not transferred to the counter at
write.
When each timer underflows, the values of timer 2 primary latch
and the timer 2 secondary latch are alternately transferred to the
counter. (Since a count value of a timer is retained, the written
value becomes the count value of the timer after the next
underflow.)
When timer 2 primary (T2P) is read, the count value of the timer
is read. When timer 2 secondary (T2S) is read, a set value of
timer 2 secondary is read. (Read the timer 2 primary to read the
count value even during the count period of timer 2 secondary.)
When the timer 2 primary is read, the count value of timer 2 is
read since the count value of the timer 2 is retained until writing
to timer 2 primary (T2P) is performed after timer 2 is stopped.
1. Timer 1
Timer 1 is an 8-bit timer and counts the prescaler 1 output.
When Timer 1 underflows, the timer 1 interrupt request bit is set
to “1”.
Prescaler 1 is an 8-bit prescaler and counts the clock which is
f(XIN) divided by 16.
Prescaler 1 and Timer 1 have the prescaler 1 latch and the timer 1
latch to retain the reload value, respectively. The value of
prescaler 1 latch is set to Prescaler 1 when Prescaler 1
underflows. The value of timer 1 latch is set to Timer 1 when
Timer 1 underflows.
When writing to Prescaler 1 (PRE1) is executed, the value is
written to both the prescaler 1 latch and Prescaler 1.
When writing to Timer 1 (T1) is executed, the value is written to
both the timer 1 latch and Timer 1.
When reading from Prescaler 1 (PRE1) and Timer 1 (T1) is
executed, each count value is read out.
Timer 1 always operates in the timer mode.
Timer 2 always operates in the timer mode.
Prescaler 1 counts the clock which is f(XIN) divided by 16. Each
time the count clock is input, the contents of Prescaler 1 is
decremented by 1. When the contents of Prescaler 1 reach
“0016”, an underflow occurs at the next count clock, and the
prescaler 1 latch is reloaded into Prescaler 1 and count continues.
The division ratio of Prescaler 1 is 1/(n+1) provided that the
value of Prescaler 1 is n.
Timer 2 counts the clock selected by the timer 2 count source
selection bit. The contents of Timer 2 is decremented by 1 each
time the count clock is input. When the contents of Timer 2 reach
“0016”, an underflow occurs at the next count clock, and the
timer 2 primary latch or timer 2 secondary latch is alternately
reloaded into Timer 2 and count continues.
Timer 1 counts the underflow signal of Prescaler 1. The contents
of Timer 1 is decremented by 1 each time the count clock is
input.
When the contents of Timer 1 reach “0016”, an underflow occurs
at the next count clock, and the timer 1 latch is reloaded into
Timer 1 and count continues. The division ratio of Timer 1 is
1/(m+1) provided that the value of Timer 1 is m.
Timer 1 is stopped by setting “1” to the timer 1 count stop bit.
Rev.1.06 Mar 07, 2008 Page 26 of 59
REJ03B0140-0106
7545 Group
3. Timer 3
Timer 3 is an 8-bit timer and counts the clock selected by the
timer 3 count source selection bit. When Timer 3 underflows, the
timer 3 interrupt request bit is set to “1”.
b7
b0
Timer count source set register
(TCSS : address 002A16, initial value: 0016)
Timer 2 count source selection bits
b1 b0
Timer 3 has a timer latch to retain the reload value.
0
0
1
1
0 : f(XIN)/16
1 : f(XIN)/2
0 : f(XIN)/8
1 : f(XIN)/1
The value written to timer 3 (T3) while timer 3 is stopped is
transferred to the timer latch and the counter.
After the count of timer 3 (T3) starts, the value written to timer 3
is transferred only to the timer 3 latch. The value is not
transferred to the counter at write.
When timer underflows, the value of timer 3 latch is transferred
to the counter. (Since a count value of a timer is retained, the
written value becomes the count value of the timer after the next
underflow.)
Timer 3 count source selection bits
b3 b2
0
0
1
1
0 : f(XIN)/16
1 : f(XIN)/2
0 : f(XIN)/8
1 : Carrier wave output (CARRY)
Disable (return “0” when read)
When timer 3 (T3) is read, the count value of the timer is read.
When the timer 3 is read, the count value of timer 3 is read since
the count value of the timer 3 is retained until writing to timer 3
(T3) is performed after timer 3 is stopped.
Fig. 22 Structure of timer count source set register
b0
b7
Timer 1, 2, 3 control register
(TC123 : address 002B16, initial value: 0616)
Timer 3 always operates in the timer mode.
Timer 3 counts the clock selected by the timer 3 count source
selection bit. The contents of Timer 3 is decremented by 1 each
time the count clock is input.
The division ratio of Timer 3 is 1/(n+1) provided that the value
of Timer 3 is n.
Timer 3 is stopped by setting “1” to the timer 3 count stop bit.
Timer 2 and timer 3 are also used for the control timer of the
carrier wave control circuit.
Timer 1 count stop bit
0: Count start
1: Count stop
Timer 2 count stop bit
0: Count start
1: Count stop
Timer 3 count stop bit
0: Count start
1: Count stop
Disable (return “0” when read)
Fig. 23 Timer 1, 2, 3 control register
Rev.1.06 Mar 07, 2008 Page 27 of 59
REJ03B0140-0106
7545 Group
.
Data bus
Prescaler 1 latch (8)
Prescaler 1 (8)
Timer 1 latch (8)
Timer 1 interrupt request
f(XIN)/16
Timer 1(8)
Data bus
Timer 2 primary latch (8)
Timer 2 secondary latch (8)
Reload control
circuit
1/16
1/2
1/8
1/1
"00"
"01"
"10"
"11"
Timer 2 interrupt request
Timer 2(8)
Timer 2 count source selection bits
Carrier wave "H" interval expansion bit
"0"
T
"1"
Toggle flip flop
Q
Wave expansion function
R
Timer 2 count value reload bit
Data bus
Timer 3 latch (8)
Reload control
circuit
1/16
1/2
1/8
"00"
"01"
"10"
"11"
Timer 3 interrupt request
Timer 3(8)
Timer 3 count source selection bits
Carrier wave output trigger bit
"1"
"0"
T
Toggle flip flop
Carrier wave auto-output control bit
Q
Trigger stop
"1"
"0"
R
Software carrier wave output bit
Timer 3 count value reload bit
Carrier wave output valid bit
Carrier wave output level bit
"0"
"1"
P42/CARR
Fig. 24 Block diagram of timer 1, timer 2, timer 3 and carrier wave generating circuit
Rev.1.06 Mar 07, 2008 Page 28 of 59
REJ03B0140-0106
7545 Group
4. Carrier wave generating circuit
The carrier wave generating circuit is used to generate the control
wave of the remote control by using timer 2 and timer 3 (Figure
26).
5. 455 kHz carrier wave generating mode
The 455 kHz carrier wave generating mode is used to generate
artificially the 455 kHz carrier wave by auto-control of the
setting value of the timer, or the waveform expansion mode.
If “1” (valid) is set to the 455 kHz carrier wave generating mode
bit (bit 5), the values of the timer latch and the carrier wave “H”
duration expansion bit (bit 0) are automatically set.
Then, the nine waveforms of 2.250 µs wavelength and the seven
waveforms of 2.125 µs wavelength are generated periodically as
shown in Figure 30.
The carrier wave of 455.516 kHz can be pseudo generated since
the average wavelength for one period becomes 2.195 µs.
In order to use 455 kHz carrier wave generating mode, use the 4
MHz oscillator and select f(XIN)/1 for the timer 2 count source.
In order to use the carrier wave generating function by timer 2,
set “1” to the carrier wave output valid bit (bit 1 of the carrier
wave control register (address 2716)).
Carrier wave “H” duration is set to the timer 2 primary, and
carrier wave “L” duration is set to the timer 2 secondary. Timer 2
counts a primary latch and a secondary latch alternately, and
controls carrier wave “H” duration and the “L” duration (Figure
27).
The “H” duration of the carrier waveform can be expanded for a
half clock of timer 2 count source by setting “1” to the carrier
wave “H” duration bit (bit 0) (Figure 28).
Therefore, the frequency of the carrier wave can be set by the
resolution of 1/2 of the timer 2 count source.
b7
b0
Carrier wave control register
(CARCNT : address 002716, initial value: 0016)
Carrier wave “H” duration expansion bit
0: “H” duration expansion function invalid
1: “H” duration expansion function valid
For example, the carrier wave of the resolution of 125 ns (max.)
can be generated at f(XIN) = 4 MHz when f(XIN)/1 is selected for
the timer 2 count source.
Carrier wave output valid bit
In order to initialize the carrier waveform, write in the timer 2
primary after stopping the count of timer 2, and then, start the
count of timer 2 . The output of the carrier waveform is started
from a primary period.
0: Carrier wave generating function invalid
1: Carrier wave generating function valid
Software carrier wave output bit
0: Output invalid
1: Output valid
Output/stop of the carrier waveform can be controlled by
software or timer 3 (Figure 31 and Figure 32). The output of the
carrier wave is started from the P42/CARR pin when “1” is set to
the software carrier wave output bit (bit 2), and the output of the
carrier wave is stopped when “0” is written.
Carrier wave auto-output control bit
0: Auto-control by timer 3 invalid
1: Auto-control by timer 3 valid
Carrier wave output trigger bit
0: Carrier wave output trigger invalid
1: Carrier wave output trigger valid
455 kHz carrier wave generating mode bit
0: 455 kHz carrier wave generating mode
The auto-output of the carrier wave using timer 3 can be
performed by setting “1” to the carrier wave auto-output control
bit (bit 3) (Figure 29). Each time timer 3 underflow occurs, the
trigger signal which is used to turn the output of the carrier wave
on/off is generated.
invalid
1: 455 kHz carrier wave generating mode
valid
Carrier wave output level bit
0: Positive waveform
The trigger from timer 3 becomes valid by setting “1” to the
carrier wave output trigger bit (bit 4), and the output/stop of the
carrier wave from the P42/CARR pin is repeated each time timer
3 underflows. Timer 3 count continues without stopping though
the output/stop state of the carrier wave at that time is maintained
when “0” is written to the carrier wave auto-output control bit
(bit 3) while the output of the carrier wave by timer 3 is
controlled.
1: Inverted waveform
Disable (return “0” when read)
Fig. 25 Carrier wave control register
In order to initialize output/stop control of the carrier waveform,
write in the timer 3 after stopping the count of timer 3, and then,
start the count of timer 3. The output of the carrier waveform is
started from “waveform output valid period”.
Rev.1.06 Mar 07, 2008 Page 29 of 59
REJ03B0140-0106
7545 Group
Carrier waveform control by timer 2
Timer 2 count source
Timer 2 interrupt
04 03 02 01 00 05 04 03 02 01 00 04 03 02 01 00 05 04 03 02 01 00 04 03 02 01 00 05 04 03 02 01 00 04 03 02 01
Timer 2 count value
Primary
Secondary
Primary
Secondary
Primary
Secondary
Primary
Carrier waveform
Note:
The timing adjustment of the output waveform causes the gap between the timer count value and the output waveform,
and the output waveform changes in the reload cycle after the timer underflow.
Moreover, the timer interrupt occurs at the change point of the output waveform.
(The timing of the interrupt occurrence is behind a half cycle of the count source, compared with timer 1. )
P42/CARR pin output
Carrier waveform control by timer 3
Timer 3 count source
(carrier wave output
selected)
Timer 3 interrupt
Timer 3 count value
04 03 02 01 00
Count period
05
05 04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 05
Carrier waveform
Note:
The timing adjustment of the output waveform causes the gap between the timer count value and the output waveform,
and the output waveform changes in the reload cycle after the timer underflow.
Moreover, the timer interrupt occurs at the change point of the output waveform.
(The timing of the interrupt occurrence is behind a half cycle of the count source, compared with timer 1. )
Fig. 26 Operating waveform diagram of carrier wave generating circuit
Timer 2 count source
Timer 2 interrupt
04 03 02 01 00 05 04 03 02 01 00 05 04 03 02 01 00 04 03 02 01 00 05 04 03 02 01 00 04 03 02 01 00 05 04 03 02 01
Primary Secondary Primary Secondary Primary Secondary Primary
Timer 2 count value
Carrier waveform
Count value of primary side is changed
Writing to timer 2 primary
in this duration
Writing to timer 2 secondary
in this duration
Count value of secondary side is changed
Fig. 27 Control waveform diagram of carrier wave by timer 2
Timer 2 count source
Timer 2 interrupt
03
02
01
00
04
03
02
01
00
03
02
01
00
04
03
02
01
00
Timer 2 count value
Primary
Secondary
Primary
Secondary
Carrier waveform
Expansion duration for half-clock
Carrier wave “H” duration expansion = valid
Carrier wave “H” duration expansion = invalid
Fig. 28 Waveform diagram of carrier wave in “H” duration expansion mode
Rev.1.06 Mar 07, 2008 Page 30 of 59
REJ03B0140-0106
7545 Group
Timer 3 count source
(carrier wave output selected)
Timer 3 interrupt
06 05 04 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01 00 03 02 01
Count period
Timer 3 count value
P42/CARR pin output
Successive carrier waveform
is not generated in this duration.
Generating carrier waveform
or not is controlled by setting
carrier waveform output trigger bit.
Writing to timer 3
in this duration
Count value of next period
is changed
Carrier waveform output trigger bit
Fig. 29 Control waveform diagram of CARR output by timer 3
2.125 µs waveform duration (7 waveforms)
Waveform period in 455 kHz carrier waveform generating mode
2.250 µs X 9 waveforms + 2.125 µs X 7 waveforms
Carrier waveform
35.125 µs (16 waveforms), Average waveform = 2.195 µs (Frequency = 455.516 kHz)
Waveform length: 2.250 µs-waveform
Waveform length: 2.125 µs-waveform
Timer 2 count source
Carrier waveform
Timer 2 count source
Carrier waveform
5-clock
2.250 µs
4-clock
4.5-clock
4-clock
2.125 µs
Fig. 30 Waveform diagram in 455 kHz carrier wave generating mode
Rev.1.06 Mar 07, 2008 Page 31 of 59
REJ03B0140-0106
7545 Group
Start (initial state after reset)
X: Set it to “0” or “1” arbitrary.
1
6
7
b7
b0
b7
b0
0 0 0 0 0 1 1 X Timer 1, 2, 3 control register TC123 (2B16)
Set “1” to bit 1 and bit 2 to stop counting of timer 2 and timer 3.
0 0 0 0 1 1 X X Timer count source set register TCSS (2A16)
Select carrier waveform output for timer 3 count source by bit 2 and bit 3.
2
3
b7
b0
b7
b0
0 0 0 0 X X X X Timer count source set register TCSS (2A16)
0 0 0 0 0 0 0 X Timer 1, 2, 3 control register TC123 (2B16)
Set “0” to bit 1 and bit 2 to start counting of timer 2 and timer 3.
Set timer 2 count source to bit 0 and bit 1. Also, in order to initialize
carrier waveform circuit, be sure to select f(XIN)/16, f(XIN)/2 or f(XIN)/8
for timer 3 count source.
Do not select carrier waveform output (b3b2=112) for timer 3 count source.
Waveform output of remote-control
8
b7
b0
0 X X X 1 0 1 X Carrier wave control register, CARCNT (2716)
b7
b0
During waveform output of remote-control, whether to output waveform or not
can be controlled by “bit 4: carrier waveform output trigger bit”.
(Refer to Figure below.)
0 X X X 1 0 1 X Carrier wave control register, CARCNT (2716)
Set carrier wave control register.
bit 0: Set whether to expand waveform.
bit 1: Select “1: Carrier waveform generating function is valid”
bit 2: Select “0: Software output is invalid”
bit 3: Select “1: auto-control by timer 3 is valid.
bit 4: Select whether carrier waveform output trigger is valid or invalid.
bit 5: Select whether 455 kHz carrier wave generating mode is valid or invalid.
bit 6: Set output level of waveform.
9
b7
b0
0 X X 0 1 0 1 X Carrier wave control register, CARCNT (2716)
When waveform output is stopped, set “0” to
“bit 4: Carrier waveform output trigger bit”
while carrier waveform output is set to be invalid.
bit 7: Set this bit to “0”.
4
10
b7
b0
b7
b0
X X X X X X X X Timer 2 primary T2P (2C16)
0 0 0 0 0 1 1 X Timer 1, 2, 3 control register TC123 (2B16)
Set “1” to bit 1 and bit 2 to stop counting of timer 2 and timer 3.
b7
b0
X X X X X X X X Timer 2 secondary T2S (2D16)
Set carrier wave “H”, “L” duration to timer 2 primary and timer 2 secondary,
respectively.(when 455 kHz carrier waveform generating mode is used,
this setting is not necessary.)
11
12
When the carrier wave output circuit operation is started again,
execute the setting from the processing No.2.
5
b7
b0
b7
b0
X X X X X X X X Timer 3 T3 (2E16)
0 X X 0 0 0 0 X Carrier wave control register, CARCNT (2716)
In order to change the carrier wave control from the auto-control by timer 3
to software carrier wave output, initialize the carrier wave circuit
by setting “0” to “bit 1: carrier wave output valid bit”.
Set valid period/invalid period of carrier waveform output to timer 3.
Waveform output timing of remote-control waveform by carrier waveform output trigger bit
Carrier waveform
(Timer 2 output)
Timer 3 count value
Timer 3 underflow
04 03 02 01 00 04 03 02 01 00 04 03 02 01 00 04 03 02 01 00 04 03 02 01 00 04 03 02 01 00 04 03 02 01 00
Carrier wave output trigger bit
Output valid
Output invalid
Trigger invalid
Output valid
Trigger invalid (Successive output valid duration)
(Successive output invalid duration)
P42/CARR pin output
Fig. 31 Setting of carrier wave auto-control by timer 3
Rev.1.06 Mar 07, 2008 Page 32 of 59
REJ03B0140-0106
7545 Group
X: Set it to “0” or “1” arbitrary.
Start (initial state after reset)
1
2
5
b7
b0
b7
b0
Timer 1, 2, 3 control register TC123 (2B16)
0 0 0 0 0 X 1 X
0 0 0 0 0 X 0 X Timer 1, 2, 3 control register TC123 (2B16)
Set “0” to bit 1 to start counting of timer 2.
Set “1” to bit 1 to stop counting of timer 2.
Waveform output of remote-control
6
b7
b0
b7
b0
0 0 0 0 X X X X Timer count source set register TCSS (2A16)
0 X X 0 0 X 1 X Carrier wave control register, CARCNT (2716)
Set timer 2 count source to bit 0 and bit 1. Also, in order to initialize
carrier waveform circuit, be sure to select f(XIN)/16, f(XIN)/2 or f(XIN)/8
for timer 3 count source.
Generating waveform or not can be controlled by
bit 2: Software carrier waveform output bit
Do not select carrier waveform output (b3b2=112) for timer 3 count source.
7
8
b7
b0
3
b7
b0
0 X X 0 0 0 1 X Carrier wave control register, CARCNT (2716)
0 X X 0 0 0 1 X Carrier wave control register, CARCNT (2716)
In order to stop carrier waveform,
set bit 2: Software carrier waveform output bit to “0: Output invalid”.
Set carrier wave control register.
bit 0: Set whether to expand waveform.
bit 1: Select “1: Carrier waveform generating function is valid”
bit 2: Select “0: Software output is invalid”
bit 3: Select “0: auto-control by timer 3 is invalid.
bit 4: Select “0: carrier waveform output trigger is invalid”
bit 5: Select whether 455 kHz carrier waveform generating mode is valid or invalid.
bit 6: Set output level of waveform.
b7
b0
0 0 0 0 0 X 1 X Timer 1, 2, 3 control register TC123 (2B16)
Set “1” to bit 1 to stop counting of timer 2.
bit 7: Set this bit to “0”.
9
When the carrier wave output circuit operation is started again,
execute the setting from the processing No.4 .
4
b7
b0
X X X X X X X X Timer 2 primary T2P (2C16)
b7
b0
X X X X X X X X Timer 2 secondary T2S (2D16)
10
b7
b0
0 X X 0 0 0 0 X Carrier wave control register, CARCNT (2716)
Set carrier wave “H”, “L” duration to timer 2 primary and timer 2 secondary, respectively.
(when 455 kHz carrier waveform generating mode is used,
this setting is not necessary.)
In order to change the carrier wave control from the auto-control by timer 3
to software carrier wave output, initialize the carrier wave circuit
by setting “0” to “bit 1: carrier wave output valid bit”.
Waveform output timing of remote-control waveform by software carrier waveform output bit
Carrier waveform
(Timer 2 output)
Software carrier wave output bit
P42/CARR pin output
Fig. 32 Setting of carrier wave control by software
Rev.1.06 Mar 07, 2008 Page 33 of 59
REJ03B0140-0106
7545 Group
Watchdog Timer
3. Operation of watchdog timer
selection bit
H count source
The watchdog timer gives a means for returning to a reset status
when the program fails to run on its normal loop due to a
runaway.
The watchdog timer consists of an 8-bit watchdog timer H and an
8-bit watchdog timer L, being a 16-bit counter.
A watchdog timer H count source can be selected by bit 7 of the
watchdog timer control register (address 003916). When this bit
is “0”, the count source becomes a watchdog timer L underflow
signal. The detection time is 262.144 ms at f(XIN) = 4 MHz.
When this bit is “1”, the count source becomes f(XIN)/16. In this
case, the detection time is 1024 µs at f(XIN) = 4 MHz.
This bit is cleared to “0” after reset.
1. Standard operation of watchdog timer
The watchdog timer is valid by setting “0” to bit 0 of the
Function set ROM data (address FFDA16) of the built-in
QzROM.
When an internal clock is supplied after waiting the oscillation
stabilizing time by timer 1 after system is released from reset, the
watchdog timer starts operation. When the watchdog timer H
underflows, an internal reset occurs. Accordingly, it is
programmed that the watchdog timer control register (address
003916) can be set before an underflow occurs.
4. STP instruction function selection bit
The function of the STP instruction can be selected by the bit 1 in
FSROM. This bit cannot be used for rewriting by executing the
STP instruction.
• When this bit is set to “0”, internal reset occurs by executing
the STP instruction.
• When this bit is set to “1”, stop mode is entered by executing
the STP instruction.
When the watchdog timer control register (address 003916) is
read, the values of the high-order 6-bit of the watchdog timer H
and watchdog timer H count source selection bit are read.
<Notes on Watchdog Timer>
1. The watchdog timer is operating during the wait mode.
Write data to the watchdog timer control register to prevent
timer underflow.
2. The watchdog timer stops during the stop mode. However,
the watchdog timer is running during the oscillation stabi-
lizing time after the STP instruction is released. In order to
avoid the underflow of the watchdog timer, the watchdog
timer H count source selection bit (bit 7 of watchdog timer
control register (address 003916)) must be set to “0” just
before executing the STP instruction.
2. Initial value of watchdog timer
By a reset or writing to the watchdog timer control register
(address 003916), the watchdog timer H is set to “FF16” and the
watchdog timer L is set to “FF16”.
b7
b0
Watchdog timer control register
(WDTCON: address 003916, initial value: 3F16)
Watchdog timer H (read only for high-order 6-bit)
Disable (returns “0” when read)
Watchdog timer H count source selection bit
0 : Watchdog timer L underflow
1 : f(XIN)/16
Fig. 33 Structure of watchdog timer control register
Rev.1.06 Mar 07, 2008 Page 34 of 59
REJ03B0140-0106
7545 Group
f(XIN)
RESET
f(XIN) 16384 pulses
Internal reset signal
CPU clock φ
SYNC
Address
?
?
?
?
FFFC
FFFD
ADH, ADL
ADH
Data
?
?
?
?
ADL
Fig. 34 Timing diagram at reset
Write "FF16" to
Write "FF16" to
the watchdog timer
control register
the watchdog timer
control register
"0"
Watchdog timer L(8)
XIN
Watchdog timer H(8)
1/16
"1"
Watchdog timer H count source selection bit
Count start
(Watchdog timer disable bit
(bit 0 of FSROM)
Voltage drop detection circuit
Power-on reset circuit
STP instuction function selection bit
STP instruction
Reset circuit
Internal reset
RESET
Fig. 35 Block diagram of watchdog timer and reset circuit
Rev.1.06 Mar 07, 2008 Page 35 of 59
REJ03B0140-0106
7545 Group
Power-on Reset Circuit
Reset can be automatically performed at power on (power-on
reset) by the built-in power-on reset circuit.
1 ms or less
VCC (Note)
In order to use the power-on reset circuit effectively, the time for
the supply voltage to rise from 0 V to 1.8 V must be set to 1 ms
or less.
Power-on reset
circuit output
Voltage Drop Detection Circuit
The built-in voltage drop detection circuit is designed to detect a
drop in voltage and to reset the microcomputer if the supply
voltage drops below a set value (Typ.1.75 V). When the STP
instruction is executed, the voltage drop detection circuit is
stopped, so that the power dissipation is reduced.
Internal reset signal
The operation of the voltage drop detection circuit is disabled by
setting “0” to bit 4 of the Function set ROM data (address
FFDA16) of the built-in QzROM.
Note: The emulator MCU “M37545RLSS” is not equipped with
the voltage drop detection circuit.
Reset
state
Power-on
Reset released
RESETOUT Output
RESETOUT function is used to output “L” level from RESET
pin when system reset occurs by the power-on reset, the voltage
drop detection circuit or the watchdog timer. Also, the built-in
pull-up transistor is connected to the RESET pin.
Note: Keep the value of supply voltage to the minimum value
or more of the recommended operating conditions.
Fig. 36 Operation waveform diagram of power-on reset
circuit
Vcc
Reset voltage (Typ:1.75V)
Internal reset signal
Microcomputer starts operation
after f(XIN) clock is counted 16384 times.
Note: The voltage drop detection circuit does not have
the hysteresis characteristics in the detected voltage.
Fig. 37 Operation waveform diagram of voltage drop detection circuit
<Note on Voltage Drop Detection Circuit>
The voltage drop detection circuit detection voltage of this
Vcc
product is set up lower than the minimum value of the supply
Recommended
operating condition
min. value
voltage of the recommended operating conditions.
When the supply voltage of a microcomputer falls below to the
minimum value of recommended operating conditions and
regoes up (ex. battery exchange of an application product),
depending on the capacity value of the bypass capacitor added to
the power supply pin, the following case may cause program
failure ;
VDET
No reset
Program failure may occur.
Normal operation
Vcc
supply voltage does not fall below to VDET, and its voltage re-
goes up with no reset.
In such a case, please design a system which supply voltage is
once reduced below to VDET and re-goes up after that.
Recommended
operating condition
min. value
VDET
Reset
Fig. 38 VCC and VDET
Rev.1.06 Mar 07, 2008 Page 36 of 59
REJ03B0140-0106
7545 Group
MISRG
The 7545 Group has two power source supply pins. One is the
VCC pin, and the other is the VDDR pin only for RAM2. A
potential difference between VCC and VDDR may cause some
failures in reading from RAM2 or writing to RAM2.
Accordingly, if there is a potential difference between VCC and
VDDR at power-on, confirm the bit 1 (RAM2 status flag) of
MISRG (address 003816) before reading from RAM2 or writing
to RAM2.
b7
b0
MISRG(address 003816, initial value: 0X16)
Oscillation stabilization time set bit after
release of the STP instruction
0: Set “0316” in timer1, and “FF16”
in prescaler 1 automatically
1: Not set automatically
RAM2 status flag
0: RW disabled
1: RW enabled
Reserved bits
(Do not write “1” to these bits)
Fig. 39 Structure of MISRG
Register contents
Address
000116
0016
(1) Port P0 direction register (P0D)
(2) Port P1 direction register (P1D)
(3) Port P2 direction register (P2D)
(4) Port P3 direction register (P3D)
(5) Port P4 direction register (P4D)
(6) Pull-up control register (PULL)
(7) Port output mode switch register (PMOD)
(8) Key-on wakeup pin selection register (KEYSEL)
(9) Key-on wakeup edge selection register (KEYEDGE)
(10)Carrier wave control register (CARCNT)
(11)Prescaler 1 (PRE1)
X
X
X
X
X
X
X
X
0
0
0
0
000316
000516
000716
000916
001616
001716
001816
001916
002716
002816
002916
002A16
002B16
002C16
002D16
002E16
003816
003916
003A16
003B16
003C16
003E16
(PS)
0016
0016
X
X
X
0
0016
0016
0016
0016
0016
FF16
0316
0016
0616
FF16
FF16
FF16
(12)Timer 1 (T1)
(13)Timer count source set register (TCSS)
(14)Timer 1, 2, 3 control register (TC123)
(15)Timer 2 primary (T2P)
(16)(Timer 2 secondary (T2S)
17) Timer 3 (T3)
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
0
X
1
0
0
0
1
0
0
(18)MISRG
1
0
0
(19)Watchdog timer control register (WDTCON)
(20)Interrupt edge selection register (INTEDGE)
(21)CPU mode register (CPUM)
(22)Interrupt request register 1 (IREQ1)
(23)Interrupt control register 1 (ICON1)
(24)Processor status register
0016
0016
X
X
X
X
X
1
X
X
(PCH)
Contents of address FFFD16
Contents of address FFFC16
(25)Program counter
(PCL)
X : Undefined
The content of other registers and RAM are undefined when the microcomputer is reset.
The initial values must be surely set before you use it.
Fig. 40 Internal status of microcomputer at reset
Rev.1.06 Mar 07, 2008 Page 37 of 59
REJ03B0140-0106
7545 Group
CLOCK GENERATING CIRCUIT
An oscillation circuit can be formed by connecting a resonator
between XIN and XOUT.
Use the circuit constants in accordance with the resonator
manufacturer's recommended values.
M37545
No external resistor is needed between XIN and XOUT since a
feed-back resistor exists on-chip. (An external feed-back resistor
may be needed depending on conditions.)
XIN
XOUT
<Ceramic resonator/quartz-crystal oscillator>
When the ceramic resonator/quartz-crystal oscillator is used for
the main clock, connect the ceramic resonator/quartz-crystal
oscillator and the external circuit to pins XIN and XOUT at the
shortest distance. A feedback resistor is built in between pins XIN
and XOUT. (An external feed-back resistor may be needed
depending on conditions.)
Rd
COUT
CIN
Oscillation Control
1. Stop mode
Note: Insert a damping resistor if required.
When the STP instruction is executed, the internal clock φ stops
at an “H” level and the XIN oscillator stops. At this time, timer 1
is set to “0316” and prescaler 1 is set to “FF16”when the
oscillation stabilization time set bit after release of the STP
instruction is “0”. On the other hand, timer 1 and prescaler 1 are
not set when the above bit is “1”. Accordingly, set the wait time
fit for the oscillation stabilization time of the oscillator to be
used. When an external interrupt is accepted, oscillation is
restarted but the internal clock φ remains at “H” until timer 1
underflows. As soon as timer 1 underflows, the internal clock φ
is supplied. This is because when a ceramic resonator is used,
some time is required until a start of oscillation.
The resistance will vary depending on the oscillator and the
oscillation drive capacity setting.
Use the value recommended by the maker of the oscillator.
Also, if the oscillator manufacturer’s data sheet specifies
that a feedback resistor be added external to the chip
though a feedback resistor exists on-chip, insert a feedback
resistor between XIN and XOUT following the instruction.
Fig. 41 External circuit of ceramic resonator/quartz-crystal
oscillator
In the stop mode, the voltage drop detection circuit is stopped, so
that the power dissipation is reduced.
b7
b0
CPU mode register
(CPUM: address 003B16, initial value: 8016)
2. Wait mode
If the WIT instruction is executed, the internal clock φ stops at an
“H” level, but the oscillator does not stop. The internal clock
restarts if a reset occurs or when an interrupt is accepted. Since
the oscillator does not stop, normal operation can be started
immediately after the clock is restarted. To ensure that an
interrupt will be accepted to release the STP or WIT state, the
corresponding interrupt enable bit must be set to “1” before the
STP or WIT instruction is executed.
Processor mode bits (Note)
b1 b0
0
0
1
1
0
1
0
1
Single-chip mode
Not available
Stack page selection bit
0
1
: 0 page
: 1 page
Not used (returns “0” when read)
Clock division ratio selection bits
b7 b6
0
0
1
1
0
1
0
1
:
:
:
:
Not available
Not available
f(φ) = f(XIN)/4
Not available
Note : The bit can be rewritten only once after releasing reset.
After rewriting, it is disabled to write any data to this bit.
However, by reset the bit is initialized and can be rewritten, again.
It is not disabled to write any data to this bit for emulator MCU “M37545RLSS.”
Fig. 42 Structure of CPU mode register
Rev.1.06 Mar 07, 2008 Page 38 of 59
REJ03B0140-0106
7545 Group
XOUT
XIN
Rf
Timer 1
Prescaler 1
1/2
1/4
1/2
Timing φ
(Internal clock)
Q
S
S
Q
Q S
R
Reset
WIT
instruction
STP instruction
R
R
STP instruction
Reset
Interrupt disable flag I
Interrupt request
Note:
Although a feed-back resistor exists on-chip, an external feed-back resistor
may be needed depending on conditions.
Fig. 43 Block diagram of system clock generating circuit (for ceramic resonator)
Rev.1.06 Mar 07, 2008 Page 39 of 59
REJ03B0140-0106
7545 Group
QzROM Writing Mode
In the QzROM writing mode, the user ROM area can be
rewritten while the microcomputer is mounted on-board by using
a serial programmer which is applicable for this microcomputer.
Table 10 lists the pin description (QzROM writing mode) and
Figure 44 and Figure 45 show the pin connections.
Refer to Figure 46 and Figure 47 for examples of a connection
with a serial programmer.
Contact the manufacturer of your serial programmer for serial
programmer. Refer to the user’s manual of your serial
programmer for details on how to use it.
Table 10 Pin description (QzROM writing mode)
Pin
Name
I/O
Function
VCC, VSS, VDDR Power source
Input
• Apply 1.8 to 3.6 V to VCC, and 0 V to VSS and VDDR.
• Reset input pin for active “L”. Reset occurs when RESET pin is hold at
an “L”level for 16 cycles or more of XIN.
RESET
Reset input
Input
XIN
Clock input
Clock output
I/O port
Input
Output
I/O
• Set the same termination as the single-chip mode.
XOUT
P00−P05
P21−P27
P30−P37
P42
• Input “H” or “L” level signal or leave the pin open.
CNVSS
P07
VPP input
Input
I/O
• QzROM programmable power source pin.
• Serial data I/O pin.
ESDA input/output
ESCLK input
ESPGMB input
P20
Input
Input
• Serial clock input pin.
P06
• Read/program pulse input pin.
Rev.1.06 Mar 07, 2008 Page 40 of 59
REJ03B0140-0106
7545 Group
24 23 22 21 20 19 18 17
25
26
27
28
29
30
31
32
16
15
14
13
12
11
10
9
P34
P33
P05/KEY5
P06/KEY6
P07/KEY7
ESPGMB
ESCLK
ESDA
P32
P31
P30
VSS
XOUT
XIN
P20(LED0)/INT0
P21(LED1)/INT1
P22(LED2)
M37545Gx-XXXGP
M37545GxGP
*
P23(LED3)
P24(LED4)
1
2
3
4
7
8
5
6
VCC
VPP
RESET
VSS
: Connect to oscillation circuit
: QzROM pin
*
Package type: PLQP0032GB-A (32P6U-A)
Fig. 44 Pin connection diagram (M37545Gx-XXXGP)
1
2
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
P20(LED0)/INT0
P07/KEY7
P21(LED1)/INT1
P22(LED2)
P23(LED3)
P24(LED4)
P25(LED5)
P26(LED6)
P27(LED7)
P42/CARR
ESCLK
ESDA
3
P06/KEY6
P05/KEY5
P04/KEY4
P03/KEY3
P02/KEY2
P01/KEY1
P37
P00/KEY0
P36
P35
ESPGMB
4
5
6
7
8
9
RESET
RESET
10
11
12
13
14
15
16
VSS
VDDR
CNVSS
VCC
VPP
VCC
P34
P33
P32
P31
XIN
*
XOUT
VSS
P30
: Connect to oscillation circuit
: QzROM pin
*
Package type: PLSP0032JB-A
Fig. 45 Pin connection diagram (M37545GxKP)
Rev.1.06 Mar 07, 2008 Page 41 of 59
REJ03B0140-0106
7545 Group
7545 Group
Vcc
Vcc
CNVSS
4.7 kΩ
4.7 kΩ
P07 (ESDA)
P20 (ESCLK)
P06 (ESPGMB)
RESET
circuit
*1
13
11
9
14
12
10
8
RESET
Vss
7
5
6
3
4
1
2
XIN
XOUT
Set the same termination as the
single-chip mode.
*1: Open-collector buffer
Note: For the programming circuit, the wiring capacity of each signal pin must not exceed 47 pF.
Fig. 46 When using E8 programmer, connection example
Rev.1.06 Mar 07, 2008 Page 42 of 59
REJ03B0140-0106
7545 Group
7545 Group
T_VDD
T_VPP
Vcc
CNVSS
4.7 kΩ
T_TXD
T_RXD
4.7 kΩ
P07 (ESDA)
T_SCLK
T_BUSY
P20 (ESCLK)
N.C.
T_PGM/OE/MD
RESET circuit
P06 (ESPGMB)
RESET
Vss
T_RESET
GND
XIN
XOUT
Set the same termination as the
single-chip mode.
Note: For the programming circuit, the wiring capacity of each signal pin must not exceed 47 pF.
Fig. 47 When using programmer of Suisei Electronics System Co., LTD, connection example
Rev.1.06 Mar 07, 2008 Page 43 of 59
REJ03B0140-0106
7545 Group
NOTES ON PROGRAMMING
Processor Status Register
NOTES ON HARDWARE
Handling of Power Source Pin
The contents of the processor status register (PS) after reset are
undefined except for the interrupt disable flag I which is “1”.
After reset, initialize flags which affect program execution. In
particular, it is essential to initialize the T flag and the D flag
because of their effect on calculations.
In order to avoid a latch-up occurrence, connect a capacitor
suitable for high frequencies as bypass capacitor between power
source pin (VCC pin) and GND pin (VSS pin). Besides, connect
the capacitor to as close as possible. For bypass capacitor which
should not be located too far from the pins to be connected, a
ceramic capacitor of 0.01 µF to 0.1 µF is recommended.
Interrupts
The contents of the interrupt request bit do not change even if the
BBC or BBS instruction is executed immediately after they are
changed by program because this instruction is executed for the
previous contents. For executing the instruction for the changed
contents, execute one instruction before executing the BBC or
BBS instruction.
Decimal Calculations
• For calculations in decimal notation, set the decimal mode flag
D to “1”, then execute the ADC instruction or SBC instruction.
In this case, execute SEC instruction, CLC instruction or CLD
instruction after executing one instruction before the ADC
instruction or SBC instruction.
• In the decimal mode, the values of the N (negative), V
(overflow) and Z (zero) flags are invalid.
Ports
The values of the port direction registers cannot be read.
That is, it is impossible to use the LDA instruction, memory
operation instruction when the T flag is “1”, addressing mode
using direction register values as qualifiers, and bit test
instructions such as BBC and BBS.
It is also impossible to use bit operation instructions such as CLB
and SEB and read/modify/write instructions of direction registers
for calculations such as ROR.
For setting direction registers, use the LDM instruction, STA
instruction, etc.
Instruction Execution Timing
The instruction execution time can be obtained by multiplying
the frequency of the internal clock φ by the number of cycles
mentioned in the machine-language instruction table.
The frequency of the internal clock φ is 4 times the XIN cycle.
CPU Mode Register
The processor mode bits can be rewritten only once after
releasing reset. However, after rewriting it is disable to write any
value to the bit. (Emulator MCU is excluded.)
Rev.1.06 Mar 07, 2008 Page 44 of 59
REJ03B0140-0106
7545 Group
NOTES ON USE
(3) Wiring for clock input/output pins
• Make the length of wiring which is connected to clock I/O pins
as short as possible.
• Make the length of wiring (within 20 mm) across the
grounding lead of a capacitor which is connected to an
oscillator and the VSS pin of a microcomputer as short as
possible.
Countermeasures Against Noise
1. Shortest wiring length
(1) Package
Select the smallest possible package to make the total wiring
length short.
<Reason>
• Separate the VSS pattern only for oscillation from other VSS
patterns.
<Reason>
If noise enters clock I/O pins, clock waveforms may be
deformed. This may cause a program failure or program
runaway. Also, if a potential difference is caused by the noise
between the VSS level of a microcomputer and the VSS level of
an oscillator, the correct clock will not be input in the
microcomputer.
The wiring length depends on a microcomputer package. Use of
a small package, for example QFP and not DIP, makes the total
wiring length short to reduce influence of noise.
DIP
SDIP
SOP
Noise
QFP
Fig. 48 Selection of packages
XIN
XIN
XOUT
VSS
XOUT
VSS
(2) Wiring for RESET pin
Make the length of wiring which is connected to the RESET pin
as short as possible. Especially, connect a capacitor across the
RESET pin and the VSS pin with the shortest possible wiring
(within 20mm).
N.G.
O.K.
Fig. 50 Wiring for clock I/O pins
<Reason>
The width of a pulse input into the RESET pin is determined by
the timing necessary conditions. If noise having a shorter pulse
width than the standard is input to the RESET pin, the reset is
released before the internal state of the microcomputer is
completely initialized. This may cause a program runaway.
(4) Wiring to CNVSS pin
Connect CNVSS pin to a GND pattern at the shortest distance.
The GND pattern is required to be as close as possible to the
GND supplied to VSS.
In order to improve the noise reduction, to connect a 5 kΩ
resistor serially to the CNVSS pin - GND line may be valid.
As well as the above-mentioned, in this case, connect to a GND
pattern at the shortest distance. The GND pattern is required to
be as close as possible to the GND supplied to VSS.
<Reason>
The CNVSS pin of the QzROM is the power source input pin for
the built-in QzROM. When programming in the built-in
QzROM, the impedance of the CNVSS pin is low to allow the
electric current for writing flow into the QzROM. Because of
this, noise can enter easily. If noise enters the CNVSS pin,
abnormal instruction codes or data are read from the built-in
QzROM, which may cause a program runaway.
Noise
Reset
RESET
circuit
VSS
VSS
N.G.
Reset
circuit
RESET
VSS
(Note)
(Note)
The shortest
VSS
CNVSS/VPP
VSS
About 5kΩ
O.K.
Fig. 49 Wiring for the RESET pin
The shortest
Note: This indicates pin.
Fig. 51 Wiring for the VPP pin of the QzPROM
Rev.1.06 Mar 07, 2008 Page 45 of 59
REJ03B0140-0106
7545 Group
2. Connection of bypass capacitor
(2) Connection of bypass capacitor across VSS line
and VDDR line
(1) Connection of bypass capacitor across VSS line
and VCC line
Connect an approximately 0.1 µF bypass capacitor across the
VSS line and the VDDR line as follows:
• Connect a bypass capacitor across the VSS pin and the VDDR
pin at equal length.
• Connect a bypass capacitor across the VSS pin and the VDDR
pin with the shortest possible wiring.
• Use lines with a larger diameter than other signal lines for VSS
line and VDDR line.
• Connect the power source wiring via a bypass capacitor to the
VSS pin and the VDDR pin.
Connect an approximately 0.1 µF bypass capacitor across the
VSS line and the VCC line as follows:
• Connect a bypass capacitor across the VSS pin and the VCC pin
at equal length.
• Connect a bypass capacitor across the VSS pin and the VCC pin
with the shortest possible wiring.
• Use lines with a larger diameter than other signal lines for VSS
line and VCC line.
• Connect the power source wiring via a bypass capacitor to the
VSS pin and the VCC pin.
VDDR
VDDR
VCC
VCC
VSS
VSS
VSS
VSS
N.G.
O.K.
Fig. 53 Bypass capacitor across the VSS line and the VDDR
line
N.G.
O.K.
Fig. 52 Bypass capacitor across the VSS line and the VCC
line
Rev.1.06 Mar 07, 2008 Page 46 of 59
REJ03B0140-0106
7545 Group
3. Oscillator concerns
(3) Oscillator protection using VSS pattern
So that the product obtains the stabilized operation clock on the
user system and its condition, contact the resonator manufacturer
and select the resonator and oscillation circuit constants.
Be careful especially when range of voltage and temperature is
wide.
As for a two-sided printed circuit board, print a VSS pattern on
the underside (soldering side) of the position (on the component
side) where an oscillator is mounted.
Connect the VSS pattern to the microcomputer VSS pin with the
shortest possible wiring. Besides, separate this VSS pattern from
other VSS patterns.
Take care to prevent an oscillator that generates clocks for a
microcomputer operation from being affected by other signals.
(1) Keeping oscillator away from large current signal
lines
An example of VSS patterns on the
underside of a printed circuit board
Install a microcomputer (and especially an oscillator) as far as
possible from signal lines where a current larger than the
tolerance of current value flows.
Oscillator wiring
pattern example
<Reason>
In the system using a microcomputer, there are signal lines for
controlling motors, LEDs, and thermal heads or others. When a
large current flows through those signal lines, strong noise
occurs because of mutual inductance.
XIN
XOUT
VSS
(2) Installing oscillator away from signal lines where
potential levels change frequently
Separate the VSS line for oscillation from other VSS lines
Install an oscillator and a connecting pattern of an oscillator
away from signal lines where potential levels change frequently.
Also, do not cross such signal lines over the clock lines or the
signal lines which are sensitive to noise.
Fig. 55 VSS pattern on the underside of an oscillator
<Reason>
Signal lines where potential levels change frequently (such as the
CARR pin signal line) may affect other lines at signal rising edge
or falling edge. If such lines cross over a clock line, clock
waveforms may be deformed, which causes a microcomputer
failure or a program runaway.
1. Keeping oscillator away from large current signal lines
Microcomputer
Mutual inductance
M
Large
XIN
current
XOUT
VSS
GND
2. Installing oscillator away from signal lines where potential
levels change frequently
N.G.
CARR
Do not cross
XIN
XOUT
VSS
Fig. 54 Wiring for a large current signal line/Writing of
signal lines where potential levels change
frequently
Rev.1.06 Mar 07, 2008 Page 47 of 59
REJ03B0140-0106
7545 Group
4. Setup for I/O ports
Setup I/O ports using hardware and software as follows:
<The main routine>
• Assigns a single byte of RAM to a software watchdog timer
(SWDT) and writes the initial value N in the SWDT once at
each execution of the main routine. The initial value N should
satisfy the following condition:
<Hardware>
• Connect a resistor of 100 Ω or more to an I/O port in series.
N+1 ≥ (Counts of interrupt processing executed in each main
routine)
As the main routine execution cycle may change because of an
interrupt processing or others, the initial value N should have a
margin.
• Watches the operation of the interrupt processing routine by
comparing the SWDT contents with counts of interrupt
processing after the initial value N has been set.
• Detects that the interrupt processing routine has failed and
determines to branch to the program initialization routine for
recovery processing in the following case:
<Software>
• As for an input port, read data several times by a program for
checking whether input levels are equal or not.
• As for an output port, since the output data may reverse
because of noise, rewrite data to its port latch at fixed periods.
• Rewrite data to direction registers and pull-up control registers
at fixed periods.
Noise
If the SWDT contents do not change after interrupt processing.
O.K.
<The interrupt processing routine>
• Decrements the SWDT contents by 1 at each interrupt
Data bus
processing.
Noise
Direction register
• Determines that the main routine operates normally when the
SWDT contents are reset to the initial value N at almost fixed
cycles (at the fixed interrupt processing count).
• Detects that the main routine has failed and determines to
branch to the program initialization routine for recovery
processing in the following case:
N.G.
Port latch
I/O port pins
If the SWDT contents are not initialized to the initial value N
but continued to decrement and if they reach 0 or less.
Fig. 56 Setup for I/O ports
5. Providing of watchdog timer function by software
If a microcomputer runs away because of noise or others, it can
be detected by a software watchdog timer and the microcomputer
can be reset to normal operation. This is equal to or more
effective than program runaway detection by a hardware
watchdog timer.
Interrupt processing routine
Main routine
(SWDT) ← (SWDT)1
(SWDT)← N
CLI
The following shows an example of a watchdog timer provided
by software.
Interrupt processing
In the following example, to reset a microcomputer to normal
operation, the main routine detects errors of the interrupt
processing routine and the interrupt processing routine detects
errors of the main routine.
This example assumes that interrupt processing is repeated
multiple times in a single main routine processing.
Main processing
>0
(SWDT)
≤0?
RTI
≠N
(SWDT)
=N?
≤0
Return
N
Interrupt processing
routine errors
Main routine
errors
Fig. 57 Watchdog timer by software
Rev.1.06 Mar 07, 2008 Page 48 of 59
REJ03B0140-0106
7545 Group
ELECTRICAL CHARACTERISTICS (QzROM version)
Absolute Maximum Ratings
Table 11 Absolute maximum ratings
Symbol
Parameter
Power source voltage VCC, VDDR
Conditions
Ratings
−0.3 to 5.0
Unit
V
VCC
All voltages are
based on VSS.
When an input
voltage is measured,
output transistors are
cut off.
VI
Input voltage
P00−P07, P10−P11, P20−P27, P30−P37, P40−P42
−0.3 to VCC + 0.3
V
−0.3 to VCC + 0.3
V
VI
Input voltage RESET, XIN
Input voltage CNVSS
VI
−0.3 to VCC + 0.3
−0.3 to VCC + 0.3
V
V
VO
Output voltage
P00−P07, P10−P11, P20−P27, P30−P37, P40−P42, XOUT, RESET
Pd
Power dissipation
Ta = 25°C
200
mW
°C
Topr
Tstg
Operating temperature
Storage temperature
−20 to 85
−40 to 125
°C
Rev.1.06 Mar 07, 2008 Page 49 of 59
REJ03B0140-0106
7545 Group
Recommended Operating Conditions
Table 12 Recommended operating conditions (1) (VCC = 1.8 to 3.6 V, Ta = −20 to 85 °C, unless otherwise noted)
Limits
Symbol
Parameter
Unit
Min.
1.8
Typ.
3.0
0
Max.
3.6
VCC
Power source voltage (At 4MHz)
Power source voltage
V
V
V
VSS
VIH
0.7VCC
VCC
“H” input voltage P00−P07, P10−P11, P20−P27, P30−P37, P40−P42
VIH
VIL
0.8VCC
0
VCC
V
V
“H” input voltage RESET, XIN
0.3VCC
“L” input voltage P00−P07, P10−P11, P20−P27, P30−P37, P40−P42
VIL
0
0
0.2VCC
0.16VCC
−80
V
V
“L” input voltage RESET, CNVSS
“L” input voltage XIN
“H” total peak output current (1)
VIL
ΣIOH(peak)
mA
P00−P07, P10−P11, P20−P27, P30−P37, P40−P42
“L” total peak output current (1)
P00−P07, P10−P11, P30−P37
ΣIOL(peak)
ΣIOL(peak)
ΣIOH(avg)
ΣIOL(avg)
ΣIOL(avg)
IOH(peak)
IOH(peak)
IOL(peak)
IOL(peak)
IOH(avg)
IOH(avg)
IOL(avg)
IOL(avg)
f(XIN)
80
80
−40
40
40
−4
−20
4
mA
mA
mA
mA
mA
mA
mA
mA
mA
mA
mA
mA
mA
MHz
“L” total peak output current (1)
P20−P27, P40−P42
“H” total average output current (1)
P00−P07, P10−P11, P20−P27, P30−P37, P40−P42
“L” total average output current (1)
P00−P07, P10−P11, P30−P37
“L” total average output current (1)
P20−P27, P40−P42
“H” peak output current (2)
P00−P07, P10−P11, P20−P27, P30−P37, P40−P41
VCC = 3.0 V
“H” peak output current (2)
P42
VCC = 3.0 V
VCC = 3.0 V
VCC = 3.0 V
VCC = 3.0 V
VCC = 3.0 V
VCC = 3.0 V
VCC = 3.0 V
VCC = 1.8 to 3.6 V
“L” peak output current (2)
P00−P07, P10−P11, P30−P37
(2)
24
−2
−10
2
“L” peak output current
P20−P27, P40−P42
“H” average output current (3)
P00−P07, P10−P11, P20−P27, P30−P37, P40−P41
“H” average output current (3)
P42
“L” average output current (3)
P00−P07, P10−P11, P30−P37
“L” average output current (3)
P20−P27, P40−P42
12
4
Internal clock oscillation frequency (4)
at ceramic oscillation or external clock input
VDET
Detection voltage of voltage drop detection circuit
Ta = −20 to 85 °C
Ta = 0 to 50 °C
1.65
1.70
1.75
1.75
0.2
1.85
1.80
1.2
V
V
TDET
Low-voltage detection time of voltage drop detection circuit When detected
ms
voltage passes
detection voltage at
±50V/S
TPON
Power-on reset circuit valid supply voltage rising time
VCC = 0 to 1.8 V
1
ms
NOTES:
1. The total output current is the sum of all the currents flowing through all the applicable ports. The total average current is an average
value measured over 100 ms. The total peak current is the peak value of all the currents.
2. The peak output current is the peak current flowing in each port.
3. The average output current IOL (avg), IOH (avg) in an average value measured over 100 ms.
4. When the oscillation frequency has a duty cycle of 50 %.
Rev.1.06 Mar 07, 2008 Page 50 of 59
REJ03B0140-0106
7545 Group
Electrical Characteristics
Table 13 Electrical characteristics (1) (VCC = 1.8 to 3.6 V, Ta = −20 to 85 °C, unless otherwise noted)
Limits
Typ.
Symbol
Parameter
Test conditions
IOH = −2.0 mA
Unit
V
Min.
2.1
Max.
VOH
“H” output voltage
(1)
VCC = 3.0 V
P00−P07, P10−P11, P20−P27, P30−P37
P40−P41
VOH
IOH = −10 mA
VCC = 3.0 V
1.0
V
V
“H” output voltage
P42
VOL
IOL = 2 mA
VCC = 3.0 V
0.9
1.5
“L” output voltage
P00−P07, P10−P11, P30−P37
VOL
IOL = 12 mA
VCC = 3.0 V
V
“L” output voltage
P20−P27, P40−P42
VT+−VT-
VT+−VT-
IIH
Hysteresis
VCC = 3.0 V
0.3
V
(2)
INT0, INT1, P00−P07
Hysteresis
RESET
VCC = 3.0 V
0.45
V
VI = VCC
5.0
µA
“H” input current
(Pin floating. Pull up
transistors “off”)
P00−P07, P10−P11, P20−P27, P30−P37, P40−P42
IIH
IIL
VI = VCC
5.0
µA
µA
“H” input current
RESET
VI = VSS
−5.0
“L” input current
(Pin floating. Pull up
transistors “off”)
P00−P07, P10−P11, P20−P27, P30−P37, P40−P42
RFB
RPH
Feed-back resistor value between XIN-XOUT
VCC = 3.0 V, VI = 3.0 V
VCC = 3.0 V, VI = 0 V
700
50
3200
250
kΩ
kΩ
Pull-up resistor value
P00−P07
120
60
RPH
RPL
Pull-up resistor value
RESET
VCC = 3.0 V, VI = 0 V
VCC = 3.0 V, VI = 3.0 V
When clock stopped
25
130
kΩ
kΩ
Pull-down resistor value
RESET
7.0
VRAM1
VRAM2
RAM1 hold voltage (VCC)
RAM2 hold voltage (VDDR)
1.1
1.1
3.6
V
V
When clock stopped and
reset by voltage drop
detection
NOTES:
1. In this case, CMOS output is selected by the port output mode selection register.
2. It is available only when operating key-on wake up.
Rev.1.06 Mar 07, 2008 Page 51 of 59
REJ03B0140-0106
7545 Group
Electrical Characteristics (continued)
Table 14 Electrical characteristics (2) (VCC = 1.8 to 3.6 V, Ta = −20 to 85 °C, unless otherwise noted)
Limits
Symbol
Parameter
Test conditions
VCC = 3.0 V, f(XIN) = 4 MHz
Unit
mA
Min.
Typ.
0.6
Max.
1.2
ICC
Power source
current
Output transistors “off”
VCC = 3.0 V, f(XIN) = 4 MHz (in WIT state),
functions except timer 1 disabled,
Output transistors “off”
0.3
0.1
0.1
0.6
mA
All oscillation stopped (in STP state)
Output transistors “off”
VCC ≥ VDDR ≥ VCC − 0.6 V
Ta = 25°C
Ta = 85°C
1.0
µA
µA
10.0
IDDR
During reset by voltage drop detection circuit
VDDR = 1.1 V, 1.8 V ≥ VCC ≥ 0 V
Ta = 25°C
Ta = 85°C
1.0
µA
µA
10.0
Timing Requirements
Table 15 Timing Requirements (VCC = 1.8 to 3.6 V, VSS = 0 V, Ta = −20 to 85 °C, unless otherwise noted)
Limits
Symbol
Parameter
Unit
Min.
2
Typ.
Max.
µs
tw(RESET)
tC(XIN)
Reset input “L” pulse width
External clock input cycle time
250
100
100
460
460
ns
ns
ns
ns
ns
tWH(XIN)
tWL(XIN)
External clock input “H” pulse width
External clock input “L” pulse width
INT0, INT1, input “H” pulse width
INT0, INT1, input “L” pulse width
tWH(INT0)
tWL(INT0)
Switching Characteristics
Table 16 Switching Characteristics (VCC = 1.8 to 3.6 V, VSS = 0 V, Ta = −20 to 85 °C, unless otherwise noted)
Limits
Symbol
Parameter
Unit
Min.
Typ.
25
Max.
100
CMOS output rising time (1)
CMOS output falling time (1)
tr(CMOS)
tf(CMOS)
NOTE:
ns
ns
25
100
1. Pin XOUT is excluded
Rev.1.06 Mar 07, 2008 Page 52 of 59
REJ03B0140-0106
7545 Group
tWL(INT0)
tWH(INT0)
0.8VCC
INT0, INT1
RESET
0.2VCC
tW(RESET)
0.8VCC
0.2VCC
tC(XIN)
tWL(XIN)
tWH(XIN)
0.8VCC
XIN
0.2VCC
Fig 58. Timing chart
Rev.1.06 Mar 07, 2008 Page 53 of 59
REJ03B0140-0106
7545 Group
PACKAGE OUTLINE
JEITA Package Code
P-LQFP32-7x7-0.80
RENESAS Code
PLQP0032GB-A
Previous Code
32P6U-A
MASS[Typ.]
0.2g
HD
*1
D
24
17
NOTE)
1. DIMENSIONS "*1" AND "*2"
DO NOT INCLUDE MOLD FLASH.
2. DIMENSION "*3" DOES NOT
INCLUDE TRIM OFFSET.
16
25
bp
b1
Dimension in Millimeters
Reference
Symbol
Min Nom Max
D
E
6.9 7.0 7.1
6.9 7.0 7.1
1.4
Terminal cross section
32
9
A2
HD
HE
A
8.8 9.0 9.2
8.8 9.0 9.2
1.7
1
8
ZD
Index mark
A1
bp
b1
c
0.1 0.2
0
0.32 0.37 0.42
0.35
F
c
0.09
0.20
0.145
0.125
c1
L
L1
0°
8°
e
0.8
Detail F
y
x
0.20
0.10
*3
bp
x
e
y
ZD
ZE
L
0.7
0.7
0.3 0.5 0.7
1.0
L1
JEITA Package Code RENESAS Code Previous Code MASS [Typ.]
P-LSSOP32-5.6x11-0.65 PLSP0032JB-A 32P2X-B
0.18 g
Rev.1.06 Mar 07, 2008 Page 54 of 59
REJ03B0140-0106
7545 Group
APPENDIX
Decimal Calculations
1. Execution of decimal calculations
NOTES ON PROGRAMMING
Processor Status Register
The ADC and SBC are the only instructions which will yield
proper decimal notation, set the decimal mode flag (D) to “1”
with the SED instruction. After executing the ADC or SBC
instruction, execute another instruction before executing the
SEC, CLC, or CLD instruction.
1. Initializing of processor status register
Flags which affect program execution must be initialized after a
reset.
In particular, it is essential to initialize the T and D flags because
they have an important effect on calculations.
<Reason>
After a reset, the contents of the processor status register (PS) are
undefined except for the I flag which is “1”.
2. Notes on status flag in decimal mode
When decimal mode is selected, the values of three of the flags in
the status register (the N, V, and Z flags) are invalid after a ADC
or SBC instruction is executed.
The carry flag (C) is set to “1” if a carry is generated as a result
of the calculation, or is cleared to “0” if a borrow is generated.
To determine whether a calculation has generated a carry, the C
flag must be initialized to “0” before each calculation. To check
for a borrow, the C flag must be initialized to “1” before each
calculation.
Reset
Initializing of flags
Set D flag to “1”
ADC or SBC instruction
NOP instruction
Main program
Fig 1. Initialization of processor status register
2. How to reference the processor status register
To reference the contents of the processor status register (PS),
execute the PHP instruction once then read the contents of (S+1).
If necessary, execute the PLP instruction to return the PS to its
original status.
SEC, CLC, or CLD instruction
Fig 3. Status flag at decimal calculations
(S)
3. JMP instruction
(S)+1
Stored PS
When using the JMP instruction in indirect addressing mode, do
not specify the last address on a page as an indirect address.
4. Multiplication and division instructions
(1) The index X mode (T) and the decimal mode (D) flags do
not affect the MUL and DIV instruction.
(2) The execution of these instructions does not change the
contents of the processor status register.
Fig 2. Stack memory contents after PHP instruction
execution
Rev.1.06 Mar 07, 2008 Page 55 of 59
REJ03B0140-0106
7545 Group
5. Read-modify-write instruction
Do not execute a read-modify-write instruction to the read
invalid address (SFR).
The read-modify-write instruction operates in the following
sequence: read one-byte of data from memory, modify the data,
write the data back to original memory. The following
instructions are classified as the read-modify-write instructions
in the 740 Family.
3. Modifying output data with bit managing instruction
When the port latch of an I/O port is modified with the bit
managing instruction*1 , the value of the unspecified bit may be
changed.
<Reason>
I/O ports are set to input or output mode in bit units. Reading
from a port register or writing to it involves the following
operations.
(1) Bit management instructions: CLB, SEB
• Port in input mode
(2) Shift and rotate instructions: ASL, LSR, ROL, ROR, RRF
(3) Add and subtract instructions: DEC, INC
(4) Logical operation instructions (1’s complement): COM
Read: Read the pin level.
Write: Write to the port latch.
• Port in output mode
Read: Read the port latch or read the output from the
peripheral function (specifications differ depending on the
port).
Write: Write to the port latch. (The port latch value is output
from the pin.)
Add and subtract/logical operation instructions (ADC, SBC,
AND, EOR, and ORA) when T flag = “1” operate in the way as
the read-modify-write instruction. Do not execute the read
invalid SFR.
<Reason>
Since bit managing instructions*1 are read-modify-write
instructions,*2 using such an instruction on a port register causes
a read and write to be performed simultaneously on the bits other
than the one specified by the instruction.
When an unspecified bit is in input mode, its pin level is read and
that value is written to the port latch. If the previous value of the
port latch differs from the pin level, the port latch value is
changed.
When the read-modify-write instruction is executed to read
invalid SFR, the instruction may cause the following
consequence: the instruction reads unspecified data from the area
due to the read invalid condition. Then the instruction modifies
this unspecified data and writes the data to the area. The result
will be random data written to the area or some unexpected
event.
If an unspecified bit is in output mode, the port latch is generally
read. However, for some ports the peripheral function output is
read, and the value is written to the port latch. In this case, if the
previous value of the port latch differs from the peripheral
function output, the port latch value is changed.
NOTES ON PERIPHERAL FUNCTIONS
Notes on I/O Ports
1. Pull-up control register
When using each port which built in pull-up resistor as an output
port, the pull-up control bit of corresponding port becomes
invalid, and pull-up resistor is not connected.
<Reason>
*1 Bit managing instructions: SEB and CLB instructions
*2 Read-modify-write instructions: Instructions that read
memory in byte units, modify the value, and then write the
result to the same location in memory in byte units
Pull-up control is effective only when each direction register is
set to the input mode.
4. Direction register
The values of the port direction registers cannot be read.
That is, it is impossible to use the LDA instruction, memory
operation instruction when the T flag is “1”, addressing mode
using direction register values as qualifiers, and bit test
instructions such as BBC and BBS.
It is also impossible to use bit operation instructions such as CLB
and SEB and read-modify-write instructions of direction
registers for calculations such as ROR.
2. Notes in stand-by state
In stand-by state*1 for low-power dissipation, do not make input
levels of an input port and an I/O port “undefined”.
Pull-up (connect the port to Vcc) or pull-down (connect the port
to Vss) these ports through a resistor.
When determining a resistance value, note the following points:
• External circuit
• Variation of output levels during the ordinary operation
When using a built-in pull-up resistor, note on varied current
values:
For setting direction registers, use the LDM instruction, STA
instruction, etc.
• When setting as an input port : Fix its input level
• When setting as an output port : Prevent current from flowing
out to external.
<Reason>
The output transistor becomes the OFF state, which causes the
ports to be the high-impedance state. Note that the level becomes
“undefined” depending on external circuits.
Accordingly, the potential which is input to the input buffer in a
microcomputer is unstable in the state that input levels of an
input port and an I/O port are “undefined”. This may cause
power source current.
*1 stand-by state : the stop mode by executing the STP
instruction
Rev.1.06 Mar 07, 2008 Page 56 of 59
REJ03B0140-0106
7545 Group
Termination of Unused Pins
Notes on Interrupts
1. Terminate unused pins
1. Change of relevant register settings
Perform the following wiring at the shortest possible distance (20
mm or less) from microcomputer pins.
When not requiring for the interrupt occurrence synchronous
with the following case, take the sequence shown in Figure 4.
• When switching external interrupt active edge
• When switching interrupt sources of an interrupt vector
address where two or more interrupt sources are allocated
(1) I/O ports
Set the I/O ports for the input mode and connect each pin to VCC
or VSS through each resistor of 1 kΩ to 10 kΩ. The port which
can select a built-in pull-up resistor can also use the built-in pull-
up resistor.
When using the I/O ports as the output mode, open them at “L”
or “H”.
Set the corresponding interrupt enable bit to “0” (disabled).
• When opening them in the output mode, the input mode of the
initial status remains until the mode of the ports is switched
over to the output mode by the program after reset. Thus, the
potential at these pins is undefined and the power source
current may increase in the input mode. With regard to an
effects on the system, thoroughly perform system evaluation
on the user side.
Set the interrupt edge selection bit, active edge switch bit,
or the interrupt source selection bit.
NOP (One or more instructions)
• Since the direction register setup may be changed because of a
program runaway or noise, set direction registers by program
periodically to increase the reliability of program.
Set the corresponding interrupt request bit to “0”
(no interrupt request issued).
2. Termination remarks
Set the corresponding interrupt enable bit to “1” (enabled).
(1) I/O ports setting as input mode
(1) Do not open in the input mode.
<Reason>
Fig 4. Sequence of changing relevant register
• The power source current may increase depending on the first-
stage circuit.
<Reason>
When setting the followings, the interrupt request bit of the
corresponding interrupt may be set to “1”.
• When switching external interrupt active edge
INT0 interrupt edge selection bit (bit 0 of Interrupt edge
selection register (address 3A16))
• An effect due to noise may be easily produced as compared
with proper termination (1) shown on the above “1. Terminate
unused pins”.
INT1 interrupt edge selection bit (bit 1 of Interrupt edge
selection register)
Key-on wakeup edge selection register (address 1916)
(2) Do not connect to VCC or VSS directly.
<Reason>
If the direction register setup changes for the output mode
because of a program runaway or noise, a short circuit may
occur.
2. Check of interrupt request bit
When executing the BBC or BBS instruction to determine an
interrupt request bit immediately after this bit is set to “0”, take
the following sequence.
(3) Do not connect multiple ports in a lump to VCC or VSS
through a resistor.
<Reason>
<Reason>
If the BBC or BBS instruction is executed immediately after an
interrupt request bit is cleared to “0”, the value of the interrupt
request bit before being cleared to “0” is read.
If the direction register setup changes for the output mode
because of a program runaway or noise, a short circuit may occur
between ports.
Set the interrupt request bit to “0” (no interrupt issued)
NOP (One or more instructions)
Execute the BBC or BBS instruction
Fig 5. Sequence of check of interrupt request bit
Rev.1.06 Mar 07, 2008 Page 57 of 59
REJ03B0140-0106
7545 Group
Notes on Timers
Notes on Power-on Reset Circuit
1. When n (0 to 255) is written to a timer latch, the frequency
division ratio is 1/(n+1).
2. Timer count source
Stop timer 2, timer 3 counting to change its count source.
3. Timer 1, timer 2, timer 3 count start timing and count time
when operation starts
Time to first underflow is different from time among next
underflow by the timing to start the timer and count source
operations after count starts.
4. Timer 2, timer 3, carrier wave generating circuit
The timing adjustment of the output waveform causes the
gap between the timer count value and the output
waveform, and the output waveform changes in the reload
cycle after the timer underflow.
Reset occurs by the power-on reset circuit under the following
conditions;
• when the power source voltage rises from 0 V to 1.8 V within
1 ms.
Also, note that reset may not occur under the following
conditions;
• when the power source voltage rises from the voltage higher
than 0 V.
• when it takes longer than 1 ms that the power source voltage
rises from 0 V to 1.8 V.
Note on Voltage Drop Detection Circuit
The voltage drop detection circuit detection voltage of this
product is set up lower than the minimum value of the supply
voltage of the recommended operating conditions.
When the supply voltage of a microcomputer falls below to the
minimum value of recommended operating conditions and
regoes up (ex. battery exchange of an application product),
depending on the capacity value of the bypass capacitor added to
the power supply pin, the following case may cause program
failure ;
supply voltage does not fall below to VDET, and its voltage re-
goes up with no reset.
In such a case, please design a system which supply voltage is
once reduced below to VDET and re-goes up after that.
Moreover, the timer interrupt occurs at the change point of
the output waveform.
(The timing of the interrupt occurrence is behind a half
cycle of the count source, compared with timer 1. )
Notes on Watchdog Timer
1. The watchdog timer is operating during the wait mode.
Write data to the watchdog timer control register to prevent
timer underflow.
2. The watchdog timer stops during the stop mode. However,
the watchdog timer is running during the oscillation stabi-
lizing time after the STP instruction is released. In order to
avoid the underflow of the watchdog timer, the watchdog
timer H count source selection bit (bit 7 of watchdog timer
control register (address 3916)) must be set to “0” just
before executing the STP instruction.
Vcc
Recommended
operating condition
min. value
VDET
Notes on RESET Pin
No reset
Program failure may occur.
(1) Connecting capacitor
Normal operation
Vcc
In case where the RESET signal rise time is long, connect a
ceramic capacitor or others across the RESET pin and the Vss
pin.
Recommended
operating condition
min. value
And use a 1000 pF or more capacitor for high frequency use.
When connecting the capacitor, note the following :
• Make the length of the wiring which is connected to a
capacitor as short as possible.
VDET
Reset
• Be sure to verify the operation of application products on the
user side.
Fig 6. VCC and VDET
<Reason>
Notes on Clock Generating Circuit
(1) CPU mode register
If the several nanosecond or several ten nanosecond impulse
noise enters the RESET pin, it may cause a microcomputer
failure.
Processor mode bits (bits 1 and 0) of CPU mode register (address
3B16) is used to control operation modes of the microcomputer.
In order to prevent the dead-lock by erroneously writing (ex.
program run-away), these bits can be rewritten only once after
releasing reset.
After rewriting, it is disabled to write any data to the bit. (The
emulator MCU “M37545RLSS” is excluded.)
Also, when the read-modify-write instructions (SEB, CLB, etc.)
are executed to bits 2, 6, 7, bits 1 and 0 are locked.
(2) Ceramic resonator
When the ceramic resonator/quartz-crystal oscillation is used for
the main clock, connect the ceramic resonator and the external
circuit to pins XIN and XOUT at the shortest distance. A feedback
resistor is built-in.
Rev.1.06 Mar 07, 2008 Page 58 of 59
REJ03B0140-0106
7545 Group
Notes on Oscillation Control
DATA REQUIRED FOR QzROM WRITING ORDERS
1. Stop mode
The following are necessary when ordering a QzROM product
shipped after writing:
1. QzROM Writing Confirmation Form*
(1) When the stop mode is used, set “1” (STP instruction
enabled) to the STP instruction function selection bit (bit 1
of Function set ROM data (address FFDA16)).
2. Mark Specification Form*
(2) The oscillation stabilizing time after release of STP
instruction can be selected from “set automatically”/“not set
automatically” by the oscillation stabilizing time set bit after
release of the STP instruction (bit 0 of MISRG (address
3816)). When “0” is set to this bit, “0316” is set to timer 1
and “FF16” is set to prescaler 1 automatically at the
execution of the STP instruction. When “1” is set to this bit,
set the wait time to timer 1 and prescaler 1 according to the
oscillation stabilizing time of the oscillation. Also, when
timer 1 is used, set values again to timer 1 and prescaler 1
after system is returned from the stop mode.
3. ROM data...........Mask file
* For the QzROM writing confirmation form and the mark
specification form, refer to the “Renesas Technology Corp.”
Homepage (http://www.renesas.com/homepage.jsp).
Notes on QzROM Writing Orders
When ordering the QzROM product shipped after writing,
submit the mask file (extension: .msk) which is made by the
mask file converter MM.
Be sure to set the ROM option setup data (referred to as “Mask
option setup data” in MM) when making the mask file by using
the mask file converter MM.
Note on Power Source Voltage
When the power source voltage value of a microcomputer is less
than the value which is indicated as the recommended operating
conditions, the microcomputer does not operate normally and
may perform unstable operation.
In a system where the power source voltage drops slowly when
the power source voltage drops or the power supply is turned off,
reset a microcomputer when the supply voltage is less than the
recommended operating conditions and design a system not to
cause errors to the system by this unstable operation.
Notes on ROM Code Protect
(QzROM product shipped after writing)
As for the QzROM product shipped after writing, the ROM code
protect is specified according to the ROM option setup data in
the mask file which is submitted at ordering.
Renesas Technology corp. write the value of the ROM option
setup data in the ROM code protect address (address FFDB16)
when writing to the QzROM. As a result, in the contents of the
ROM code protect address the ordered value may differ from the
actual written value.
The ROM option setup data in the mask file is “0016” for protect
enabled or “FF16” for protect disabled. Therefore, the contents of
the ROM code protect address of the QzROM product shipped
after writing is “0016” or “FF16”.
If you set except “0016” and “FF16” or nothing at the ROM
option data, we cannot generate the ROM data.
Note on Product Shipped in Blank
As for the product shipped in blank, Renesas does not perform
the writing test to user ROM area after the assembly process
though the QzROM writing test is performed enough before the
assembly process. Therefore, a writing error of approx.0.1 %
may occur.
Moreover, please note the contact of cables and foreign bodies
on a socket, etc. because a writing environment may cause some
writing errors.
NOTES ON HARDWARE
Precautions Regarding Overvoltage
Handling of Power Source Pin
Make sure that voltage exceeding the VCC pin voltage is not
applied to other pins. In particular, ensure that the state indicated
by bold lines in Figure 7 does not occur for pin P40 (CNVSS
power source pin for QzROM) during power-on or power-off.
Otherwise the contents of QzROM could be rewritten.
In order to avoid a latch-up occurrence, connect a capacitor
suitable for high frequencies as bypass capacitor between power
source pin (VCC pin, VDDR pin) and GND pin (VSS pin). Besides,
connect the capacitor to as close as possible. For bypass
capacitor which should not be located too far from the pins to be
connected, a ceramic capacitor of 0.1 µF is recommended.
Handling of CNVSS Pin
1.8V
1.8V
VCC pin voltage
The CNVSS pin is connected to the internal memory circuit block
by a low-ohmic resistance, since it has the multiplexed function
to be a programmable power source pin (VPP pin) as well.
To improve the noise reduction, make the length of wiring
between the CNVSS pin and the VSS pin the shortest possible.
CNVSS pin voltage
“L” input
(1) Input voltage to other MCU pins rises before Vcc pin voltage.
(2) Input voltage to other MCU pins falls after Vcc pin voltage.
Note: The internal circuitry is unstable when Vcc is below the minimum voltage
specification of 1.8 V (shaded portion), so particular care should be
exercised regarding overvoltage.
Fig 7. Example of Overvoltage
Rev.1.06 Mar 07, 2008 Page 59 of 59
REJ03B0140-0106
REVISION HISTORY
7545 Group Datasheet
Rev.
Date
Description
Summary
Page
−
1.00
1.01
Feb. 07, 2005
May. 10, 2005
First edition issued
20
Fig.22 : Carrier wave auto-control bit; “1” and “0” added.
26
Standard operation of watchdog timer and Operation of STP instruction disable bit:
address FFFA16 → address FFDA16
Note on Watchdog Timer 2: ... set to “1” just before ... → ... set to “0” just before ...
28
33
36
40
42
47
Voltage Drop Detection Circuit: address FFFA16 → address FFDA16
State transition deleted
Fig. 51 partly revised
Table 9: RPL; V → kΩ
Fig. 55: CNTR0 → INT0
Notes on Watchdog timer: ... set to “1” just before ... → ... set to “0” just before ...
Notes on Clock Generating Circuit 1: bits 2 to 4 to 7 → bits 2, 6, 7
1.02
Jul. 20, 2005 All pages ROM option → Function set ROM
3
Table 1: added.
11
16
35
ROM Code Protect Address (address FFDB16) added.
Termination of unused pins added.
[ROM option data] ROMOP → [Function set ROM] FSROM
Fig. 42, 43: partly revised.
37
51
(4) Wiring to CNVSS pin → (4) Wiring to VPP pin
DATA REQUIRED FOR QzROM WRITING ORDERS, Notes On QzROM Writing
Orders,
Notes On ROM Code Protect added.
1.03
Oct. 21, 2005
−
STP instruction disable bit → STP instruction function selection bit
29
30
“Operation of STP instruction function selection bit” revised.
Fig.33 Block diagram of watchdog timer and reset circuit
“Count start (Watchdog timer disable bit (bit 0 of FSROM))” added.
35
Function set ROM : Description revised.
Fig.42: Reserved → Renesas shipment test area
“When the checksum is included in the user program, avoid assigning it to
these areas.” added to Note.
Fig.43: Bit 0, bit 1 and bit 4 of FSROM revised.
1.04
1.05
1.06
May. 17, 2006
May. 18, 2006
Feb. 29, 2008
−
6
“PRELIMINARY” eliminated.
Fig.4 “Under development” eliminated.
Revised by additional new products (memory size)
Fig. 2 is added
1
2
3
Revised by additional new products (memory size and package)
Fig. 5 is added
6
8
Revised by additional new products (memory size, package, Fig. 6, and Table 4)
Fig. 9 is revised
12
13
Function set ROM Area and Notes (2) - (5) added
Clock circuit is deleted from [Function set ROM data] FSROM
Notes on use deleted
14
16
Fig. 10 is revised
Fig.12 added
20 to 24 Interrupts is revised whole
(1/2)
REVISION HISTORY
7545 Group Datasheet
Rev.
Date
Description
Summary
Page
34
1.06
Feb. 29, 2008
Initial value of watchdog timer: Description added
Operation of STP instruction function selection bit deleted
STP instruction function selection bit added
35
38
40
Fig. 35 is revised
Fig. 42 is revised
Function set ROM is moved to Memory (page 13)
40 to 44 QzROM Writing Mode is added
45
46
Notes on Hardware is added
(4) Wiring to VPP pin: “VPP” → “CNVSS”
Fig.52 is revised
52
55
56
57
59
60
Symbol of Feed-back resistor value between XIN-XOUT is revised
PLSP0032JB-A package is added.
Fig.2, 4, and BRK instruction deleted
Modifying output data with bit managing instruction is revised
Notes on Watchdog Timer: 3. is added
Notes on Oscillation Control is revised (“1” → “0”)
Precautions Regarding Overvoltage is added
(2/2)
Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan
Notes:
1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes
warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property
rights or any other rights of Renesas or any third party with respect to the information in this document.
2. Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document, including,
but not limited to, product data, diagrams, charts, programs, algorithms, and application circuit examples.
3. You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass
destruction or for the purpose of any other military use. When exporting the products or technology described herein, you should follow the applicable export control laws
and regulations, and procedures required by such laws and regulations.
4. All information included in this document such as product data, diagrams, charts, programs, algorithms, and application circuit examples, is current as of the date this
document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas products listed in this document,
please confirm the latest product information with a Renesas sales office. Also, please pay regular and careful attention to additional and different information to be
disclosed by Renesas such as that disclosed through our website. (http://www.renesas.com )
5. Renesas has used reasonable care in compiling the information included in this document, but Renesas assumes no liability whatsoever for any damages incurred as a
result of errors or omissions in the information included in this document.
6. When using or otherwise relying on the information in this document, you should evaluate the information in light of the total system before deciding about the applicability
of such information to the intended application. Renesas makes no representations, warranties or guaranties regarding the suitability of its products for any particular
application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products.
7. With the exception of products specified by Renesas as suitable for automobile applications, Renesas products are not designed, manufactured or tested for applications
or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality
and reliability such as safety systems, or equipment or systems for transportation and traffic, healthcare, combustion control, aerospace and aeronautics, nuclear power, or
undersea communication transmission. If you are considering the use of our products for such purposes, please contact a Renesas sales office beforehand. Renesas shall
have no liability for damages arising out of the uses set forth above.
8. Notwithstanding the preceding paragraph, you should not use Renesas products for the purposes listed below:
(1) artificial life support devices or systems
(2) surgical implantations
(3) healthcare intervention (e.g., excision, administration of medication, etc.)
(4) any other purposes that pose a direct threat to human life
Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing
applications shall indemnify and hold harmless Renesas Technology Corp., its affiliated companies and their officers, directors, and employees against any and all
damages arising out of such applications.
9. You should use the products described herein within the range specified by Renesas, especially with respect to the maximum rating, operating supply voltage range,
movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas shall have no liability for malfunctions or damages
arising out of the use of Renesas products beyond such specified ranges.
10. Although Renesas endeavors to improve the quality and reliability of its products, IC products have specific characteristics such as the occurrence of failure at a certain
rate and malfunctions under certain use conditions. Please be sure to implement safety measures to guard against the possibility of physical injury, and injury or damage
caused by fire in the event of the failure of a Renesas product, such as safety design for hardware and software including but not limited to redundancy, fire control and
malfunction prevention, appropriate treatment for aging degradation or any other applicable measures. Among others, since the evaluation of microcomputer software
alone is very difficult, please evaluate the safety of the final products or system manufactured by you.
11. In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed, the risk of accident such as
swallowing by infants and small children is very high. You should implement safety measures so that Renesas products may not be easily detached from your products.
Renesas shall have no liability for damages arising out of such detachment.
12. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written approval from Renesas.
13. Please contact a Renesas sales office if you have any questions regarding the information contained in this document, Renesas semiconductor products, or if you have
any other inquiries.
RENESAS SALES OFFICES
http://www.renesas.com
Refer to "http://www.renesas.com/en/network" for the latest and detailed information.
Renesas Technology America, Inc.
450 Holger Way, San Jose, CA 95134-1368, U.S.A
Tel: <1> (408) 382-7500, Fax: <1> (408) 382-7501
Renesas Technology Europe Limited
Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K.
Tel: <44> (1628) 585-100, Fax: <44> (1628) 585-900
Renesas Technology (Shanghai) Co., Ltd.
Unit 204, 205, AZIACenter, No.1233 Lujiazui Ring Rd, Pudong District, Shanghai, China 200120
Tel: <86> (21) 5877-1818, Fax: <86> (21) 6887-7858/7898
Renesas Technology Hong Kong Ltd.
7th Floor, North Tower, World Finance Centre, Harbour City, Canton Road, Tsimshatsui, Kowloon, Hong Kong
Tel: <852> 2265-6688, Fax: <852> 2377-3473
Renesas Technology Taiwan Co., Ltd.
10th Floor, No.99, Fushing North Road, Taipei, Taiwan
Tel: <886> (2) 2715-2888, Fax: <886> (2) 3518-3399
Renesas Technology Singapore Pte. Ltd.
1 Harbour Front Avenue, #06-10, Keppel Bay Tower, Singapore 098632
Tel: <65> 6213-0200, Fax: <65> 6278-8001
Renesas Technology Korea Co., Ltd.
Kukje Center Bldg. 18th Fl., 191, 2-ka, Hangang-ro, Yongsan-ku, Seoul 140-702, Korea
Tel: <82> (2) 796-3115, Fax: <82> (2) 796-2145
Renesas Technology Malaysia Sdn. Bhd
Unit 906, Block B, Menara Amcorp, Amcorp Trade Centre, No.18, Jln Persiaran Barat, 46050 Petaling Jaya, Selangor Darul Ehsan, Malaysia
Tel: <603> 7955-9390, Fax: <603> 7955-9510
© 2008. Renesas Technology Corp., All rights reserved. Printed in Japan.
Colophon .7.2
相关型号:
©2020 ICPDF网 联系我们和版权申明