em78p5842 ELAN Microelectronics Corp, em78p5842 Datasheet - Page 11

no-image

em78p5842

Manufacturer Part Number
em78p5842
Description
8-bit Micro-controller
Manufacturer
ELAN Microelectronics Corp
Datasheet
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
R4 (RAM selection for common registers R20 ~ R3F))
(RAM selection register)
R5 (Program page selection, PWM control)
PAGE0 (PORT5 I/O data register, Program page register)
PAGE1, PAGE2 (Unused registers)
PAGE3 (PWMCON)
PWM2E PWM1E
R/W-0
These two registers are not allowed to use.
R/W-0
RB1
Bit 6~Bit 7(RPAGE0 ~ RPAGE1): change R5 ~ RE to another page
Bit 0 ~ Bit 5 (RSR0 ~ RSR5) : Indirect addressing for common registers R20 ~ R3F
Bit 6 ~ Bit 7 (RB0 ~ RB1) : Bank selection bits for common registers R20 ~ R3F
Bit 0 ~ Bit 1 (PS0 ~ PS1) : Program page selection bits
Bit2~Bit3 : (undefined) These 2 bits must clear to 0 or MCU will access wronging program code.
Bit4~Bit7 : (undefined) not allowed to use
Bit 0 ~ Bit 1 ( T1P0 ~ T1P1 ): TMR1 clock prescale option bits.
X
7
-
7
Please refer to VII.1 Operational registers for detail register configuration.
RSR bits are used to select up to 32 registers (R20 to R3F) in the indirect addressing mode.
These selection bits are used to determine which bank is activated among the 4 banks for 32 register (R20 to
R3F)..
Please refer to VII.1 Operational registers for details.
User can use PAGE instruction to change page to maintain program page by user.
7
(RPAGE1,RPAGE0)
(0,0)
(0,1)
(1,0)
(1,1)
PS1
T1P1
0
0
1
1
0
0
1
1
R/W-0
RB0
PS0
R/W-0
X
6
-
0
1
0
1
6
6
Program memory page (Address)
Page 0
Page 1
Page 2
Page 3
T1P0
RSR5
0
1
0
1
R/W
R/W-0
X
T2EN
5
-
5
5
RSR4
R/W
1:2(Default)
X
4
-
R/W-0
T1EN
4
Prescale
R page # selected
R page 0
R page 1
R page 2
R page 3
4
1:32
1:64
1:8
R/W-0
RSR3
R/W
3
0
3
R/W-0
T2P1
3
R/W-0
RSR2
9
R/W
2
0
2
R/W-0
T2P0
2
R/W-0
RSR1
R/W
PS1
1
1
R/W-0
T1P1
1
R/W-0
RSR0
R/W
PS0
0
0
R/W-0
T1P0
0
EM785840/5841/5842
8-bit Micro-controller
2004/11/10 V1.2

Related parts for em78p5842