ChipFind - документация

Электронный компонент: EM78P5840

Скачать:  PDF   ZIP
ELAN MICROELECTRONICS CORP.
No. 12, Innovation 1
st
RD., Science-Based Industrial Park
Hsin Chu City, Taiwan, R.O.C.
TEL: (03) 5639977
FAX: (03) 5630118
EM78P5840/41/42


8-BIT MICRO-CONTROLLER
Version 2.6
Version History
Specification Revision History
Version Content
eFHP5830B
1.0 Initial
version
eFHP5840
2.0
1. Change counter1 external input pin from PC2 to P94
2. Modify P60, P61 to INPUT/OUTPUT IO
3. Remove P71 internal pull high function
4. Modify control register initial value
5. Remove 256 byte Data RAM
6. Remove
SPI
function
7. Add IRC and ERIC oscillator function
8. Decrease Stack from 16 to 8
9. Add Counter1 external source (from IO pad)
10. Remove Counter2
2.1
1. Add the relative of ERIC oscillating frequency and external R
2.2
1. Add IRC mode CLK trimming control in code option.
2. Modify PORT9 sink/driver current.
2.3
1. Rename "ERC mode" to "ERIC mode"
2. Modify the relative between ERIC mode's oscillating CLK and the value
of external resister.
2.4
1. Change pin name from "ERCI" to "ERIC"
2. Change the descript about CONT reg bit7
2.5
1. Remove Crystal mode's Idle application
2. Modify
operating
temperature
2.6
1. Rename
eFH78P5840/41/42 EM78P5840/41/42
2. Change IRC frequency deviation from +/- 5% to +/- 10%
Relative to EM785840's ROM-less, OTP and mask:
ROM-less OTP
Mask
ICE5830
EM78P5840
EM78P5841
EM78P 5842
EM785840
EM785841
EM785842
Table1: the relation between EM78P5830 and EM78P5840 series:
EM78P5830 series
EM78P5840 series
PACKAGE
EM78P5830CP
EM78P5830ACP
EM78P5840P
18 pin PDIP
EM78P5830CM
EM78P5830ACM
EM78P5840M
18 pin SOP
EM78P5830BP
EM78P5830ABP
EM78P5841P
20 pin PDIP
EM78P5830BM
EM78P5830ABM
EM78P5841M
20 pin SOP
EM78P5830FP
EM78P5830AFP
EM78P5842P
24 pin PDIP
EM78P5830FM
EM78P5830AFM
EM78P5842M
24 pin SOP
EM78P5840/5841/5842
8-bit Micro-controller
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
1
2004/11/10 V2.6
Table2: the major differences between EM78P5830 and EM78P5840 series:
EM78P5830 series
EM78P5840 series
CID RAM
256 byte
NA
ERIC mode
NA
Under 6M Hz
IRC mode
NA
2M / 4M Hz
WDT source
Crystal or PLL
IRC1
External CNT1 input
NA
Shared with P94
P71 pull high
Internal pull high
External pull high
/RESET pin
/RESET only
Shared with P71
PLLC pin
PLLC only
Shared with P70 and ERCI
XIN, XOUT
Crystal input
Shared with P60 and P61
Table3: the major differences between ICE5840, EM78P5840 and EM785840:
ICE5840
EM78P5840
series
EM785840
series
CID RAM
1024 byte
NA
NA
CID RAM address auto
+1
V NA NA
CNT1 (**)
8 bit counter
8 bit counter
8 or 16 (shared with
CNT2) bit counter
CNT2 (**)
V
X
V
STACK 12
8
8
** CNT2 is only exist on EM78P5840/41/42 and EM785840/41/42, CNT2 is un-support on ICE5840.
Table4: Differences between EM78P5840, EM78P5841 and EM78P5842:
EM78P5840
EM78P5841
EM78P5842
Pin count
18
20
24
PWM
X
2 channel
2 channel
IO (MAX)
16
18
22


