Ordering number : ENA1841A
Ordering number: ENA1841A
LC87F7932B
CMOS IC
32K-byte FROM and 2048-byte RAM integrated
8-bit 1-chip Microcontroller
Overview
http://onsemi.com
The LC87F7932B is an 8-bit microcontroller that, centered around a CPU running at a minimum bus cycle time of
250ns, integrates on a single chip a number of hardware features such as 32K-byte flash ROM (onboard
programmable), 2048-byte RAM, an on-chip debugger, an LCD controller/driver, two sophisticated 16-bit
timers/counters (may be divided into 8-bit timers), two 16-bit timers/counters (may be divided into 8-bit
timers/counters or 8-bit PWMs), four 8-bit timers with a prescaler, a real time clock function (RTC), a base timer
serving as a time-of-day clock, a synchronous SIO interface with automatic transfer function, an
asynchronous/synchronous SIO interface, a UART interface (full duplex), a 7-channel AD converter with a 12-/8-bit
resolution selector, a high-speed clock counter, a system clock frequency divider, an internal reset circuit, and a 21-
source 10-vector interrupt function.
Features
Flash
ROM
•
Capable of on-board programming with a wide supply voltage range of 3.0V to 5.5V
•
128-byte block erase
•
32768
×
8 bits
RAM
•
2048
×
9 bits
Minimum
Bus Cycle Time
•
250ns (4MHz) VDD=2.4V to 3.6V
Note: The bus cycle time here refers to the ROM read speed.
Minimum
Instruction Cycle Time (tCYC)
•
750ns (4MHz) VDD=2.4V to 3.6V
* This product is licensed from Silicon Storage Technology, Inc. (USA).
Semiconductor Components Industries, LLC, 2013
May, 2013
Ver.1.04
41812HKIM 20120328-S00004 No.A1841-1/30
LC87F7932B
Operating
Temperature Range
•
-40°C to +85°C
Ports
•
Normal withstand voltage I/O ports
Ports whose input/output can be programmed in 1-bit units:
Multiplexed functions
Input ports (for debugger):
LCD ports (segment output):
•
LCD ports/general purpose I/O ports
Segment output:
Common output:
Bias power supply for LCD driving
Multiplexed functions
Input/output ports:
•
Oscillator pins:
•
Reset pin:
•
Power supply:
21 (P0n, P1n, P30, P70 to P73)
3 (DBGP0 (P05) to DBGP2 (P07))
8 (P1n)
32 (S00 to S31)
4 (COM0 to COM3)
5 (V1 to V3, CUP1, CUP2)
36 (LPAn, LPBn, LPCn, LPL0 to LPL3, P1n)
4 (CF1, CF2, XT1, XT2)
1 (RES)
5 (VSS1, VSS2, VDD1, VDD2, V2)
LCD
Controller
(1) Seven display modes are available
(2) Duty: 1/3 duty, 1/4 duty
(3) Bias: 1/2 bias, 1/3 bias
(4) Segment/common output can be switched to general purpose I/O ports.
(5) LCD power range
1) 1/3 bias
V1: 1.2V to 1.8V
V2: 2.4V to 3.6V
V3: 3.6V to 5.4V
An LCD panel that supports the V2 (=VDD)
×
1.5[V] must be used when 1/3 bias is selected.
If the supply voltage VDD is 3.0V, for example, use an LCD panel that supports 4.5V.
2) 1/2 bias
V1: 1.2V to 1.8V
V2: 2.4V to 3.6V
V3: 2.4V to 3.6V
(Connect V2 and V3 externally.)
An LCD panel that supports the V2 (=VDD)[V] must be used when 1/2 bias is selected.
If the supply voltage VDD is 3.0V, for example, use an LCD panel that supports 3.0V.
Timers
•
Timer 0: 16 bit timer/counter with a capture register
Mode 0: 8-bit timer with an 8-bit programmable prescaler (with two 8-bit capture registers)
×
2 channels
Mode 1: 8 bit timer with an 8-bit programmable prescaler (with an 8-bit capture register) + 8-bit counter
(with an 8-bit capture register)
Mode 2: 16 bit timer with an 8-bit programmable prescaler (with a 16-bit capture register)
Mode 3: 16 bit counter (with a 16 bit capture register)
•
Timer 1: 16 bit timer/counter that supports PWM/toggle output
Mode 0: 8-bit timer with an 8-bit prescaler (with toggle output) + 8-bit timer/counter (with toggle output)
Mode 1: 8-bit PWM with an 8-bit prescaler
×
2 channels
Mode 2: 16 bit timer/counter with an 8-bit prescaler (with toggle output)
(Toggle outputs also from the low-order 8 bits)
Mode 3: 16 bit timer with an 8-bit prescaler (with toggle output)
(The low-order 8 bits can be used as a PWM.)
•
Timer 4: 8-bit timer with a 6-bit prescaler
•
Timer 5: 8-bit timer with a 6-bit prescaler
•
Timer 6: 8-bit timer with a 6-bit prescaler (with toggle output)
•
Timer 7: 8-bit timer with a 6-bit prescaler (with toggle output)
•
Base Timer
(1) The clock can be selected from any of the following:
Subclock (32.768kHz crystal oscillator/low-speed RC oscillator), system clock, and timer 0 prescaler output.
(2) Interrupts can be generated at five specified time intervals.
No.A1841-2/30
LC87F7932B
High-speed
Clock Counter
(1) Capable of counting a clock with a maximum clock rate of 8MHz (at a main clock of 4MHz).
(2) Real-time output
Serial
Interface
•
SIO0: 8-bit synchronous serial interface
(1) Synchronous 8-bit serial I/O (2- or 3-wire configuration, 4/3 to 512/3 tCYC transfer clock rate)
(2) Continuous data transfer (variable length data transfer in bit units from 1 to 256 bits, 4/3 to 512/3 tCYC
transfer clock rate)
(3) Bi-phase modulation
Manchester/Bi-phase-Space data transfer
(4) LSB first/MSB first selectable
(5) SPI function: HOLD/X’tal HOLD mode release function upon receipt of a 1-byte (8-bit clock).
•
SIO1: 8-bit asynchronous/synchronous serial interface
Mode 0: Synchronous 8-bit serial I/O (2- or 3-wire configuration, 2 to 512 tCYC transfer clock rate)
Mode 1: Asynchronous serial I/O (half duplex, 8 data bits, 1 stop bit, 8 to 2048 tCYC baudrate)
Mode 2: Bus mode 1 (start bit, 8 data bits, 2 to 512 tCYC transfer clock rate)
Mode 3: Bus mode 2 (start detection, 8 data bits, stop detection)
UART
•
Full duplex
•
Data length: 7/8/9 bits selectable
•
1 stop bit (2 bits in continuous data transmission)
•
Built-in baudrate generator
•
Operating mode: Programmable transfer mode, fixed-rate transfer mode
•
Transfer data conversion: Normal (NRZ), Manchester encoding
AD
Converter: 12 bits/8 bits
×
7 channels
•
12-/8-bit AD converter resolution selectable
Remote
Control Receiver Circuit (multiplexed with the P73/INT3/T0IN pin)
•
Noise rejection function (Noise filter time constant selectable from 1/32/128 tCYC)
Watchdog
Timer
•
Generation of interrupt or system reset selectable
•
Two types of watchdog timer
(1) Watchdog timer using an external RC circuit
(2) Watchdog timer using the microcontroller’s base timer
•
Detection intervals (1/2/4/8 seconds) can be selected for the watchdog timer that uses the base timer by
configuring options.
Buzzer
Output
•
Generates buzzer output from P17 using the base timer.
Real
Time Clock (RTC)
(1) Uses the base timer to count the calendar years, months, days, hours, minutes, and seconds.
(2) Calendar counts up to December 31, 2799 and calculates leap years automatically
(3) The RTC uses the Gregorian calendar, which maintains GMT (Greenwich Mean Time).
Internal
Reset Function
•
Power-on-reset (POR) function
(1)
The POR causes a system reset only when power is turned on.
No.A1841-3/30
LC87F7932B
Interrupts:
•
21 sources, 10 vectors
(1) Provides three levels (low (L), high (H), and highest (X)) of multiplex interrupt control. Any interrupt request of
the level equal to or lower than the current interrupt is not accepted.
(2) When interrupt requests to two or more vector addresses occur at the same time, the interrupt of the highest level
takes precedence over the other interrupts. For interrupts of the same level, the interrupt into the lowest vector
address takes precedence.
No.
1
2
3
4
5
6
7
8
9
10
Vector Address
00003H
0000BH
00013H
0001BH
00023H
0002BH
00033H
0003BH
00043H
0004BH
Level
X or L
X or L
H or L
H or L
H or L
H or L
H or L
H or L
H or L
H or L
INT0
INT1
INT2/T0L
INT3/base timer/RTC
T0H
T1L/T1H
SIO0/UART1-receive
SIO1/UART-send
ADC/T6/T7/SPI
Port 0/T4/T5
Interrupt Source
•
Priority level: X > H > L
•
For equal priority levels, the interrupt with the lowest vector address is given priority.
Subroutine
Stack Levels:
•
Up to 1024 levels max. (Stack is allocated in RAM.)
High-speed
Multiplication/Division Instructions
•
16 bits
×
8 bits
(5 tCYC execution time)
•
24 bits
×
16 bits
(12 tCYC execution time)
•
16 bits
÷
8 bits
(8 tCYC execution time)
•
24 bits
÷
16 bits
(12 tCYC execution time)
Oscillator
Circuits
•
On-chip high-speed RC oscillator: For system clock (500kHz typ)
•
On-chip low-speed RC oscillator: For system clock (50kHz typ)
•
CF oscillator: For system clock, Rf built in, Rd external
•
Crystal oscillator: For low-speed system clock, Rf built in
•
On-chip variable modulation frequency RC oscillator (VMRC): For system clock
(1) Adjustable in
±4%
(typ) step from a selected center frequency
(2) Can measure the frequency of the source oscillator clock using an input signal from the XT1 pin as a reference.
System
Clock Divider
•
Low consumption current operation possible
•
The minimum instruction cycle can be selected from among 750ns, 1.5μs, 3.0μs, 6.0μs, 12μs, 24μs, 48μs, 96μs, and
192μs (at a main clock rate of 4MHz).
System
Clock Output
•
The system clock can be output from the P04 pin.
No.A1841-4/30
LC87F7932B
Standby
Function
•
HALT mode: HALT mode is used to reduce power consumption.
Halts instruction execution while allowing the peripheral circuits to continue operation.
(Some serial transfer functions are suspended.)
(1) Oscillators do not stop automatically.
(2) Released by a system reset or occurrence of an interrupt
•
HOLD mode: HOLD mode is used to reduce power consumption.
Suspends instruction execution and operation of the peripheral circuits.
(1) CF oscillator, RC oscillators, crystal oscillator, and VMRC oscillator stop automatically.
(2) There are five ways of releasing HOLD mode.
1) Low level input to the reset pin
2) Watchdog timer interrupt
3) Specified level input to at least one of INT0, INT1, and INT2 pins
4) Port 0 interrupt
5) SPI interrupt by receiving 1-byte (8-bit clock)
•
X’tal HOLD mode: X’tal HOLD mode is used to reduce power consumption.
Suspends instruction execution and the operation of the peripheral circuits except the base timer.
(1) CF oscillator, RC oscillators, and VMRC oscillator stop automatically.
(2) The state of the crystal oscillator when X’tal HOLD mode is entered is retained.
(3) There are seven ways of releasing X’tal HOLD mode.
1) Low level input to the reset pin
2) Watchdog timer interrupt
3) Specified level input to at least one of INT0, INT1, and INT2 pins
4) Port 0 interrupt
5) Base-timer interrupt
6) RTC interrupt
7) SPI interrupt by receiving 1-byte (8-bit clock)
On-chip
Debugger
•
Supports software debugging with the IC mounted on the target board.
Package
Form
•
QIP64E (14×14) (Lead-and-halogen-free product)
•
TQFP64J (7×7) (Lead-and-halogen-free product)
•
SQFP64 (10×10) (Lead-and-halogen-free product)
Development
Tools
•
On-chip debugger: TCB87 TypeB+LC87F7932B
Flash
ROM Programming Boards
Package
QIP64E (14×14)
TQFP64J (7×7)
SQFP64 (10×10)
Programming Boards
W87F70256Q
W87F70256TQ7
W87F79256SQ
No.A1841-5/30