English
Language : 

SM59R16A5 Datasheet, PDF (1/89 Pages) SyncMOS Technologies,Inc – Two serial peripheral interfaces in full duplex mode
SM59R16A5/SM59R09A5/SM59R05A5
8-Bit Micro-controller
64KB/36KB/20KB with ISP Flash
& 2KB RAM embedded
Description ..........................................................................................................................................................................3
Features .............................................................................................................................................................................. 3
Pin Configuration ................................................................................................................................................................4
Block Diagram.....................................................................................................................................................................8
Pin Description....................................................................................................................................................................9
Special Function Register (SFR) ...................................................................................................................................... 11
Function Description .........................................................................................................................................................15
1. General Features .....................................................................................................................................................15
1.1. Embedded Flash .........................................................................................................................................15
1.2. IO Pads .......................................................................................................................................................15
1.3. 2T/1T Selection ...........................................................................................................................................15
1.4. RESET ........................................................................................................................................................16
1.4.1. Hardware RESET function .............................................................................................................16
1.4.2. Software RESET function ..............................................................................................................16
1.4.3. Time Access Key register (TAKEY)................................................................................................16
1.4.4. Software Reset register (SWRES).................................................................................................16
1.4.5. Example of software reset .............................................................................................................17
1.5. Clocks .........................................................................................................................................................17
2. Instruction Set ..........................................................................................................................................................18
3. Memory Structure.....................................................................................................................................................22
3.1. Program Memory ........................................................................................................................................22
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) ................................................................................25
3.2.3. Data memory - Expanded 2048 bytes ($0000 to $07FF) ..............................................................25
4. CPU Engine .............................................................................................................................................................26
4.1. Accumulator ................................................................................................................................................26
4.2. B Register ...................................................................................................................................................26
4.3. Program Status Word..................................................................................................................................27
4.4. Stack Pointer ...............................................................................................................................................27
4.5. Data Pointer ................................................................................................................................................27
4.6. Data Pointer 1 .............................................................................................................................................28
4.7. Internal RAM control register ......................................................................................................................28
4.8. Interface control register .............................................................................................................................28
5. GPIO ........................................................................................................................................................................30
6. Multiplication Division Unit (MDU)............................................................................................................................32
6.1. Operating registers of the MDU ..................................................................................................................32
6.2. Operation of the MDU .................................................................................................................................33
6.2.1. First phase: loading the MDx registers, x = 0~5: ...........................................................................33
6.2.2. Second phase: executing calculation. ...........................................................................................33
6.2.3. Third phase: reading the result from the MDx registers. ...............................................................34
6.3. Normalizing .................................................................................................................................................34
6.4. Shifting ........................................................................................................................................................34
7. Timer 0 and Timer 1 .................................................................................................................................................35
7.1. Timer/counter mode control register (TMOD) .............................................................................................35
7.2. Timer/counter control register (TCON) .......................................................................................................36
8. Timer 2 and Capture/Compare Unit .........................................................................................................................37
8.1. Timer 2 function...........................................................................................................................................39
8.1.1. Timer mode ....................................................................................................................................39
8.1.2. Event counter mode .......................................................................................................................39
8.1.3. Gated timer mode ..........................................................................................................................39
8.1.4. Reload of Timer 2...........................................................................................................................39
8.2. Compare function........................................................................................................................................39
8.2.1. Compare Mode 0 ...........................................................................................................................40
8.2.2. Compare Mode 1 ...........................................................................................................................40
8.3. Capture function..........................................................................................................................................41
8.3.1. Capture Mode 0 .............................................................................................................................41
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M047
1
Ver.H SM59R16A5 04/2015