English
Language : 

SM39R16A3 Datasheet, PDF (1/87 Pages) SyncMOS Technologies,Inc – 16KB on-chip program memory
SM39R16A3
8-Bit Micro-controller
with 16KB ISP Flash
& 512B RAM embedded
Product List .........................................................................................................................................................................3
Description ..........................................................................................................................................................................3
Ordering Information...........................................................................................................................................................3
Features .............................................................................................................................................................................. 3
Pin Configuration ................................................................................................................................................................4
Block Diagram.....................................................................................................................................................................6
Pin Description....................................................................................................................................................................7
Special Function Register (SFR) ........................................................................................................................................8
Function Description .........................................................................................................................................................12
1. General Features .....................................................................................................................................................12
1.1 Embedded Flash .............................................................................................................................................12
1.2 IO Pads............................................................................................................................................................12
1.3 Instruction timing Selection .............................................................................................................................12
1.4 The Clock Out Selection..................................................................................................................................13
1.5 RESET.............................................................................................................................................................13
1.5.1 Hardware RESET function ..........................................................................................................................13
1.5.2 Software RESET function ...........................................................................................................................13
1.5.3 Reset status ................................................................................................................................................14
1.5.4 Time Access Key register (TAKEY).............................................................................................................14
1.5.5 Software Reset register (SWRES)..............................................................................................................14
1.5.6 Example of software reset...........................................................................................................................15
1.6 Clocks..............................................................................................................................................................15
2. Instruction Set ..........................................................................................................................................................16
3. Memory Structure.....................................................................................................................................................20
3.1 Program Memory.............................................................................................................................................20
3.2 Data Memory ...................................................................................................................................................21
3.3 Data memory - lower 128 byte (00h to 7Fh) ...................................................................................................21
3.4 Data memory - higher 128 byte (80h to FFh) ..................................................................................................21
3.5 Data memory - Expanded 256 bytes ($00 到 $FF) .........................................................................................21
4. CPU Engine .............................................................................................................................................................22
4.1 Accumulator.....................................................................................................................................................22
4.2 B Register........................................................................................................................................................22
4.3 Program Status Word ......................................................................................................................................23
4.4 Stack Pointer ...................................................................................................................................................23
4.5 Data Pointer.....................................................................................................................................................23
4.6 Data Pointer 1..................................................................................................................................................24
4.7 Clock control register.......................................................................................................................................24
4.8 Interface control register..................................................................................................................................25
5. GPIO ........................................................................................................................................................................26
5.1 SFR Setting Method ........................................................................................................................................26
5.2 Software of Writer Setting Method ..................................................................................................................27
6. Timer 0 and Timer 1 .................................................................................................................................................28
6.1 Timer/counter mode control register (TMOD) .................................................................................................28
6.2 Timer/counter control register (TCON)............................................................................................................29
6.3 Enhance Interrupt Trigger SFR(ENHIT) ..........................................................................................................30
6.4 Peripheral Frequency control register .............................................................................................................30
6.5 Mode 0 (13-bit Counter/Timer) ........................................................................................................................31
6.6 Mode 1 (16-bit Counter/Timer) ........................................................................................................................32
6.7 Mode 2 (8-bit auto-reload Counter/Timer).......................................................................................................32
6.8 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...............................................................................................................................................37
7.1.1 Timer mode .................................................................................................................................................37
7.1.2 Event counter mode ....................................................................................................................................37
7.1.3 Gated timer mode .......................................................................................................................................38
7.1.4 Reload of Timer 2........................................................................................................................................38
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M065
Ver F SM39R16A3 06/30/2015
-1-