SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
FOSVOS TEL: 021-58998693
6.4
Shifting ................................................................................................................................................. 45
Timer 0 and Timer 1 ...................................................................................................................................... 46
Timer/Counter Mode Vontrol Register (TMOD)...................................................................................... 46
Timer/Counter Control Register( TCON )............................................................................................... 47
Timer 0 Register( TL0, TH0 )................................................................................................................. 48
Timer 1 Register( TL1, TH1 )................................................................................................................. 48
Peripheral Frequency Control Register.................................................................................................. 48
Mode 0( 13-bit Counter/Timer ) ............................................................................................................. 49
Mode 1( 16-bit Counter/Timer ) ............................................................................................................. 50
Mode 2( 8-bit auto-reload Counter/Timer )............................................................................................. 50
Mode 3( Timer 0 acts as two independent 8 bit Timers / Counters ) ....................................................... 51
Timer 2 and Capture Compare Unit ............................................................................................................... 52
Auxiliary 2 Register( AUX2 ).................................................................................................................. 52
Timer 2 Control Register( T2CON ) ....................................................................................................... 53
Compare/Capture Control Register( CCCON ) ...................................................................................... 54
Compare/Capture Enable Register( CCEN ).......................................................................................... 55
Compare/Capture Enable 2 Register( CCEN2 )..................................................................................... 55
Timer 2 Register( TL2, TH2 )................................................................................................................. 57
Compare/Reload/Capture Registers( CRCL, CRCH ) ............................................................................ 57
Compare/Capture Register 1( CCL1, CCH1 )........................................................................................ 57
Compare/Capture Register 2( CCL2, CCH2 )........................................................................................ 57
7.
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
7.9
8.
8.1
8.2
8.3
8.4
8.5
8.6
8.7
8.8
8.9
8.10
8.11
Compare/Capture Register 3( CCL3, CCH3 )........................................................................................ 57
Timer 2 Function................................................................................................................................... 58
8.11.1
Timer Mode.............................................................................................................................. 58
Event Counter Mode................................................................................................................. 58
Gated Timer Mode.................................................................................................................... 59
Reload of Timer 2..................................................................................................................... 59
8.11.2
8.11.3
8.11.4
8.12
8.13
Compare Function ................................................................................................................................ 59
8.12.1
8.12.2
Compare Mode 0...................................................................................................................... 59
Compare Mode 1...................................................................................................................... 60
Capture Function .................................................................................................................................. 61
8.13.1
8.13.2
Capture Mode 0 ( by Hardware )............................................................................................... 61
Capture Mode 1( by Software )................................................................................................. 62
9.
Serial Interface 0 and 1 ................................................................................................................................. 63
Serial Port 0 Control Register( S0CON )................................................................................................ 63
Serial Port 0 Reload Register( S0RELL, S0RELH ) ............................................................................... 64
Serial Port 0 Data Buffer( S0BUF )........................................................................................................ 64
Serial Port 1 Control Register( S1CON )................................................................................................ 64
Serial Port 1 Reload Register( S1RELL, S1RELH ) ............................................................................... 65
Serial Port 1 Data Buffer( S1BUF )........................................................................................................ 65
Serial Interface 0................................................................................................................................... 65
9.1
9.2
9.3
9.4
9.5
9.6
9.7
9.7.1
9.7.2
9.7.3
9.7.4
Mode 0......................................................................................................................................... 66
Mode 1......................................................................................................................................... 66
Mode 2......................................................................................................................................... 67
Mode 3......................................................................................................................................... 67
9.8
Serial Interface 1................................................................................................................................... 67
9.8.1
9.8.2
Mode A......................................................................................................................................... 67
Mode B......................................................................................................................................... 68
9.9
9.10
Multiprocessor communication of Serial Interface 0 and 1 ..................................................................... 68
Baud Rate Generator............................................................................................................................ 69
9.10.1
9.10.2
Serial Interface 0 modes 1 and 3 .............................................................................................. 69
Serial Interface 1 modes A and B.............................................................................................. 70
9.11
Clock Source for baud rate.................................................................................................................... 70
10.
Watchdog timer............................................................................................................................................. 71
10.1
10.2
Watchdog Timer Control Register( WDTC )........................................................................................... 73
Watchdog Timer Refresh Register( WDTK ) .......................................................................................... 73
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071
SM59A16U1U48VP OB59A16U1U48VP
- 2 -