English
Language : 

SM59R02G1 Datasheet, PDF (1/57 Pages) SyncMOS Technologies,Inc – Instruction-set compatible with MCS-51
SM59R02G1
8-Bit Micro-controller
8KB with ISP Flash
& 256B RAM embedded
Description ..........................................................................................................................................................................3
Features .............................................................................................................................................................................. 3
Pin Configuration ................................................................................................................................................................4
Block Diagram...................................................................................................................................................................10
Pin Description.................................................................................................................................................................. 11
Special Function Register (SFR) ......................................................................................................................................13
Function Description .........................................................................................................................................................16
1. General Features .....................................................................................................................................................16
1.1. Embedded Flash .........................................................................................................................................16
1.2. IO Pads .......................................................................................................................................................16
1.3. 2T/1T Selection ...........................................................................................................................................16
1.4. RESET ........................................................................................................................................................17
1.4.1. Hardware RESET function .............................................................................................................17
1.4.2. Software RESET function ..............................................................................................................17
1.4.3. Time Access Key register (TAKEY)................................................................................................17
1.4.4. Software Reset register (SWRES).................................................................................................17
1.4.5. Reset Status Flag(RSTS)...............................................................................................................18
1.4.6. Example of software reset .............................................................................................................18
1.5. Clocks .........................................................................................................................................................18
2. Instruction Set ..........................................................................................................................................................19
3. Memory Structure.....................................................................................................................................................23
3.1. Program Memory ........................................................................................................................................23
3.2. Data Memory...............................................................................................................................................24
3.2.1. Data memory - lower 128 byte (00h to 7Fh) ..................................................................................24
3.2.2. Data memory - higher 128 byte (80h to FFh) ................................................................................24
4. CPU Engine .............................................................................................................................................................25
4.1. Accumulator ................................................................................................................................................25
4.2. B Register ...................................................................................................................................................25
4.3. Program Status Word..................................................................................................................................26
4.4. Stack Pointer ...............................................................................................................................................26
4.5. Data Pointer ................................................................................................................................................26
4.6. Data Pointer 1 .............................................................................................................................................27
4.7. Interface control register .............................................................................................................................27
5. GPIO ........................................................................................................................................................................28
6. Timer 0 and Timer 1 .................................................................................................................................................30
6.1. Timer/counter mode control register (TMOD) .............................................................................................30
6.2. Timer/counter control register (TCON) .......................................................................................................31
6.3. Peripheral Frequency control register(PFCON)..........................................................................................31
6.4. Mode 0 (13-bit Counter/Timer)....................................................................................................................32
6.5. Mode 1 (16-bit Counter/Timer)....................................................................................................................32
6.6. Mode 2 (8-bit auto-reload Counter/Timer) ..................................................................................................33
6.7. Mode 3 (Timer 0 acts as two independent 8 bit Timers / Counters) ...........................................................33
7. Timer 2 and Capture/Compare Unit .........................................................................................................................34
7.1. Timer 2 function...........................................................................................................................................36
7.1.1. Timer mode ....................................................................................................................................36
7.1.2. Event counter mode .......................................................................................................................36
7.1.3. Gated timer mode ..........................................................................................................................36
7.1.4. Reload of Timer 2...........................................................................................................................36
7.2. Compare function........................................................................................................................................36
7.2.1. Compare Mode 0 ...........................................................................................................................37
7.2.2. Compare Mode 1 ...........................................................................................................................37
7.3. Capture function..........................................................................................................................................38
7.3.1. Capture Mode 0 .............................................................................................................................38
7.3.2. Capture Mode 1 .............................................................................................................................38
8. Serial interface 0 ......................................................................................................................................................39
8.1. Serial interface 0 .........................................................................................................................................40
8.1.1. Mode 0 ...........................................................................................................................................40
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M061
1
Ver.G SM59R02G1 09/2015