English
Language : 

SM39R16A2 Datasheet, PDF (1/82 Pages) SyncMOS Technologies,Inc – Dual 16-bit Data Pointers
SM39R16A2/SM39R12A2/SM39R08A2
8-Bit Micro-controller
16KB/12KB/8KB with ISP Flash
& 256B RAM embedded
Table of Contents
Description............................................................................................................................................................3
Features.................................................................................................................................................................3
Pin Configuration..................................................................................................................................................4
28 Pin PDIP/SOP..........................................................................................................................................4
24 Pin PDIP/SOP..........................................................................................................................................5
20 Pin PDIP/SOP/SSOP ...............................................................................................................................5
Block Diagram......................................................................................................................................................6
Pin Description .....................................................................................................................................................7
Special Function Register (SFR) ........................................................................................................................10
Function Description ..........................................................................................................................................14
1 General Features ...........................................................................................................................................14
1.1 Embedded Flash..............................................................................................................................14
1.2 IO Pads............................................................................................................................................14
1.3 Instruction timing Selection............................................................................................................14
1.4 The Clock Out Selection.................................................................................................................15
1.5 RESET ............................................................................................................................................15
1.5.1 Hardware RESET function .................................................................................................15
1.5.2 Software RESET function ..................................................................................................15
1.5.3 Reset status .........................................................................................................................16
1.5.4 Time Access Key register (TAKEY) ..................................................................................16
1.5.5 Software Reset register (SWRES) ......................................................................................16
1.5.6 Example of software reset ..................................................................................................16
1.6 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) ......................................................................25
3.2.2 Data memory - higher 128 byte (80h to FFh).....................................................................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 Clock control register .....................................................................................................................28
4.8 Interface control register.................................................................................................................29
5 GPIO .............................................................................................................................................................30
6 Timer 0 and Timer 1 .....................................................................................................................................32
6.1 Timer/counter mode control register (TMOD) ...............................................................................32
6.2 Timer/counter control register (TCON)..........................................................................................33
6.3 Peripheral Frequency control register.............................................................................................33
6.4 Mode 0 (13-bit Counter/Timer) ......................................................................................................34
6.5 Mode 1 (16-bit Counter/Timer) ......................................................................................................34
6.6 Mode 2 (8-bit auto-reload Counter/Timer) .....................................................................................35
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M057
-1-
Ver.H SM39R16A2 07/2012