SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
19.12 USB Device Stall Register( DSTALL )
Mnemonic: DSTALL
Address: BFh
7
6
5
4
3
2
1
0
Reset
EP4D
EP3D
EP2D
EP1D
EP0D
-
00H
STALL STALL STALL STALL STALL
EP4DSTALL: EP4 stall bit set by software when EP4 has any error.
0 = Endpoint 4 device work.
1 = Endpoint 4 device stall.
EP3DSTALL: EP3 stall bit set by software when EP3 has any error.
0 = Endpoint 3 device work.
1 = Endpoint 3 device stall.
EP2DSTALL: EP2 stall bit set by software when EP2 has any error.
0 = Endpoint 2 device work.
1 = Endpoint 2 device stall.
EP1DSTALL: EP1 stall bit set by software when EP1 has any error.
0 = Endpoint 1 device work.
1 = Endpoint 1 device stall.
EP0DSTALL: EP0 stall bit set by software when EP0 has any error.
0= Endpoint 0 device work.
1= Endpoint 0 device stall.
19.13 USB Handshake Status Register( HSKSTAT )
Mnemonic: HSKSTAT
Address: B1h
7
6
5
4
3
2
1
0
Reset
EP4H
SK
EP3H
SK
EP2H
SK
EP1H
SK
EP0H
SK
-
80H
EP4HSK USB Endpoint 4 Handshake status.
If the last handshake packet is STALL, Error in Data packet, time out on USB bus or NACK
this bit will be set to „1‟ automatically. If the last handshake packet is ACK, this bit will be
cleared automatically. You can check this flag to know communication Status.
EP3HSK USB Endpoint 3 Handshake status.
If the last handshake packet is STALL, Error in Data packet, time out on USB bus or NACK
this bit will be set to „1‟ automatically. If the last handshake packet is ACK, this bit will be
cleared automatically. You can check this flag to know communication Status.
EP2HSK: USB Endpoint 2 Handshake status.
If the last handshake packet is STALL, Error in Data packet, time out on USB bus or NACK
this bit will be set to „1‟ automatically. If the last handshake packet is ACK, this bit will be
cleared automatically. You can check this flag to know communication Status.
EP1HSK: USB Endpoint 1 Handshake status.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071
Ver A SM59A16U1 04/12/2013
- 123 -