C8051F380/1/2/3/4/5/6/7/C
SFR Definition 21.3. USB0DAT: USB0 Data
Bit
7
6
5
4
3
2
1
0
Name
USB0DAT[7:0]
Type
R/W
Reset
0
0
0
0
0
0
0
0
SFR Address = 0x97; SFR Page = All Pages
Bit
Name
Description
7:0 USB0DAT[7:0] USB0 Data Bits.
This SFR is used to indi-
rectly read and write
USB0 registers.
Write
Read
Write Procedure:
Read Procedure:
1. Poll for BUSY
1. Poll for BUSY
(USB0ADR.7) => 0.
(USB0ADR.7) => 0.
2. Load the target USB0 2. Load the target USB0
register address into the register address into the
USBADDR bits in register USBADDR bits in register
USB0ADR.
USB0ADR.
3. Write data to USB0DAT. 3. Write 1 to the BUSY bit
4. Repeat (Step 2 may be in register USB0ADR
skipped when writing to (steps 2 and 3 can be per-
the same USB0 register). formed in the same write).
4. Poll for BUSY
(USB0ADR.7) => 0.
5. Read data from USB0-
DAT.
6. Repeat from Step 2
(Step 2 may be skipped
when reading the same
USB0 register; Step 3 may
be skipped when the
AUTORD bit
(USB0ADR.6) is logic 1).
Rev. 1.4
177