SyncMOS Technologies International MSM9066 Manuale utente

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
1
SyncMOS MSM9066 User’s Manual
Supported devices: SM59XX series, SM59RXX series, SM39RXX series
Table of contents
1 Introduction...................................................................................................................................2
2 Top View of MSM9066..................................................................................................................2
3 ISP Introduction ............................................................................................................................3
4 Configuration for ISP.....................................................................................................................4
5 ISP Entry Mechanism ...................................................................................................................6
6 ICP Introduction............................................................................................................................9
7 Comparison of ISP and ICP........................................................................................................10
8 Settings of SMAP........................................................................................................................ 11
9 User Interface of SMAP..............................................................................................................15
10 ISP Tutorial .................................................................................................................................18
11 ICP Tutorial.................................................................................................................................28
12 Off-line Mode Tutorial..................................................................................................................29

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
2
1 Introduction
1.1 MSM9066 supports ICP and allows users to easily program a code into SM39RXX Series and
SM59RXX Series without having to program the ISP Service CODE into Target IC. The product
also supports SM59XX Series, SM39RXX Series and SM59RXX Series ISP.
1.2 Supportable interfaces: USB.
2 Top View of MSM9066
[ISP]
VCC
GND
N/A
RxD
TxD
Button
[ICP]
VCC
GND
N/A
CLK
DATA
Power
(Red LED)
Busy
(Yellow LED)
Good
(Green LED)
Fail
(Red LED)
Supply Power
(Blue LED)

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
3
3 ISP Introduction
ISP (In-system programming) is a function that allows user to directly update MCU code on system
board. For example, With ISP firmware code residing in MCU, user can select RS-232 or USB to
execute functions of erase and program for MCU. Before user uses ISP, it is essential to program an
appropriate ISP firmware code to MCU with writer first.
ISP system diagram
SyncMOS provides application program and ISP source code for customer. ICs have included ISP
code before shipping, exclusive of SM39R02/04G1. For SM39R02/04G1 ISP requirement, please
contact SycMOS or agent.
Windows
application
program
User’s code
{……
If(…)
ISP();
…..}
ISP code
USB Port
UART
MSM9066

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
4
4 Configuration for ISP
If IC has been erased by universal programmer, please re-programming ISP code with universal
programmer. The user should configure the MCU by the below steps:
4.1 SM59XX series: Set N=1 with universal programmer.
4.2 SM59RXX and SM39RXX: Set N=2 with universal programmer.

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
5
4.3 Load ISP bin file according to your IC model, then execute programming action. ISP codes
attach in SMAP setup directory “C:\Program Files\SyncMOS\ SMAP\ISP”.

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
6
5 ISP Entry Mechanism
5.1 Hardware ISP: Using IC’s internal hardware mechanism to enter the ISP code area.
IC model
First address
$0000=FFH
P2.6/P2.7 = 0
P4.3 = 0
Rx inputs 2 clocks
Standard package
SM5964
Yes
No
No
No
SM5964A
Yes
Yes
Yes
No
SM59R02/03/04A1
Yes
Yes
Yes
Yes
SM59R04A2
Yes
Yes
Yes
Yes
SM59R05/09/16A3
Yes
Yes
Yes
Yes
SM59R05/09/16A5
Yes
Yes
Yes
Yes
SM59R05/09/16G6
Yes
Yes
Yes
Yes
SM59R01/02G1
Yes
Yes
Yes
Yes
Low pin count package
SM39R20/4051
Yes
No
P1.5 = 0
Yes
SM39R02/04G1
Yes
No
P1.5 = 0
Yes
SM39R08/12/16A2
Yes
Yes
P1.6 = 0
Yes
5.1.1“First address $0000=FFH”: Reset with first flash address blank ($0000=#FFH) will load the
PC counter with start address of ISP code area.
5.1.2“P2.6/P2.7 = 0”: User can force IC enter ISP code area by setting P2.6, P2.7 “active low”
during reset period.
5.1.3“P4.3 = 0”: User can force IC enter ISP code area by setting P4.3 “active low” during reset
period. The DIP package has no port 4, so QFP package and PLCC package support this
function.
5.1.4“Rx inputs 2 clocks”: Rx will be detected the two clock signals during hardware reset period.
5.2 Software ISP: Execute jump instruction can load the start address of the ISP code area to PC
counter. For example, insert Gotoisp.a51 in the project of Keil C, as shown in picture:

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
7
Gotoisp.a51:
; GOTOISP.A51
NAME GOTOISP
?PR?GotoIsp?GOTOISP SEGMENT CODE
PUBLIC GotoIsp
RSEG ?PR?GotoIsp?GOTOISP
USING 0
GotoIsp:
LJMP 03E00H ;isp start address
END
User’s program:
#include <….h>
…
extern void GoToIsp(void);
…
void main(void)
{
if(P4.3 = = 0)
{
GoToIsp();
}
…
…
}
Note:
※Please modify LJMP ISP start address according to IC model.

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
8
※SM59XX Series Series using Timer1 as baud rate generator in ISP service code. If using Timer2
as baud rate generator, please write T2CON = 0x00 before jumping ISP to avoid occupying
UART port.

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
9
6 ICP Introduction
ICP(In Circuit Programming) is a method of directly programming. ISP must have ISP boot code in
the IC, but ICP don’t need ISP boot code because built-in the hardware structure of IC.
ICP system diagram
Windows
application
program
SMAP
USB Port
MSM9066
ICP Interface

SyncMOS MSM9066
User’s Manual
Specifications subject to change without notice, contact your sales representatives for the most recent information.
10
7 Comparison of ISP and ICP
Items ISP ICP(2-Wires interface)
Supported IC
SM5964
SM5964A
SM59R02/03/04A1
SM59R04A2
SM59R05/09/16A3
SM59R05/09/16A5
SM59R05/09/16G6
SM59R01/02G1
SM39R20/4051
SM39R02/04G1
SM39R08/12/16A2
SM59R02/03/04A1
SM59R04A2
SM59R05/09/16A3
SM59R05/09/16A5
SM59R05/09/16G6
SM39R20/4051
SM39R02/04G1
SM39R08/12/16A2
Update IC
configuration
Only SM59RXX supported Yes
IC protect Yes Yes
Interface GND,RX,TX,VCC VCC,GND,OCI_SCL,OCI_SDA
Note 1. Needed 0.5k ISP code. N/A
Advantages User can use RS-232 or USB
to execute functions of erase
and program for MCU.
Not needed ISP code
Indice
Manuali Hardware per computer popolari di altre marche

EMC2
EMC2 VNX Series Manuale del proprietario

Panasonic
Panasonic DV0PM20105 Manuale utente

Mitsubishi Electric
Mitsubishi Electric Q81BD-J61BT11 Manuale utente

Gigabyte
Gigabyte B660M DS3H AX DDR4 Manuale utente

Raidon
Raidon iT2300 Manuale utente

National Instruments
National Instruments PXI-8186 Manuale utente











