SM39A16M1
8-Bit Micro-controller
16KB with ISP Flash
& 1K+256B RAM embedded
There are 6 kinds of entry mechanisms for user different applications. This entry method will select on the writer or ISP.
(1) First Address Blank. i.e. $0000 = 0xFF. And triggered by Internal reset signal.
(2) First Address Blank. i.e. $0000 = 0xFF. And triggered by PAD reset signal.
(3) P1.2, P1.3 (or P1.4) = 0. And triggered by Internal reset signal.
(4) P1.2, P1.3 (or P1.4 )= 0. And triggered by PAD reset signal.
(5) P3.0 input 2 clocks. And triggered by Internal reset signal.
(6) P3.0 input 2 clocks. And triggered by PAD reset signal.
18.5 ISP register – TAKEY, IFCON, ISPFAH, ISPFAL, ISPFD and ISPFC
Mnemonic
Description
Dir.
Bit 7
Bit 6
ISP function
Bit 5
Bit 4
TAKEY [7:0]
F5K
Bit 3
Bit 2
Bit 1
Bit 0
RST
Time Access Key
register
Interface Control
register
TAKEY
IFCON
F7h
8Fh
00H
00H
-
CDPR
-
-
-
EMEN
ISPE
ISP Flash
ISPFAH
ISPFAL
Address – High
register
ISP Flash
Address - Low
register
ISP Flash Data
register
E1h
E2h
ISPFAH [7:0]
FFH
ISPFAL [7:0]
ISPFD [7:0]
FFH
FFH
ISPFD
ISPFC
E3h
E4h
ISP Flash Control
register
EMF1
EMF2
EMF3
3
EMF4
-
ISPF.2 ISPF.1 ISPF.0 00H
Mnemonic: TAKEY
Address: F7H
7
6
5
4
2
1
0
Reset
00H
TAKEY [7:0]
ISP enable bit (ISPE) is read-only by default, software must write three specific values 55h, AAh and 5Ah
sequentially to the TAKEY register to enable the ISPE bit write attribute. That is:
MOV TAKEY, #55h
MOV TAKEY, #0AAh
MOV TAKEY, #5Ah
Mnemonic: IFCON
Address: 8FH
7
-
6
5
-
4
F5K
3
-
2
-
1
0
Reset
00H
CDPR
EMEN
ISPE
The bit 0 (ISPE) of IFCON is ISP enable bit. User can enable overall SM39A16M1 ISP function by setting ISPE
bit to 1, to disable overall ISP function by set ISPE to 0. The function of ISPE behaves like a security key. User
can disable overall ISP function to prevent software program be erased accidentally. ISP registers ISPFAH,
ISPFAL, ISPFD and ISPFC are read-only by default. Software must be set ISPE bit to 1 to enable these 4
registers write attribute.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M069
Ver C SM39A16M1 7/31/2013
- 97 -