NEC mPD78F0730 Preliminary User's Manual page 337

8-bit single-chip microcontroller
Table of Contents

Advertisement

(2) UF0 EP0 status register L (UF0E0SL)
This register stores the value that is to be returned in response to the GET_STATUS Endpoint0 request.
This register can be read or written in 8-bit units. Note, however, that data can be written to this register only
when the EP0NKA bit is set to 1.
If an error occurs in USBF, the E0HALT bit is set to 1 by FW. A write access to this register is ignored while a
USB-side access to Endpoint0 is being received.
When the E0HALT bit is set to 1 by FW, it is not reflected until the next SETUP token is received if the control
transfer immediately before is for the SET_FEATURE Endpoint0, CLEAR_FEATURE Endpoint0, GET_STATUS
Endpoint0 request, or an FW-processed request.
The hardware automatically transmits the contents of this register to the host when it has received the
GET_STATUS Endpoint0 request. If Endpoint0 has stalled, the UF0E0W and UF0E0R registers are cleared,
and the EP0NKW and EP0NKR bits of the UF0E0N register are cleared to 0.
Caution To rewrite this register, set the EP0NKA bit to 1 before reading the register contents, and
UF0E0SL
Bit position
Downloaded from
Elcodis.com
electronic components distributor
CHAPTER 12 USB FUNCTION CONTROLLER (USBF)
rewrite the register contents after confirming that the bit has been set, in order to prevent
conflict between a read access and a write access.
7
6
5
0
0
0
Bit name
0
E0HALT
This bit indicates the status of Endpoint0.
1: Stalled
0: Not stalled
This bit is set to 1 by hardware when the SET_FEATURE Endpoint0 request has been
received, and cleared to 0 by hardware when the CLEAR_FEATURE Endpoint0 request
has been received. DATA PID is initialized to DATA0.
4
3
2
0
0
0
Preliminary User's Manual U19014EJ1V0UD
1
0
Address
0
E0HALT
FF9CH
Function
After reset
00H
337

Advertisement

Table of Contents
loading

Table of Contents