mpc82g516a Megawin Technology, mpc82g516a Datasheet - Page 97

no-image

mpc82g516a

Manufacturer Part Number
mpc82g516a
Description
8-bit Microcontroller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mpc82g516aE
Manufacturer:
MEGAWIN
Quantity:
1 200
Part Number:
mpc82g516aF
Manufacturer:
MEGAWIN
Quantity:
20 000
20.2 ISP Operation
In general, the user needn’t know how ISP operates because Megawin has provided the standard ISP tool (see
Section
technical information for ISP.
20.2.1 SFRs for ISP
The following special function registers are related to the ISP operation. All these registers can be accessed by
software in the user’s application program.
ISPCR (Address=E7H, ISP Control Register, Reset Value=000x,x000B)
ISPEN: Set to enable ISP function.
SWBS: Software boot select. Set/clear to select booting from ISP-memory/AP-memory for software reset.
SWRST: Write ‘1’ to this bit to trigger a software reset.
CKS2~CKS0: Configure ISP timing according to the oscillator frequency, see Table 20-2.
Table 20-2. ISP Timing Setting
IFMT (Address=E5H, ISP Mode Register, Reset Value=xxxx,x000B)
MS2, MS1 and
Table 20-3. ISP Mode Select
Standby Mode: Keep the ISP hardware in the deactivated state
Page Erase Mode: Erase one page (512 bytes) specified by the page address in [IFADRH,IFADRL]
Program Mode: Program data to Flash specified by the byte address in [IFADRH,IFADRL]
Read Mode: Read data from Flash specified by the byte address in [IFADRH,IFADRL]
97
ISPEN
CKS2 CKS1 CKS0
Bit-7
Bit-7
MS2
-
0
0
0
0
0
0
0
0
1
1
1
1
20.2.5). For the user who wants to design his own ISP operation, this section includes all the necessary
MS1
SWBS
0
0
1
1
0
0
1
1
0
0
1
1
Bit-6
Bit-6
-
MS0: ISP mode select bits, see Table 20-3.
MS0
0
1
0
1
0
1
0
1
0
1
0
1
SWRST
Bit-5
Bit-5
-
Oscillator Frequency (MHz)
Bit-4
Bit-4
Page Erase
-
-
ISP Mode
Program
Standby
20 ~ 24
12 ~ 20
6~ 12
3 ~ 6
2 ~ 3
1 ~ 2
Read
> 24
< 1
MPC82G516A Data Sheet
Bit-3
Bit-3
-
-
CKS2
MS2
Bit-2
Bit-2
CKS1
MS1
Bit-1
Bit-1
CKS0
MS0
Bit-0
Bit-0
MEGAWIN

Related parts for mpc82g516a