Datasheet

PIC16C745/765
DS41124D-page 70 Preliminary 1999-2013 Microchip Technology Inc.
REGISTER 10-11: BUFFER DESCRIPTOR STATUS. BITS READ BY THE MCU
(BDndST: 1A0h, 1A4h, 1A8h, 1ACh, 1B0h, 1B4h)
REGISTER 10-12: BUFFER DESCRIPTOR BYTE COUNT
(BDndBC: 1A1h, 1A5h, 1A9h, 1ADh, 1B1h, 1B5h)
R/W-0 R/W-X R/W-X R/W-X R/W-X R/W-X U-X U-X
UOWN DATA0/1 PID3 PID2 PID1 PID0 R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as ‘0’
-n = Value at POR reset
X = Don’t care
bit7 bit0
bit 7: UOWN: USB Own
This UOWN bit determines who currently owns the buffer. The SIE writes a 0 to this bit when it has com-
pleted a token. This byte of the BD should always be the last byte the MCU updates when it initializes a
BD. Once the BD has been assigned to the USB, the MCU should not change it in any way.
1 = USB has exclusive access to the BD. The MCU should not modify the BD or buffer.
0 = The MCU has exclusive access to the BD. The USB ignores all other fields in the BD.
bit 6: DATA0/1: This bit defines the type of data toggle packet that was transmitted or received
1 = Data 1 packet
0 = Data 0 packet
bit 5-2: PID<3:0>: Packet Identifier
The received token PID value.
bit 1-0: Reserved: Read as 'X'
Note: Recommend that users not use BSF, BCF due to the dual functionality of this register.
U-X U-X U-X U-X R/W-X R/W-X R/W-X R/W-X
BC3 BC2 BC1 BC0 R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as ‘0’
-n = Value at POR reset
X = Don’t care
bit7 bit0
bit 7-4: Reserved: Read as ’X’
bit 3-0: BC<3:0>: The Byte Count bits represent the number of bytes that will be transmitted for an IN TOKEN or
received during an OUT TOKEN. Valid byte counts are 0 - 8. The SIE will change this field upon the com-
pletion of an OUT or SETUP token with the actual byte count of the data received.