AVR16DU20 USB0 registers The 11 registers of USB0 (USB Device Controller), from 0xC00, with their reset value and every field. The AVR16DU20 has 408 registers in 39 peripherals, one page each.
USB0 USB Device Controller CTRLAControl A
Address 0xC00
Reset 0x00
Access read/write 7 ENABLE 6 – 5 FIFOEN 4 STFRNUM 3 MAXEP3 2 MAXEP2 1 MAXEP1 0 MAXEP0 4 fields
Field Bits What it does ENABLE 7 USB Enable FIFOEN 5 Transaction Complete FIFO Enable STFRNUM 4 Store Frame Number Enable MAXEP 3:0 Maximum Endpoint Address
CTRLBControl B
Address 0xC01
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 URESUME 2 GNAUTO 1 GNAK 0 ATTACH 4 fields
Field Bits What it does URESUME 3 Send Upstream Resume GNAUTO 2 Set GNAK Automatically after SETUP GNAK 1 Respond with NAK on all Endpoints ATTACH 0 Attach
BUSSTATEBus State
Address 0xC02
Reset 0x00
Access read only 7 – 6 – 5 – 4 WTRSM 3 URESUME 2 DRESUME 1 SUSPENDED 0 BUSRST 5 fields
Field Bits What it does WTRSM 4 Wait Time Resume URESUME 3 Upstream Resume DRESUME 2 Downstram Resume SUSPENDED 1 Bus Suspended BUSRST 0 Bus Reset
ADDRAddress
Address 0xC03
Reset 0x00
Access read/write 7 – 6 ADDR6 5 ADDR5 4 ADDR4 3 ADDR3 2 ADDR2 1 ADDR1 0 ADDR0 1 field
Field Bits What it does ADDR 6:0 Device Address
FIFOWPFIFO Write Pointer
Address 0xC04
Reset 0xFF
Access read/write 7 – 6 – 5 – 4 FIFOWP4 3 FIFOWP3 2 FIFOWP2 1 FIFOWP1 0 FIFOWP0 1 field
Field Bits What it does FIFOWP 4:0 FIFO Write Pointer
FIFORPFIFO Read Pointer
Address 0xC05
Reset 0xFF
Access read/write 7 – 6 – 5 – 4 FIFORP4 3 FIFORP3 2 FIFORP2 1 FIFORP1 0 FIFORP0 1 field
Field Bits What it does FIFORP 4:0 FIFO Read Pointer
EPPTREndpoint Configuration Table Pointer
Address 0xC06
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does EPPTR 15:0 Endpoint Configuration Table Pointer
INTCTRLAInterrupt Control A
Address 0xC08
Reset 0x00
Access read/write 7 SOF 6 SUSPEND 5 RESUME 4 RESET 3 STALLED 2 UNF 1 OVF 0 – 7 fields
Field Bits What it does SOF 7 Start Of Frame Interrupt Enable SUSPEND 6 Suspend Interrupt Enable RESUME 5 Resume Interrupt Enable RESET 4 Reset Interrupt Enable STALLED 3 STALL Interrupt Enable UNF 2 Underflow Interrupt Enable OVF 1 Overflow Interrupt Enable
INTCTRLBInterrupt Control B
Address 0xC09
Reset 0x00
Access read/write 7 – 6 – 5 TRNCOMPL 4 – 3 – 2 – 1 GNDONE 0 SETUP 3 fields
Field Bits What it does TRNCOMPL 5 Transaction Complete Interrupt Enable GNDONE 1 GNAK Operation Done Interrupt Enable SETUP 0 SETUP Transaction Complete Interrupt Enable
INTFLAGSAInterrupt Flags A
Address 0xC0A
Reset 0x00
Access read/write 7 SOF 6 SUSPEND 5 RESUME 4 RESET 3 STALLED 2 UNF 1 OVF 0 – 7 fields
Field Bits What it does SOF 7 Start Of Frame Interrupt Flag SUSPEND 6 Suspend Interrupt Flag RESUME 5 Resume Interrupt Flag RESET 4 Reset Interrupt Flag STALLED 3 STALL Interrupt Flag UNF 2 Underflow Interrupt Flag OVF 1 Overflow Interrupt Flag
INTFLAGSBInterrupt Flags B
Address 0xC0B
Reset 0x00
Access read/write 7 – 6 – 5 TRNCOMPL 4 – 3 – 2 RMWBUSY 1 GNDONE 0 SETUP 4 fields
Field Bits What it does TRNCOMPL 5 Transaction Complete Interrupt Flag RMWBUSY 2 RMW Busy Flag GNDONE 1 GNAK Operation Done Interrupt Flag SETUP 0 SETUP Transaction Complete Interrupt Flag