Circuit diagrams utilizing Fujitsu products are included as a means of illustrating typical
semiconductor applications. Complete information sufficient for construction purposes
is not necessarily given.
The information contained in this document has been carefully checked and is believed
to be reliable. However, Fujitsu assumes no responsibility for inaccuracies.
The information contained in this document does not convey any license under the
copyrights, patent rights or trademarks claimed and owned by Fujitsu.
Fujitsu reserves the right to change products or specifications without notice.
No part of this publication may be copied or reproduced in any form or by any means, or
transferred to any third party without prior written consent of Fujitsu.
PREFACE
The terms in this manual are defined as follows:
(1) A clock cycle is one clock cycle of the oscillation frequency.
(2) A system clock cycle is the clock frequency divided by the gear function (see 2.2). One cycle time of the
system clock varies with the settings of the CS1 and CS0 bits of the SYCC register. With some internal
resources, the gear change will cause changes in operating speed. See 3.4 for details.
The MB89140 series of single-chip microcontrollers use the F2MC-8L CPU core to enable high-speed processing at low voltages, and features a 25 segment VFD (V acuum Fluorescent Display) driver . They contain resources such as timers, a serial interface, an A/D converter and an external interrupt input to provide a wide
variety of applications for commercial and industrial equipment, including portable equipment.
The MB89140 series of single-chip microcontrollers has twenty-five V
which makes it suitable for VFD display application such as microwave oven, fan heater, room air conditioner ,
dashboard controller, and so on.
-40VP-channel high voltage ports
CC
1.1 FEATURES
• Minimum instruction execution time: 0.5 µs (at oscillation frequency of 8 MHz)
• Low current dissipation (applicable to dual-circuit clock)
• Internal high-withstand-voltage ports
• 5 timers
–8-bit PWM timer (available as reload timer)
–12-bit MPG timer (available as PPG output, PWM output and reload timer)
–8/16-bit timer/counter (available as two 8-bit timers)
–21-bit time-base counter
16-bit operation
Instruction test and branch instruction
Bit handling instruction, etc.
• Single serial interface
–Transfer direction selected for communication with various equipment
• A/D converter
–Successive approximation type with 10-bit resolution
• 2-channel external interrupt input
–Two channels can be selected independently to cancel the low-power consumption modes (selectable
from rising edge, falling edge, or both edges).
–The INT1 can be applied from –0.7 V to 7.0 V (N-channel open drain).
• Low-power consumption modes
–Stop mode (The oscillation stops to minimize current consumption.)
–Sleep mode (The CPU stops to cut current consumption to about 30% of normal.)
• Reset output or power-on reset available option can be selected.
• Packages
–SDIP-64 and QFP-64 packages
1-3
(Planned)
MB89144
ROM 12K
RAM 256
(Under development)
MB89145
ROM 16K
RAM 512
Fig. 1.1 MB89140 series
GENERAL
(Planned)
MB89146
Memory capacity
SmallLarge
ROM 24K
RAM 768
(Under development)
MB89147
ROM 32K
RAM 1K
1-4
GENERAL
1.2 PRODUCT SERIES
Table 1-1 lists the types and functions of the MB89140 series of microcontrollers.
Table 1-1 Types and Functions of MB89140 Series of Microcontrollers
Model NameMB89144MB89145MB89146MB89147
Classification
ROM capacity12K × 8 bit16K × 8 bit24K × 8 bit32K × 8 bit
Number of basic instructions136
Instruction bit length8 bits
Instruction length1 to 3 bytes
CPU functionsData bit length1, 8, 16 bits
Minimum instruction execution time0.5 µs/8 MHz to 8.0 µs/8 MHz and 61 µs/32.768 kHz
Interrupt processing time4.5 µs/8 MHz to 72.0 µs/8 MHz and 562.5 µs/32.768 kHz
High-withstand-voltage output port8 (P60 to P67 for large current)
(P-channel open drain)16 (P40 to P47, P50 to P57 for small current)
Buzzer output 1 (Large current)
(P-channel open drain, high-withstand-voltage)
Output port (CMOS)4 (P20 to P23)
PortInput port (CMOS)2 (P70 to P71; serve as X0A and X1A pins when two
I/O port (CMOS)23 (P00 to P07, P10 to P17, P30, P32 to P37)
I/O port (N-channel open drain)1 (P31)
(Timer 4)12-bit resolution PPG operation (minimum resolution: 0.5 µs at oscillation frequency of 8.0 MHz and
8/16-bit timer/counter8/16-bit timer operation (operating clock, internal clock and external trigger). See 2.2 for details.
(Timers 2 and 3)8/16-bit event counter operation (selectable from rising edge, falling edge, or both edges)
Capable of generating four internal pulses of 0.26 ms, 0.51 ms, 1.02 ms and 0.524 s
(at oscillation frequency of 8.0 MHz)
8-bit timer operation (toggle output possible, 1, 2, 8 or 16 system clock cycles of operating clock)
8-bit resolution PWM operation (conversion cycle: 128 µs to 2.0 ms at oscillation frequency of 8.0 MHz
and maximum gear speed)
12-bit resolution PWM operation (maximum conversion cycle: 2048.4 µs to 16.4 ms
maximum gear speed)
1-5
GENERAL
Table 1-1 Types and Functions of MB89140 Series of Microcontrollers (Continued)
Model NameMB89144MB89145MB89146MB89147
Serial I/O
A/D converter
External interruptInterrupt mode selectable from rising edge, falling edge, or both edge. Analog noise filter built in
Standby modeSleep, Stop and Watch mode
ProcessCMOS
PackageDIP-64P-M01 (SDIP-64)/FPT-64P-M06 (QFP64)
Operating voltage2.7 V to 6.0 V*2.7 V to 6.0 V
8-bit length 1 channel
Transfer clock (external, 4, 8 or 16 system clock cycles)
10-bit resolution, 12 channels
A/D conversion mode (conversion time: 16.5 µs at 8 MHz and maximum gear speed)
Sense mode (conversion time: 9.0 µs at 8 MHz and maximum gear speed)
Continuous start by external activation or internal timer
Table 1-2 and NO TAG lists the pin function and Figure 1.3 shows the input/output circuit configurations.
Table 1-2 Pin Function Description
Pin No.
SDIP
3023X0Used for main clock oscillation
3124X1
2922MODABUsually connected to V
2821RST
54 to 61 47 to 54toF
4639P17/ADSTIInput is hysteresis type containing a noise filter. This port also serves as an
47 to 49 40 to 42P16 to P14I
QFP
from this pin according to the internal source. The internal circuit is initial-
Pin Name
P07/AN7
P00/AN0
Circuit
type
AA crystal resonator should be used.
Used for input of operation mode select signals
. This pin serves as the VPP pin for EPROM-
mounted models.
Used for input/output of reset signals
Consists of an N-channel open-drain output with a pull-up resistor and
Chysteresis input. When the reset on option is selected, a Low level is output
ized at input of a Low level. A noise canceler is built in.
General-purpose I/O ports
Input is hysteresis type containing a noise filter. Although these ports also
serves as analog input pins, analog input does not pass through the noise
filter for hysteresis input.
General-purpose I/O port
external start pin for the A/D converter.
General-purpose I/O ports
Input is hysteresis type containing a noise filter.
SS
Function
P13/ANB
50 to 53 43 to 46toF
P10/AN8
3427X0A/P70A/Jpin by the mask option. When using as a general-purpose input pin, input
3326X1A/P71A/Jpin by the mask option. When using as a general-purpose input pin, input
3528P22DGeneral-purpose output port
2720P23/WDGD
3629P21/PWO0D
3730P20DGeneral-purpose output port
General-purpose I/O ports
Input is hysteresis type containing a noise filter. Although these ports serve
as analog input pins, analog input does not pass through the noise filter for
hysteresis input.
Can be selected as a general-purpose input port or sub-clock generating
is hysteresis type containing a noise filter.
Can be selected as a general-purpose input port or sub-clock generating
is hysteresis type containing a noise filter.
General-purpose output port
This port also serves as a watchdog output pin
General-purpose output port
This port also serves as a PWM output pin for the 8-bit PWM timer.
(see 2.2 for watch dog timer).
1-10
GENERAL
Table 1-2 Pin Function Description (Continued)
Pin No.
SDIP
3831P37/DTTII
3932P36/PWO1IInput is hysteresis type containing a noise filter. This port also serves as a
4033P35/ECIInput is hysteresis type containing a noise filter . This port also serves as an
4134P34/SIIInput is hysteresis type containing a noise filter. This port also serves as an
4235P33/SOIInput is hysteresis type containing a noise filter. This port also serves as a
4336P32/SCKIInput is hysteresis type containing a noise filter . This port also serves as a
QFP
Pin Name
Circuit
type
Function
General-purpose I/O port
Input is hysteresis type containing a noise filter. When overcurrent is
detected, the external rising or falling edge can be input to inactivate the
12-bit MPG output.
General-purpose I/O port
12-bit MPG output pin.
General-purpose I/O port
external clock input pin for the 8/16-bit timer/counter.
General-purpose I/O port
external clock input pin for the 8-bit timer/counter.
General-purpose I/O port
serial data output pin for the 8-bit serial interface.
General-purpose I/O port
serial transfer clock pin for the 8-bit serial interface.
General-purpose I/O port
4437P31/INT1E
4538P30/INT0/TRGI
158BZHThis pin also serves as a P-channel high-withstand-voltage open-drain
19 to 26 12 to 19P47 to P40GTwo types of microcontrollers are provided: one has a pull-down resistor
11 to 18 4 to 11P57 to P50GTwo types of microcontrollers are provided: one has a pull-down resistor
2 to 959 to 2P67 to P60GTwo types of microcontrollers are provided: one has a pull-down resistor
103VFD—This pin serves as an NC pin for microcontrollers without a pull-down resistor
Consists of an N-channel open-drain output and hysteresis input containing
a noise filter. This port also serves as an external interrupt pin. Interrupt
input is also hysteresis type containing a noise filter.
General-purpose I/O port
Input is hysteresis type containing a noise filter. This port can also be used
as an external interrupt pin or MPG trigger input pin. Interrupt input is also
hysteresis type containing a noise filter.
Used for buzzer output only
output port.
P-channel high-withstand-voltage open drain output ports for small current
between these ports and the VFD pin, and the other does not.
P-channel high-withstanding-voltage open drain output ports for small current
between these ports and the VFD pin, and the other does not.
P-channel high-withstand-voltage open-drain output ports for large current
between these ports and the VFD pin, and the other does not.
Used for voltage supply connected to pull-down resistors for ports 4, 5 and 6
Latch-up may occur if a voltage higher than V
than port 40 to 47, or if voltage exceeding the rated value is applied between V
of up to 7 V can be applied to the P31/INT1 pin irrespective of V
or lower than VSS is applied to the input or output pins other
CC
and VSS. However, voltages
CC
.
CC
When latch-up occurs, the supply current increases rapidly , sometimes resulting in overheating and destruction. Therefore, no voltage exceeding the maximum ratings should be used.
(2) Handling unused input pins
Leaving unused input pins open may cause a malfunction. Therefore, these pins should be set to pull-up or
pull-down.
(3) Setting internal connection (IC) pin
Always set IC (internal connections) open.
(4) Variations in supply voltage
Although the specified V
supply voltage operating range is assured, a sudden change in the supply voltage
CC
within the specified range may cause a malfunction. Therefore, the voltage supply to the IC should be kept as
constant as possible. The V
10% of the typical V
value, or the coefficient of excessive variation should be less than 0.1 V/ms. instanta-
CC
ripple (P-P value) at the supply frequency (50 to 60 Hz) should be less than
CC
neous change when the power supply is switched.
(5) Precautions for external clocks
It takes some time for oscillation to stabilize after changing the mode to power-on reset (option selection) and
stop. Consequently, an external clock must be input.
(6) Recommended screening conditions
High-temperature aging is recommended for screening before OPTROM-mounted microcontrollers are
mounted.
Program, verify
High-temperature aging
150C°, 48H
ReadMount
• Writing yield
The test for writing all bits cannot be executed for microcontrollers where the OPTROM microcomputer program is not written. Therefore, the 100% writing yield may not be always assured.
(7) Sequence for application of power and analog inputs to A/D converter
Power supplies (A V
and A VSS) and analog inputs (AN0 to ANB) to the A/D converter should be turned on
CC
after or at the same time the digital power supply (VCC) is turned on.
When the power supplies is turned off, the digital power supply (V
plies (AV
and AVSS) and analog inputs (AN0 to ANB) to the A/D converter are turned off.
This section describes the memory space and register composing CPU
hardware.
Memory Space
The MB89140 series of microcontrollers have a memory area of 64K bytes.
All I/O, data, and program areas are located in this space. The I/O area is
near the lowest address and the data area is immediately above it. The data
area may be divided into register, stack, and direct-address areas according
to the applications. The program area is located near the highest address
and the tables of interrupt and reset vectors and vector-call instructions are
at the highest address. Figure 2.1 shows the structure of the memory space
for the MB89140 series of microcontrollers.
MB89P147
FFFF
8007
8000
MB89W147
MB89PV140
H
ROM
(External ROM
for MB89PV140
H
H
Note
FFFF
A000
H
H
MB89146
ROM
(24 K)
FFFF
C000
H
H
MB89145
ROM
(16 K)
0480
0200
0100
0080
0000
H
H
Register
H
RAM (1024)
H
I/O
H
0380
0200
0100
0080
0000
H
H
H
H
H
Register
RAM (768)
I/O
0280
0200
0100
0080
0000
H
H
Register
H
RAM (512)
H
I/O
H
Note: To make the user program available between the EPROM-mounted
and mask-ROM-mounted microcontrollers, no user program should
be written at the option EPROM area between 8000
to 8006H (see
H
APPENDIX 2 for details).
Fig. 2.1 Memory Space of MB89140 Series of Microcontrollers
2-3
HARDW ARE CONFIGURATION
CPU
• I/O area
This area is where various resources such as control and data registers are
located. The memory map for the I/O area is given in APPENDIX A.
• RAM area
This area is where the static RAM is located. Addresses from 0100
are also used as the general-purpose register area.
01FF
H
to
H
• ROM area
This area is where the internal ROM is located. Addresses from FFC0
are also used for the table of reset and vector-call instructions.
FFFF
H
to
H
T able 2-1 shows the correspondence between each interrupt number or reset and the table addresses to be referenced for the MB89145 series of microcontrollers.
When the MB89140 series of microcontrollers handle 16-bit data, the data
written at the lower address is treated as the upper data and that written at
the next address is treated as the lower data as shown in Figure 2.2.
After execution
Memory
34
H
12
H
ABCF
ABCE
ABCD
ABCC
H
H
H
H
ABCF
ABCE
ABCD
ABCC
MOVW ABCDH, A
H
H
H
H
1234
A
H
Fig. 2.2 Arrangement of 16-bit Data in Memory
This is the same as when 16-bits are specified by the operand during execution of an instruction. Bits closer to the OP code are treated as the upper
byte and those next to it are treated as the lower byte. This is also the same
when the memory address or 16-bit immediate data is specified by the operand.
[Example]
MOV A, 5678
MOV A, #1234
H
H
; Extended address
; 16-bit immediate data
Assemble
XXXXH XX XX
60 56 78; Extended address
XXXX
H
XXXX
E4 12 34; 16-bit immediate data
H
XXXXH XX
Fig. 2.3 Arrangement of 16-bit Data during Execution of Instruction
Data saved in the stack by an interrupt is also treated in the same manner.
2-5
HARDW ARE CONFIGURATION
CPU
Internal Registers in CPU
The MB89140 series of microcontrollers have dedicated registers in the
CPU and general-purpose registers in memory.
• Program counter (PC)16-bit long register indicating location
where instructions stored
• Accumulator (A)16-bit long register where results of opera-
tions stored temporarily; the lower byte is
used to execute 8-bit data processing
instructions.
• T emporary accumulator (T)16-bit long register; the operations are per-
formed between this register and the accumulator. The lower one byte is used to
execute 8-bit data processing instructions
• Stack pointer (SP)16-bit long register indicating stack area
• Processor status (PS)16-bit long register where register pointers
and condition codes stored
• Index register (IX)16-bit long register for index modification
• Extra pointer (EP)16-bit long register for memory addressing
16 bits
P C
A
T
IX
EP
SP
PS
Program counter
Accumulator
Temporary accumulator
Index register
Extra pointer
Stack pointer
Processor status
The 16 bits of the processor status (PS) can be divided into 8 upper bits for a
register bank pointer (RP) and 8 lower bits for a condition code register
(CCR). (See Figure 2.4.)
1514131211109876543210
PSRP
Vacant Vacant VacantHINZVC
IL1, 0
RPCCR
Fig. 2.4 Structure of Processor Status
2-6
HARDW ARE CONFIGURATION
CPU
The RP indicates the address of the current register bank and the contents
of the RP; the real addresses are translated as shown in Figure 2.5.
The CCR has bits indicating the results of operations and transfer data contents, and bits controlling the CPU operation when an interrupt occurs.
• H-flagH-flag is set when a carry or a borrow out of bit 3 into bit 4
is generated as a result of operations; it is cleared in other
cases. This flag is used for decimal-correction instructions.
• I-flagAn interrupt is enabled when this flag is 1 and is disabled
when it is 0. The I-flag is 0 at reset.
• IL1 and IL0 These bits indicate the level of the currently-enabled inter-
rupt. The CPU executes interrupt processing only when
an interrupt with a value smaller than the value indicated
by this bit is requested.
IL1IL0Interrupt levelHigh and low
0
0
High
1
0
1
1
1
0
1
2
3
Low = No interrupt
• N-flagThe N-flag is set when the most significant bit is 1 as a
result of operations; it is cleared when the MSB is 0.
• Z-flagZ-flag is set when the bit is 0 as a result of operations; it is
cleared in other cases.
• V-flagV-flag is set when a two’ s complement overflow occurs as
a result of operations; it is reset when an overflow does
not occur.
• C-flagC-flag is set when a carry or a borrow out of bit 7 is gener-
ated as a result of operations; it is cleared in other cases.
When the shift instruction is executed, the value of the
C-flag is shifted out.
2-7
HARDW ARE CONFIGURATION
CPU
• General-purpose registers
General-purpose registers are 8-bit long registers for storing data.
The 8-bit long general-purpose registers are in the register banks in
memory . One bank has eight registers and up to 32 banks are available for
the MB89140 series of microcontrollers, respectively. The register bank
pointer (RP) indicates the currently-used bank.
Address = 0100H + 8 (RP)
*
Memory area
Fig. 2.6 Register Bank Configuration
R0
R1
R2
R3
R4
R5
R6
R7
32 banks
2-8
HARDW ARE CONFIGURATION
CPU
Operation Modes
The MB89140 series of microcontrollers is used in the single-chip mode.
The memory map for each mode is as follows:
→
H
→
H
→
H
→
H
→
H
MB89PV140
Internal I/O
RAM
Inhibited
Internal ROM
Address
0000
H
0080
H
0380
H
A000
H
FFFF
H
→→→
→
→
MB89146
Internal I/O
RAM
Inhibited
Internal ROM
Address
0000
H
0080
H
0280
H
C000
H
FFFF
H
→→
→
→→
MB89145
Internal I/O
RAM
Inhibited
Internal ROM
Address
0000
0080
0480
8000
FFFF
Fig. 2.7 Memory Map in Various Modes
The mode that the device enters depends on the states of the device-mode
pins and the contents of the mode data fetched during the reset sequence.
The relationship between the states and operations of the device-mode pins
is shown below.
MODADescription
0
1
Reset vectors are read from the internal ROM.
Write mode for products containing EPROM.
The mode data should be set as follows:
T2T1T0
Mode bits
T2T1Operation
0
0
Other than above
T0
0
Select single-chip mode.
Reserved. Do not set.
: Reserved; Specify 0.
2-9
HARDW ARE CONFIGURATION
CPU
As shown in the flowchart below, the single-chip mode is set according to the
status of the device mode pins and the mode data fetched during the reset
sequence.
Setting
procedure
Fetch programs from internal ROM.
Mode selectedMode pinMode data
Single-chip mode(1)→(2)0XXXXX000
Power-on
Device mode pin
No
Reset cancel?
Ye s
User ROM
(1) Set 0 at the MODA pin.
(2) All pin ports fetch internal
mode data and reset vectors.
2-10
Loading...
+ 101 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.