English
Language : 

EM78P5842 Datasheet, PDF (32/48 Pages) ELAN Microelectronics Corp – 8 BIT MICROCONTROLLER
EM78P5840/5841/5842
8-bit Micro-controller
VII.9_1 Code Option
EM78P5840 CODE Option Register
12 11 10 9 8 7
6
5
4
3
2
1
0
IR3 IR2 IR1 IR0 P71S P70S OSCM1 OSCM0 IRC2S MER
1
1 /POT0
Bit 0 (/POT0): program ROM protect option.
If set 1 to the bit, program memory can be access; else if clear this bit , program memory can not be
access.
Bit 3(MER) : Memory error recover function
0 Î disable memory error recover function
1 Î enable memory error recovery function
If user enable memory error recovery function, MCU will improve effect from environment noise.
Bit 4 (IRC2S): Internal RC oscillating frequency (for system CLK) select.
0 Î 2M Hz
1 Î 4M Hz
Bit5~Bit6 (OSCM0~OSCM1): EM78P5840 oscillating mode select.
OSCM1
0
0
1
OSCM0
0
1
X
Oscillating mode
IRC mode
ERIC mode
Crystal mode
Bit 7 (P70S): PORT70 function select bit:
OSCM1 OSCM0
P70S
0
0
X
0
1
X
1
X
1
1
X
0
PORT70 status
General Purpose IO
OSC input, please cascade resister to AVDD
PLLC output, please cascade capacitor to AVSS
General Purpose IO, PLL function will disable
Bit 8 (P71S): PORT71 function select bit:
0 Î /RESET pin selected..
1 Î General purpose INPUT port “PORT71” selected
Bit 9~ Bit12 (IR0~IR3): By setting IR0~IR3, IRC mode’s oscillating frequency can be adjust. Next table
show the trimming code table of IRC frequency.
IR3~IR0
Frequency
0000
1.05*F
0001
1.10*F
0010
1.15*F
0011
1.20*F
0100
1.25*F
0101
1.30*F
0110
1.35*F
0111
1.40*F
1000
0.65*F
1001
0.70*F
1010
0.75*F
1011
0.80*F
1100
0.85*F
1101
0.90*F
1110
0.95*F
1111
1.0*F
* ”F” means the frequency of IRC output.
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
2004/11/10 V2.6