Document
SH79F081A
Enhanced 8051 Microcontroller with 10bit ADC
1. Features
8bits micro-controller with Pipe-line structured 8051 compatible instruction set
Flash ROM: 8K Bytes RAM: internal 256 Bytes EEPROM-like: 2K Bytes Operation Voltage:
fOSC = 400kHz - 16MHz, VDD = 3.6V - 5.5V Oscillator (code option):
- Crystal oscillator: 400kHz - 16MHz - Ceramic oscillator: 400kHz - 16MHz - Internal RC: 12.3MHz 26 CMOS bi-directional I/O pins Built-in pull-up resistor for input pin Three 16-bit timer/counters T0, T1 and T2 One 12-bit PWM Two 8-bit PWM Powerful interrupt sources: - Timer0, 1, 2 - INT0, 1 - INT4: 6 input - ADC, EUART, SPI, PWM
EUART SPI interface (Master/Slave Mode) 8channels 10-bits Analog Digital Converter (ADC),
with comparator function built-in Buzzer Low Voltage Reset (LVR) function (enabled by
code option) - LVR voltage level 1: 4.1V - LVR voltage level 2: 3.7V CPU Machine cycle: 1 oscillator clock Watch Dog Timer (WDT) Warm-up Timer Support Low power operation modes: - Idle Mode - Power-Down Mode Flash Type Package: - SOP28 Pin
2. General Description
The SH79F081A is a high performance 8051 compatible micro-controller, regard to its build-in Pipe-line instruction fetch structure, that helps the SH79F081A can perform more fast operation speed and higher calculation performance, if compare SH79F081A with standard 8051 at same clock speed.
The SH79F081A retains most features of the standard 8051. These features include internal 256 bytes RAM, UART and Int0-1. It also contains 8K bytes Flash memory block both for program and data. Also the ADC and PWM timer functions are incorporated in SH79F081A.
For high reliability and low cost issues, the SH79F081A builds in Watchdog Timer, Low Voltage Reset function. And SH79F081A also supports two power saving modes to reduce power consumption.
1 V2.0
3. Block Diagram
VDD
Power
Pipelined 8051 architecture
Reset circuit
8K Bytes Flash ROM
Internal 256 Bytes Data RAM
Watch Dog
Port 0 Configuration I/O
Port 1 Configuration I/O
Timer0 (16bit) Timer1 (16bit) Timer2 (16bit)
External Interrupt
Port 2 Configuration I/O
Port 3 Configuration I/O
XTAL1 XTAL2
12-bit PWM 8-bit PWM 8-bit PWM Internal Oscillator
Oscillator
buzzer
SPI
EUART
10-bit ADC JTAG ports (for debug)
SH79F081A
RST
P0.2 - P0.7 P1.2 - P1.7 P2.0 - P2.7 P3.0 - P3.5
2
4. Pin Configuration
28 SOP
TDO/INT43/AN4/P1.2 TMS/INT42/AN5/P1.3
TDI/INT41/AN6/P1.4 TCK/INT40/AN7/P1.5
T0/P1.6 RST/P1.7 XTAL2/P3.3 XTAL1/P3.4
VDD VSS T2EX/P3.2 T2/INT0/P3.1 FLT/SS/P3.0 P3.5
1 2 3 4 5 6 7 8 9 10 11 12 13 14
SH79F081AM
SH79F081A
28 P0.2/AN0 27 P0.3/AN1 26 P0.4/AN2 25 P0.5/AN3 24 P0.6/T1 23 P0.7/INT1/PWM21 22 P2.5/PWM1 21 P2.6/INT45/PWM01 20 P2.7/INT46/PWM11 19 P2.4/PWM0 18 P2.3/PWM2 17 P2.2/MOSI/RXD 16 P2.1/MISO/TXD 15 P2.0/SCK/BZ
3
SH79F081A
Table 4.1 Pin Function
Pin No. 1 2 3
Pin Name TDO/INT43/AN4/P1.2 TMS/INT42/AN5/P1.3 TDI/INT41/AN6/P1.4
P1.2 P1.3 P1.4
Default Function
4 TCK/INT40/AN7/P1.5
5 T0/P1.6
6
————
RST/P1.7
9 VDD
10 VSS
8 XTAL1/P3.4
P1.5 P1.6 Reset pin or P1.7 (code option) --------P3.4 or osc input pin (code option)
7 XTAL2/P3.3
11 T2EX/P3.2
12 T2/INT0/P3.1
13
———
FLT/ SS /P3.0
14 P3.5
15 BZ/SCK/P2.0
P3.3 or osc output pin (code option) P3.2 P3.1 P3.0 P3.5 P2.0
16 TXD/MISO/P2.1 17 RXD/MOSI/P2.2 18 PWM2/P2.3
P2.1 P2.2 P2.3
19 PWM0/P2.4 22 PWM1/P2.5 21 PWM01/INT45/P2.6
P2.4 P2.5 P2.6
20 PWM11/INT46/P2.7 23 PWM21/INT1/P0.7 24 T1/P0.6
P2.7 P0.7 P0.6
*25 AN3/P0.5 *26 AN2/P0.4 *27 AN1/P0.3
P0.5 P0.4 P0.3
*28 AN0/P0.2
P0.2
*Note:
P0.2, P0.3, P0.4, P0.5 are configured as N-channel open drain I/O
The out most pin function has the highest priority, and the inner most pin function has the lowest priority (Refer to Pin Configuration Diagram. This means when one pin is occupied by a higher priority function (if enabled) cannot be used as the lower priority functional pin, even when the lower priority function is also enabled. Until the higher priority function is closed by software, can the corresponding pin be released for the lower priority function use.
4
SH79F081A
5. Pin Description
Pin No.
Type
Description
I/O PORT
P0.2 - P0.7 P1.2 - P1.7 P2.0 - P2.7 P3.0 - P3.5
I/O 6 bit General purpose CMOS I/O I/O 6 bit General purpose CMOS I/O I/O 8 bit General purpose CMOS I/O I/O 6 bit General purpose CMOS I/O
Timer
T0 T1 T2 T2EX PWM0 PWM1 PWM2 PWM01 PWM11 PWM21 FLT
I/O Timer0 external input/Comparator output I/O Timer1 external input/Comparator output I/O Timer2 external input/ Baud-Rate generator
I Timer 2 Reload/Capture/Direction Control O Output pin for 12-bit PWM timer O Output pin for 8-bit PWM timer O Output pin for 8-bit PWM timer O Output pin for 12-bit PWM timer with fixed phase relationship of PWM0 O Output pin for 8-bit PWM timer with fixed phase relationship of PWM1 O Output pin for 8-bit PWM timer with fixed phase relationship of PWM2 I PWM Fault Detect input
EUART
RXD TXD
I/O EUART data input O EUART data o.