mg82fel308 Megawin Technology, mg82fel308 Datasheet - Page 11

no-image

mg82fel308

Manufacturer Part Number
mg82fel308
Description
A Single-chip Microcontroller Based On A High Performance 1-t Architecture 80c51
Manufacturer
Megawin Technology
Datasheet
CMOD
ACC
WDTCR
IFD
IFADRH
IFADRL
IFMT
IAPLB
SCMD
ISPCR
P4
CCAP0L
B
P5
CCAP0H
Note1: The registers are addressed by IFMT and SCMD. Please refer the IFMT register description for more
detail information.
4.3. SFR Paging
The MG82FE(L)308/316 features SFR paging, allowing the device to map many SFRs into the 0x80 to 0xFF
memory address space. The SFR memory space has 16 pages. In this way, each memory location from 0x80 to
0xFF can access up to 128 SFRs. The MG82FE(L)308/316 utilizes two SFR pages: 0 and F. SFR pages are
selected using the Special Function Register Page Index register, SFRPI. The procedure for reading and writing
an SFR is as follows:
1. Select the appropriate SFR page number using the SFRPI register.
2. Use direct accessing mode to read or write the special function register (MOV instruction).
SFRPI: SFR Page Index Register
SFR Address
SFR Page
Bit 7~4: Reserved for testing. Must write “0” on these bits.
Bit 3~0: SFR Page Index. The available pages are only page “0” and “F”.
There are two registers in Page 0 only, T2CON(C8H) and CCON(D8H), and two registers in Page F only,
P6(C8H) and P7(D8H). Other registers are accessed in both page “0” and page “F”.
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2009 All rights reserved.
QP-7300-03D
11/84
--
7
R
Counter Mode Reg.
Accumulator
Watch-dog-timer
Control register
ISP Flash data
ISP
High
ISP Flash Address
Low
ISP Mode Table
IAP Low Boundary
ISP Serial Command
ISP Control Register
Port 4
PWM Counter L-Duty
B Register
Port 5
PWM Counter H-Duty
MEGAWIN
MAKE YOU WIN
PIDX[3:0]
Flash
= 0xAC
= All
--
6
R
0000
0001
0010
0011
……
……
……
1111
address
Note 1 IAPLB6
--
5
R
EAH
D9H
E0H
E1H
E2H
E3H
E4H
E5H
E6H
E7H
E8H
F0H
F8H
FAH
Selected Page
ISPEN
ACC.7
CIDL
WRF
F7H
P5.7
--
--
Page 0
Page 1
Page 2
Page 3
Page F
……
……
……
--
4
R
Reset Value = XXXX-0000
IAPLB5
ACC.6
POS2
P4.6
P5.6
F6H
BS
--
--
PIDX3
IAPLB4 IAPLB3 IAPLB2
ACC.5
POS1
SRST
R/W
ENW
P4.5
P5.5
F5H
3
--
ACC.4
CFAIL
POS0
CLW
P4.4
P5.4
F4H
--
PIDX2
R/W
2
ACC.3
CPS2
WIDL
MS3
P4.3
P5.3
F3H
--
IAPLB1
PIDX1
ACC.2
MG82FE(L)308/316
CPS1
MS2
P4.2
P5.2
PS2
F2H
R/W
--
1
IAPLB0
ACC.1
CPS0
MS1
P4.1
P5.1
PS1
F1H
Preliminary, v 0.04
--
PIDX0
R/W
0
ACC.0
MS0
P4.0
P5.0
ECF
PS0
F0H
--
--
0x000000B
11111111B
00000000B
00000000B
xxxx0000B
11111111B
xxxxxxxxB
0000xxxxB
11111111B
00000000B
00000000B
11111111B
00000000B
00000000B
00000000B

Related parts for mg82fel308