SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
FOSVOS TEL: 021-58998693
17.1
Low Voltage Control Register( LVC ) ....................................................................................................113
18.
19.
10-bit Analog-to-Digital Converter ( ADC ).....................................................................................................114
18.1
ADC Control Register 1( ADCC1 )........................................................................................................114
ADC Control Register 2( ADCC2 )........................................................................................................115
ADC Data( ADCDH, ADCDL )...............................................................................................................115
ADC Clock Select( ADCCS ) ................................................................................................................116
18.2
18.3
18.4
USB function................................................................................................................................................117
19.1
19.2
19.3
19.4
19.5
19.6
19.7
19.8
USB Device Enumeration Transfer.......................................................................................................117
USB Interrupt In Transfer .....................................................................................................................117
USB Interrupt Out Transfer...................................................................................................................117
USB Bulk Transfer From Host to Device...............................................................................................118
USB Bulk Transfer From Device to Host...............................................................................................118
USB Control 1 Register( UCTRL1 )..................................................................................................... 120
USB Control 2 Register( UCTRL2 ) .................................................................................................... 121
USB Status Register( USTAT ) ............................................................................................................ 121
USB Device Address Register( DEVADR ) .......................................................................................... 122
USB Frame Number Register( FRMNUMH, FRMNUML ) ................................................................ 122
USB Host Stall Register( HSTALL ) ................................................................................................. 122
USB Device Stall Register( DSTALL ).............................................................................................. 123
USB Handshake Status Register( HSKSTAT )................................................................................. 123
USB Interrupt Enable Register 1( UIER1 )....................................................................................... 125
USB Interrupt Enable Register 2( UIER2 )....................................................................................... 125
USB Interrupt Flag Register 1( UIFR1 )........................................................................................... 126
USB Interrupt Flag Register 2( UIFR2 )........................................................................................... 126
USB Endpoint Data Ready Register( EPDRDY ) ............................................................................. 127
USB Endpoint 0 Data Counter Register( EP0CNT )......................................................................... 128
USB Endpoint 1 Data Counter Register( EP1CNT )......................................................................... 128
USB Endpoint 2 Data Counter Register( EP2CNT )......................................................................... 128
USB Endpoint 3 Data Counter Register( EP3CNT )......................................................................... 128
USB Endpoint 4 Data Counter Register( EP4CNT )......................................................................... 129
USB Endpoint 0 Data Register( EP0DATA ).................................................................................... 129
USB Endpoint 1 Data Register( EP1DATA )..................................................................................... 129
USB Endpoint 2 Data Register( EP2DATA )..................................................................................... 129
USB Endpoint 3 Data Register( EP3DATA )..................................................................................... 130
USB Endpoint 4 Data Register( EP4DATA )..................................................................................... 130
19.9
19.10
19.11
19.12
19.13
19.14
19.15
19.16
19.17
19.18
19.19
19.20
19.21
19.22
19.23
19.24
19.25
19.26
19.27
19.28
20.
21.
Barcode ...................................................................................................................................................... 131
20.1
Barcode Control Register( BCCTRL ).................................................................................................. 131
Start Address to SRAM Register( ADDR2ML, ADDR2MH ).................................................................. 132
Length of Data Register( LNGDATAL, LNGDATAH )............................................................................ 133
Rising of Data Register( RDATA )........................................................................................................ 133
Falling of Data Register( FDATA )........................................................................................................ 133
20.2
20.3
20.4
20.5
In-System Programming ( Internal ISP )....................................................................................................... 134
21.1
ISP service program............................................................................................................................ 134
Lock Bit ( N )....................................................................................................................................... 134
Program the ISP Service Program....................................................................................................... 135
Initiate ISP Service Program ............................................................................................................... 135
ISP register – TAKEY, IFCON, ISPFAH, ISPFAL, ISPFD and ISPFC.................................................... 136
Time Access Key Register( TAKEY ) ................................................................................................... 136
Interface Control Register( IFCON ) .................................................................................................... 137
ISP Flash Address Register( ISPFAH, ISPFAL ) .................................................................................. 137
ISP Flash Data Register( ISPFD ) ....................................................................................................... 137
ISP Flash Control Register( ISPFC ) ............................................................................................... 137
21.2
21.3
21.4
21.5
21.6
21.7
21.8
21.9
21.10
22.
OPA/Comparator......................................................................................................................................... 139
22.1
22.2
22.3
Op/Comparator Pin Select( OpPin )..................................................................................................... 140
Op/Comparator Pin Select 2( OpPin2 )................................................................................................ 141
Comparator 0 Control( Cmp0CON ) .................................................................................................... 141
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071
SM59A16U1U48VP OB59A16U1U48VP
- 4 -