User Application Note
(Before using this chip, take a look at the following description note, it includes important messages.)
1. There are some undefined bits in the registers. The values in these bits are unpredicted. These
bits are not allowed to use. We use the symbol "-" in the spec to recognize them. A fixed value
must be write in some specific unused bits by software or some unpredicted wrong will occur.
2. You will see some names for the register bits definitions. Some name will be appear very
frequently in the whole spec. The following describes the meaning for the register's definitions
such as bit type, bit name, bit number and so on.
EM78P5840/5841/5842
8-bit Micro-controller
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
2
2004/11/10 V2.6
7
6
5
4
3
2
1
0
RAB7
RAB6
BAB5
RAB4
RAB2
RAB0
R/W -0
R/W -0
R-1
R/W -1
R
R/W
Bit type
Bit name
Bit number
read/write
(default value=0)
read/write
(default value=1)
read only
(w/o default value)
read/write
(w/o default value)
PAGE0
RA
Register name and its page
-
RAB1
(undefined) not allowed to use
R-0
read only
(default value=0)
read only
(default value=1)

3. Always set IOCC PAGE1 bit 0 = 1 otherwise partial ADC function cannot be used (in ICE5830).

4. Please do not switch MCU operation mode from normal mode to sleep mode directly. Before
into sleep mode, please switch MCU to green mode.

5. While switching main clock (regardless of high freq to low freq or on the other hand), adding 6
instructions delay (NOP) is required.

6. Offset voltage will effect ADC
'
s result, please refer to figure 19 to detail.

7. Please do not connect unnecessary circuit on OTP burner pins during burning the OTP ROM.
EM78P5840/5841/5842
8-bit Micro-controller
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
3
2004/11/10 V2.6
I. General Description
The EM78P5840 series are 8-bit RISC type microprocessor with low power, high speed CMOS technology. There
are 4Kx13 bits Electrical One Time Programmable Read Only Memory (OTP-ROM) within it. It provides security bits
and some One time programmable Option bits to protect the OTP memory code from any external access as well as to
meet user's options.
This integrated single chip has an on_chip watchdog timer (WDT), program OTP-ROM, RAM, programmable real
time clock/counter, internal interrupt, power down mode, dual PWM (Pulse Width Modulation), 8-channel 10-bit A/D
converter and tri-state I/O.
II. Feature
CPU
Operating voltage : 2.2V~5.5V at main CLK less then 3.58MHz.
Main CLK(Hz)
Under 3.58M
14.3M
Operating Voltage(min)
2.2V
3.6V
4k x 13 on chip Electrical One Time Programmable Read Only Memory (OTP-ROM)
144 x 8 on chip general propose RAM
Up to 19 bi-directional and 3 input only general purpose I/O
8 level stack for subroutine nesting
8-bit real time clock/counter (TCC)
One 8-bit counter interrupt
On-chip watchdog timer (WDT)
99.9 single instruction cycle commands
Three action modes in Crystal mode (Main clock can be programmed to 3.58M or 14.3M Hz)
Mode
CPU status
Main clock
32.768kHz clock status
Sleep mode
Turn off
Turn off
Turn off
Green mode
Turn on
Turn off
Turn on
Normal mode
Turn on
Turn on
Turn on
2 level Normal mode frequency: 3.58M and 14.3MHz.
Input port interrupt function
Dual clocks operation (Internal PLL main clock , External 32.768KHz)
Operating frequency mode
Crystal mode (XIN,XOUT pin connect external crystal and capacitance)
ERIC mode (ERCI pin connect resister to VDD)
IRC mode
PWM
Dual PWM (Pulse Width Modulation) with 10-bit resolution
Programmable period (or baud rate)
Programmable duty cycle
ADC
Operating : 2.5V5.5V
Converter Rate
74.6K
37.4K
18.7K
9.3K
Operating Voltage(min)
3.5V
3.0V
2.5V
2.5V
8 channel 10-bit successive approximation A/D converter
Internal (VDD) reference voltage
POR
Power-on reset
PACKAGE

EM78P5840M 18 pin SOP, EM78P5841M 20 pin SOP, EM78P5842M 24 pin SOP
EM78P5840P 18 pin PDIP, EM78P5841P 20 pin PDIP, EM78P5842P 24 pin PDIP