SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
19.23 USB Endpoint 4 Data Counter Register( EP4CNT )
Mnemonic: EP4CNT
Address: A4h
7
-
6
5
4
3
2
1
0
Reset
00H
EP4CNT[6:0]
EP4CNT[6:0]:
The EP4CNT is automatically incremented by 1 after the endpoint 4 received FIFO register
(EP4DATA) is written by SIE. The EP4CNT will count to 40H when it reaches the maximum
count. The EP4CNT is automatically decreased by 1 after the MCU to read EP4DATA
register. If EP4CNT = 00h, the Endpoint 4 FIFO is empty.
19.24 USB Endpoint 0 Data Register( EP0DATA )
Mnemonic: EP0DATA
Address: A7h
7
6
5
4
3
2
1
0
Reset
00H
EP0DATA[7:0]
EP0DATA[7:0]: Endpoint 0 transmit/receive register.
This register is responsible to store the USB standard command from the USB host, or be
written with the descriptor contents by MCU and waiting for SIE to fetch them. When USB
host sends the 8-byte standard command to endpoint 0 FIFO, an interrupt (UIFR1 bit 0)
should be generated to inform the MCU. When MCU need to send the descriptors via
endpoint 0, the MCU must write the descriptors to this register.
19.25 USB Endpoint 1 Data Register( EP1DATA )
Mnemonic: EP1DATA
Address: 9Eh
7
6
5
4
3
2
1
0
Reset
00H
EP1DATA[7:0]
EP1DATA[7:0]: Endpoint 1 transmits FIFO data register
This port is used to read or write one of the transmit mailbox registers. The register being
accessed is selected by the endpoint 1 FIFO pointer register. The eight transmit registers
are written by the MCU and are read by a USB interrupt transfer from endpoint 1. They can
be used to pass messages from the MCU to the USB host. The format and content of the
messages is user defined. If enabled, USB host reads from this register can generate a
local interrupt.
Note: These registers are writing only during USB operation.
19.26 USB Endpoint 2 Data Register( EP2DATA )
Mnemonic: EP2DATA
Address: 9Fh
7
6
5
4
3
2
1
0
Reset
00H
EP2DATA[7:0]
EP2DATA[7:0]: Endpoint 2 Received FIFO data register.
This register is used by the MCU to read data from the USB receive FIFO. The FIFO data
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071
Ver A SM59A16U1 04/12/2013
- 129 -