70 STC12C5Axx
Technical Summary
Mode Selection
To Operate
0 0
Standby
0 1
AP-memory read
1 0
AP-memory/Data-flash program
1 1
AP-memory/Data-flash page erase
SFR:
IAP_TRIG (ISP Sequential Command register to trigger ISP/IAP operation)
Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
ISP-Command / Device ID
SFR:
IAP_CONTR (IAP Control register)
Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
IAPEN SWBS SWRST
CFAIL
-
WAIT
IAPEN: =
Determine if to Enable ISP/IAP functionality
0
: =
Disable ISP program to change flash.
1
: =
Enable ISP program to change flash.
SWBS: =
Software Boot entrance Selector
0
: =
Boot from main-memory.
1
: =
Boot from ISP memory.
Note: This bit will be loaded with HWBS(OR0.3) after power-up moment.
SWRST: =
Software Reset trigger
Setting this bit will cause the device reset.
CFAIL: =
ISP/IAP Command Fail flag
0
: =
The last ISP/IAP command has finished successfully.
1
: =
The last ISP/IAP command fails. It could be caused since the
access of flash memory
was inhibited.
WAIT: =
Waiting time selection while the flash is busy.
CPU Wait time (Oscillator cycle)
IAP_CONTR[2:0] Page
Erase
Program
Read
Recommended
System clock
0 0 0
672384
1760
2
30M~24M
0 0 1
504288
1320
2
24M~20M
0 1 0
420240
1100
2
20M~12M
0 1 1
252144
660
2
12M~6M
1 0 0
126072
330
2
6M~3M
1 0 1
63036
165
2
3M~2M
1 1 0
42024
110
2
2M~1M
1 1 1
21012
55
2
< 1M
Notice
: Software reset actions could reset other SFR, but it never influences bits IAPEN
and SWBS. The ISPEN and SWBS only will be reset by power-up action, while
not software reset.
http://www.DataSheet4U.net/
datasheet pdf - http://www.DataSheet4U.net/