Initialization Processing - NEC mPD78F0730 Preliminary User's Manual

8-bit single-chip microcontroller
Table of Contents

Advertisement

12.7.1 Initialization processing

Initialization processing is executed in the following two ways.
• Initialization of request data register
• Setting of interrupt
When the request data register is initialized, data for the GET_XXXX request to which a value is to be automatically
returned is written and an endpoint is allocated to an interface. In the interrupt settings, the interrupt sources that do
not have to be checked can be masked by using the UF0IMn register (n = 0 to 4).
The following flowcharts illustrate the above processing.
Remark
n = 0 to 255
356
Downloaded from
Elcodis.com
electronic components distributor
CHAPTER 12 USB FUNCTION CONTROLLER (USBF)
Figure 12-9. Initializing Request Data Register
START
UF0E0NA register = 01H
EP0NKA = 1?
(UF0E0NA)
Yes
Initialization of request
:
See Figure 12-10 Initialization of Request Data Register.
data register
If the total number of bytes of the UF0CIEn register exceeds 256,
UF0MODC register =
set the UF0MODC register to 40H. No data has to be written to
40H or 00H
the UF0CIEn register.
Setting of interface
:
See Figure 12-11 Setting of Interface and Endpoint.
and endpoint
Cancels NAK response to Endpoint0.
UF0E0NA register = 00H
END
Preliminary User's Manual U19014EJ1V0UD
No

Advertisement

Table of Contents
loading

Table of Contents