Preliminary N79E352/N79E352R Data Sheet
8-BIT MICROCONTROLLER
Table of Contents-
1.
2.
3.
4.
5.
6.
GENERAL DESCRIPTION.......................................................................................................... 4
FEATURES ................................................................................................................................. 5
PARTS INFORMATION LIST ..................................................................................................... 6
3.1
Lead Free (RoHS) Parts information list ......................................................................... 6
PIN CONFIGURATIONS ............................................................................................................. 7
PIN DESCRIPTIONS .................................................................................................................. 9
FUNCTIONAL DESCRIPTION .................................................................................................. 11
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
7.
7.1
7.2
7.3
8.
8.1
8.2
9.
9.1
9.2
9.3
9.4
10.
10.1
10.2
10.3
On-Chip Flash EPROM ................................................................................................. 11
I/O Ports ........................................................................................................................ 11
Serial I/O ....................................................................................................................... 11
Timers ........................................................................................................................... 11
Interrupts ....................................................................................................................... 11
Data Pointers ................................................................................................................ 11
Architecture ................................................................................................................... 11
Power Management ...................................................................................................... 12
Program Memory (on-chip Flash) ................................................................................. 13
Data Memory................................................................................................................. 14
Scratch-pad RAM and Register Map ............................................................................ 14
SFR Location Table ...................................................................................................... 17
SFR Detail Bit Descriptions ........................................................................................... 21
Instruction Timing.......................................................................................................... 58
MOVX Instruction .......................................................................................................... 62
External Data Memory Access Timing .......................................................................... 63
Wait State Control Signal .............................................................................................. 66
Idle Mode ...................................................................................................................... 67
Economy Mode ............................................................................................................. 67
Power Down Mode ........................................................................................................ 68
MEMORY ORGANIZATION ...................................................................................................... 13
SPECIAL FUNCTION REGISTERS .......................................................................................... 17
INSTRUCTION .......................................................................................................................... 51
POWER MANAGEMENT .......................................................................................................... 67
-1-
Preliminary N79E352/N79E352R Data Sheet
11.
RESET CONDITIONS ............................................................................................................... 69
11.1
11.2
Sources of reset ............................................................................................................ 69
Reset State ................................................................................................................... 69
Timer/Counters 0 & 1 .................................................................................................... 71
Time-base Selection ..................................................................................................... 71
Timer/Counter 2 ............................................................................................................ 74
Operation ...................................................................................................................... 78
12.
PROGRAMMABLE TIMERS/COUNTERS ................................................................................ 71
12.1
12.2
12.3
13.
14.
15.
NVM MEMORY ......................................................................................................................... 78
13.1
WATCHDOG TIMER................................................................................................................. 80
UART SERIAL PORT ................................................................................................................ 82
15.1
15.2
15.3
15.4
15.5
15.6
Mode 0 .......................................................................................................................... 82
Mode 1 .......................................................................................................................... 83
Mode 2 .......................................................................................................................... 84
Mode 3 .......................................................................................................................... 87
Framing Error Detection................................................................................................ 88
Multiprocessor Communications ................................................................................... 88
I2C Bus ......................................................................................................................... 90
The I2C Control Registers: ........................................................................................... 91
Modes of Operation ...................................................................................................... 93
Data Transfer Flow in Five Operating Modes ............................................................... 94
16.
I2C SERIAL PORT .................................................................................................................... 90
16.1
16.2
16.3
16.4
17.
18.
TIMED ACCESS PROTECTION ............................................................................................. 100
INTERRUPTS ......................................................................................................................... 102
18.1
18.2
18.3
18.4
Interrupt Sources ........................................................................................................ 102
Priority Level Structure ................................................................................................ 103
Interrupt Response Time ............................................................................................ 105
Interrupt Inputs ............................................................................................................ 105
19.
20.
21.
22.
KEYBOARD FUNCTION ......................................................................................................... 106
INPUT CAPTURE ................................................................................................................... 108
PULSE WIDTH MODULATED OUTPUTS (PWM) ................................................................. 110
I/O PORT ................................................................................................................................. 111
22.1
22.2
22.3
22.4
Quasi-Bidirectional Output Configuration .................................................................... 111
Open Drain Output Configuration ............................................................................... 112
Push-Pull Output Configuration................................................................................... 113
Input Only Mode .......................................................................................................... 113
-2-
Preliminary N79E352/N79E352R Data Sheet
23.
OSCILLATOR.......................................................................................................................... 115
23.1
23.2
23.3
On-Chip RC Oscillator Option ..................................................................................... 115
External Clock Input Option ........................................................................................ 115
CPU Clock Rate select ............................................................................................... 116
Power On Detect ......................................................................................................... 117
Brownout Detect and Reset ........................................................................................ 117
24.
POWER MONITORING .......................................................................................................... 117
24.1
24.2
25.
26.
ICP(IN-CIRCUIT PROGRAM) FLASH PROGRAM ................................................................. 119
CONFIG BITS ......................................................................................................................... 120
26.1
26.2
CONFIG0 .................................................................................................................... 120
CONFIG1 .................................................................................................................... 121
Absolute Maximum Ratings ........................................................................................ 123
D.C. Characteristics .................................................................................................... 124
A.C. Characteristics .................................................................................................... 125
RC OSC AND AC CHARACTERISTICS .................................................................... 130
Typical Application Circuit ........................................................................................... 130
40-pin DIP ................................................................................................................... 131
44-pin PLCC................................................................................................................ 132
44-pin PQFP ............................................................................................................... 133
48-pin LQFP ................................................................................................................ 134
27.
ELECTRICAL CHARACTERISTICS ....................................................................................... 123
27.1
27.2
27.3
27.4
27.5
28.
PACKAGE DIMENSIONS ....................................................................................................... 131
28.1
28.2
28.3
28.4
29.
REVISION HISTORY .............................................................................................................. 135
-3-
Publication Release Date: Jul, 29, 2009
Revision A06
Preliminary N79E352/N79E352R Data Sheet
1. GENERAL DESCRIPTION
The N79E352(R) is an 8-bit Turbo 51 microcontroller which has Flash EPROM programmable
hardware writer. The instruction set of the N79E352(R) is fully compatible with the standard 8052. The
N79E352(R) contains a 8Kbytes of main Flash EPROM; a 256 bytes of RAM; 128 bytes NVM Data
Flash EPROM; three 16-bit timer/counters; 2-channel 8-bit PWM; 1-channel UART and 1 additional
input capture. These peripherals are supported by 11 interrupt sources four-level interrupt capability.
To facilitate programming and verification, the Flash EPROM inside the N79E352(R) allows the
program memory to be programmed and read electronically. Once the code is confirmed, the user can
protect the code for security. N79E352(R) is designed for cost effective applications which can serve
industrial devices, and other low power applications.
-4-
Preliminary N79E352/N79E352R Data Sheet
2. FEATURES
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Fully static design 8-bit Turbo 51 CMOS microcontroller up to 24MHz when VDD=4.5V to 5.5V,
12MHz when VDD=2.7V to 5.5V, and 4MHz when VDD=2.4V to 5.5V.
8K bytes of AP Flash EPROM, with external writer programmable mode.
256 bytes of on-chip RAM.
128 bytes NVM Data Flash EPROM for customer data storage used and 10k writer cycles.
Instruction-set compatible with MCS-51.
On-chip configurable RC oscillator: 22.1184MHz/11.0592MHz (selectable by config bit) with
±2%
accuracy, at 5V voltage and 25°C condition. (±2% accuracy is only for N79E352R.)
Three 16-bit timer/counters.
One input capture.
11 interrupt source with four levels of priority.
One enhanced full duplex serial port with framing error detection and automatic address
recognition.
4 outputs mode and TTL/Schmitt trigger selectable Port.
Programmable Watchdog Timer with 20KHz internal RC clock can wake-up the power down
mode, and have very low power under 10uA at 5V.
Two-channel 8-bit PWM.
One I2C communication port.
Dual 16-bit Data Pointers.
Software programmable access cycle to external RAM/peripherals.
Eight keypads interrupt inputs with sharing the same interrupt source.
LED drive capability (20mA) on all port pins, total 100mA.
Low Voltage (3 levels) Detection interrupt and reset.
Industrial temperature grade -40 C~85 C.
Packages:
Lead Free (RoHS) DIP40: N79E352RADG
Lead Free (RoHS) PLCC44: N79E352RAPG
Lead Free (RoHS) PQFP44: N79E352RAFG
Lead Free (RoHS) LQFP48: N79E352RALG
Lead Free (RoHS) DIP40: N79E352ADG
Lead Free (RoHS) PLCC44: N79E352APG
Lead Free (RoHS) PQFP44: N79E352AFG
Lead Free (RoHS) LQFP48: N79E352ALG
-
o
o
-5-
Publication Release Date: Jul, 29, 2009
Revision A06