SAM4S UDP
USB Device Port (UDP) User Interface
Registers
Address | Register | Name | Access | Reset |
---|---|---|---|---|
0x40034000 | Frame Number Register | UDP_FRM_NUM | read-only | 0x00000000 |
0x40034004 | Global State Register | UDP_GLB_STAT | read-write | 0x00000010 |
0x40034008 | Function Address Register | UDP_FADDR | read-write | 0x00000100 |
0x40034010 | Interrupt Enable Register | UDP_IER | write-only | - |
0x40034014 | Interrupt Disable Register | UDP_IDR | write-only | - |
0x40034018 | Interrupt Mask Register | UDP_IMR | read-only | 0x00001200 |
0x4003401C | Interrupt Status Register | UDP_ISR | read-only | - |
0x40034020 | Interrupt Clear Register | UDP_ICR | write-only | - |
0x40034028 | Reset Endpoint Register | UDP_RST_EP | read-write | 0x00000000 |
0x40034030 | Endpoint Control and Status Register | UDP_CSR[8] | read-write | 0x0 |
0x40034050 | Endpoint FIFO Data Register | UDP_FDR[8] | read-write | 0x0 |
0x40034074 | Transceiver Control Register | UDP_TXVC | read-write | 0x00000100 |
Register Fields
UDP Frame Number Register
Name: UDP_FRM_NUM
Access: read-only
Address: 0x40034000
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | FRM_OK | FRM_ERR |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | - | - | - | FRM_NUM | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
FRM_NUM |
- FRM_NUM: Frame Number as Defined in the Packet Field Formats
- FRM_ERR: Frame Error
- FRM_OK: Frame OK
-
-
-
UDP Global State Register
Name: UDP_GLB_STAT
Access: read-write
Address: 0x40034004
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | - | - | - | - | - | - |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
- | - | - | RMWUPE | RSMINPR | ESR | CONFG | FADDEN |
- FADDEN: Function Address Enable
- CONFG: Configured
- ESR: Enable Send Resume
Value Name Description 0 - Mandatory value prior to starting any Remote Wake Up procedure. 1 - Starts the Remote Wake Up procedure if this bit value was 0 and if RMWUPE is enabled. - RSMINPR
- RMWUPE: Remote Wake Up Enable
Value Name Description 0 - The Remote Wake Up feature of the device is disabled. 1 - The Remote Wake Up feature of the device is enabled.
-
-
-
UDP Function Address Register
Name: UDP_FADDR
Access: read-write
Address: 0x40034008
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | - | - | - | - | - | FEN |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
- | FADD |
- FADD: Function Address Value
- FEN: Function Enable
-
-
UDP Interrupt Enable Register
Name: UDP_IER
Access: write-only
Address: 0x40034010
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | WAKEUP | - | SOFINT | EXTRSM | RXRSM | RXSUSP |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
EP7INT | EP6INT | EP5INT | EP4INT | EP3INT | EP2INT | EP1INT | EP0INT |
- EP0INT: Enable Endpoint 0 Interrupt
Value Name Description 0 - No effect. 1 - Enables corresponding Endpoint Interrupt. - EP1INT: Enable Endpoint 1 Interrupt
Value Name Description 0 - No effect. 1 - Enables corresponding Endpoint Interrupt. - EP2INT: Enable Endpoint 2Interrupt
Value Name Description 0 - No effect. 1 - Enables corresponding Endpoint Interrupt. - EP3INT: Enable Endpoint 3 Interrupt
Value Name Description 0 - No effect. 1 - Enables corresponding Endpoint Interrupt. - EP4INT: Enable Endpoint 4 Interrupt
Value Name Description 0 - No effect. 1 - Enables corresponding Endpoint Interrupt. - EP5INT: Enable Endpoint 5 Interrupt
Value Name Description 0 - No effect. 1 - Enables corresponding Endpoint Interrupt. - EP6INT: Enable Endpoint 6 Interrupt
Value Name Description 0 - No effect. 1 - Enables corresponding Endpoint Interrupt. - EP7INT: Enable Endpoint 7 Interrupt
Value Name Description 0 - No effect. 1 - Enables corresponding Endpoint Interrupt. - RXSUSP: Enable UDP Suspend Interrupt
Value Name Description 0 - No effect. 1 - Enables UDP Suspend Interrupt. - RXRSM: Enable UDP Resume Interrupt
Value Name Description 0 - No effect. 1 - Enables UDP Resume Interrupt. - EXTRSM
- SOFINT: Enable Start Of Frame Interrupt
Value Name Description 0 - No effect. 1 - Enables Start Of Frame Interrupt. - WAKEUP: Enable UDP bus Wakeup Interrupt
Value Name Description 0 - No effect. 1 - Enables USB bus Interrupt.
-
UDP Interrupt Disable Register
Name: UDP_IDR
Access: write-only
Address: 0x40034014
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | WAKEUP | - | SOFINT | EXTRSM | RXRSM | RXSUSP |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
EP7INT | EP6INT | EP5INT | EP4INT | EP3INT | EP2INT | EP1INT | EP0INT |
- EP0INT: Disable Endpoint 0 Interrupt
Value Name Description 0 - No effect. 1 - Disables corresponding Endpoint Interrupt. - EP1INT: Disable Endpoint 1 Interrupt
Value Name Description 0 - No effect. 1 - Disables corresponding Endpoint Interrupt. - EP2INT: Disable Endpoint 2 Interrupt
Value Name Description 0 - No effect. 1 - Disables corresponding Endpoint Interrupt. - EP3INT: Disable Endpoint 3 Interrupt
Value Name Description 0 - No effect. 1 - Disables corresponding Endpoint Interrupt. - EP4INT: Disable Endpoint 4 Interrupt
Value Name Description 0 - No effect. 1 - Disables corresponding Endpoint Interrupt. - EP5INT: Disable Endpoint 5 Interrupt
Value Name Description 0 - No effect. 1 - Disables corresponding Endpoint Interrupt. - EP6INT: Disable Endpoint 6 Interrupt
Value Name Description 0 - No effect. 1 - Disables corresponding Endpoint Interrupt. - EP7INT: Disable Endpoint 7 Interrupt
Value Name Description 0 - No effect. 1 - Disables corresponding Endpoint Interrupt. - RXSUSP: Disable UDP Suspend Interrupt
Value Name Description 0 - No effect. 1 - Disables UDP Suspend Interrupt. - RXRSM: Disable UDP Resume Interrupt
Value Name Description 0 - No effect. 1 - Disables UDP Resume Interrupt. - EXTRSM
- SOFINT: Disable Start Of Frame Interrupt
Value Name Description 0 - No effect. 1 - Disables Start Of Frame Interrupt - WAKEUP: Disable USB Bus Interrupt
Value Name Description 0 - No effect. 1 - Disables USB Bus Wakeup Interrupt.
-
UDP Interrupt Mask Register
Name: UDP_IMR
Access: read-only
Address: 0x40034018
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | WAKEUP | BIT12 | SOFINT | EXTRSM | RXRSM | RXSUSP |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
EP7INT | EP6INT | EP5INT | EP4INT | EP3INT | EP2INT | EP1INT | EP0INT |
- EP0INT: Mask Endpoint 0 Interrupt
Value Name Description 0 - Corresponding Endpoint Interrupt is disabled. 1 - Corresponding Endpoint Interrupt is enabled. - EP1INT: Mask Endpoint 1 Interrupt
Value Name Description 0 - Corresponding Endpoint Interrupt is disabled. 1 - Corresponding Endpoint Interrupt is enabled. - EP2INT: Mask Endpoint 2 Interrupt
Value Name Description 0 - Corresponding Endpoint Interrupt is disabled. 1 - Corresponding Endpoint Interrupt is enabled. - EP3INT: Mask Endpoint 3 Interrupt
Value Name Description 0 - Corresponding Endpoint Interrupt is disabled. 1 - Corresponding Endpoint Interrupt is enabled. - EP4INT: Mask Endpoint 4 Interrupt
Value Name Description 0 - Corresponding Endpoint Interrupt is disabled. 1 - Corresponding Endpoint Interrupt is enabled. - EP5INT: Mask Endpoint 5 Interrupt
Value Name Description 0 - Corresponding Endpoint Interrupt is disabled. 1 - Corresponding Endpoint Interrupt is enabled. - EP6INT: Mask Endpoint 6 Interrupt
Value Name Description 0 - Corresponding Endpoint Interrupt is disabled. 1 - Corresponding Endpoint Interrupt is enabled. - EP7INT: Mask Endpoint 7 Interrupt
Value Name Description 0 - Corresponding Endpoint Interrupt is disabled. 1 - Corresponding Endpoint Interrupt is enabled. - RXSUSP: Mask UDP Suspend Interrupt
Value Name Description 0 - UDP Suspend Interrupt is disabled. 1 - UDP Suspend Interrupt is enabled. - RXRSM: Mask UDP Resume Interrupt.
Value Name Description 0 - UDP Resume Interrupt is disabled. 1 - UDP Resume Interrupt is enabled. - EXTRSM
- SOFINT: Mask Start Of Frame Interrupt
Value Name Description 0 - Start of Frame Interrupt is disabled. 1 - Start of Frame Interrupt is enabled. - BIT12: UDP_IMR Bit 12
- WAKEUP: USB Bus WAKEUP Interrupt
Value Name Description 0 - USB Bus Wakeup Interrupt is disabled. 1 - USB Bus Wakeup Interrupt is enabled.
-
-
UDP Interrupt Status Register
Name: UDP_ISR
Access: read-only
Address: 0x4003401C
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | WAKEUP | ENDBUSRES | SOFINT | EXTRSM | RXRSM | RXSUSP |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
EP7INT | EP6INT | EP5INT | EP4INT | EP3INT | EP2INT | EP1INT | EP0INT |
- EP0INT: Endpoint 0 Interrupt Status
Value Name Description 0 - No Endpoint0 Interrupt pending. 1 - Endpoint0 Interrupt has been raised. - EP1INT: Endpoint 1 Interrupt Status
Value Name Description 0 - No Endpoint0 Interrupt pending. 1 - Endpoint0 Interrupt has been raised. - EP2INT: Endpoint 2 Interrupt Status
Value Name Description 0 - No Endpoint0 Interrupt pending. 1 - Endpoint0 Interrupt has been raised. - EP3INT: Endpoint 3 Interrupt Status
Value Name Description 0 - No Endpoint0 Interrupt pending. 1 - Endpoint0 Interrupt has been raised. - EP4INT: Endpoint 4 Interrupt Status
Value Name Description 0 - No Endpoint0 Interrupt pending. 1 - Endpoint0 Interrupt has been raised. - EP5INT: Endpoint 5 Interrupt Status
Value Name Description 0 - No Endpoint0 Interrupt pending. 1 - Endpoint0 Interrupt has been raised. - EP6INT: Endpoint 6 Interrupt Status
Value Name Description 0 - No Endpoint0 Interrupt pending. 1 - Endpoint0 Interrupt has been raised. - EP7INT: Endpoint 7Interrupt Status
Value Name Description 0 - No Endpoint0 Interrupt pending. 1 - Endpoint0 Interrupt has been raised. - RXSUSP: UDP Suspend Interrupt Status
Value Name Description 0 - No UDP Suspend Interrupt pending. 1 - UDP Suspend Interrupt has been raised. - RXRSM: UDP Resume Interrupt Status
Value Name Description 0 - No UDP Resume Interrupt pending. 1 - UDP Resume Interrupt has been raised. - EXTRSM
- SOFINT: Start of Frame Interrupt Status
Value Name Description 0 - No Start of Frame Interrupt pending. 1 - Start of Frame Interrupt has been raised. - ENDBUSRES: End of BUS Reset Interrupt Status
Value Name Description 0 - No End of Bus Reset Interrupt pending. 1 - End of Bus Reset Interrupt has been raised. - WAKEUP: UDP Resume Interrupt Status
Value Name Description 0 - No Wakeup Interrupt pending. 1 - A Wakeup Interrupt (USB Host Sent a RESUME or RESET) occurred since the last clear.
-
UDP Interrupt Clear Register
Name: UDP_ICR
Access: write-only
Address: 0x40034020
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | WAKEUP | ENDBUSRES | SOFINT | EXTRSM | RXRSM | RXSUSP |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
- | - | - | - | - | - | - | - |
- RXSUSP: Clear UDP Suspend Interrupt
Value Name Description 0 - No effect. 1 - Clears UDP Suspend Interrupt. - RXRSM: Clear UDP Resume Interrupt
Value Name Description 0 - No effect. 1 - Clears UDP Resume Interrupt. - EXTRSM
- SOFINT: Clear Start Of Frame Interrupt
Value Name Description 0 - No effect. 1 - Clears Start Of Frame Interrupt. - ENDBUSRES: Clear End of Bus Reset Interrupt
Value Name Description 0 - No effect. 1 - Clears End of Bus Reset Interrupt. - WAKEUP: Clear Wakeup Interrupt
Value Name Description 0 - No effect. 1 - Clears Wakeup Interrupt.
-
UDP Reset Endpoint Register
Name: UDP_RST_EP
Access: read-write
Address: 0x40034028
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | - | - | - | - | - | - |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
EP7 | EP6 | EP5 | EP4 | EP3 | EP2 | EP1 | EP0 |
- EP0: Reset Endpoint 0
Value Name Description 0 - No reset. 1 - Forces the corresponding endpoint FIF0 pointers to 0, therefore RXBYTECNT field is read at 0 in UDP_CSRx register. - EP1: Reset Endpoint 1
Value Name Description 0 - No reset. 1 - Forces the corresponding endpoint FIF0 pointers to 0, therefore RXBYTECNT field is read at 0 in UDP_CSRx register. - EP2: Reset Endpoint 2
Value Name Description 0 - No reset. 1 - Forces the corresponding endpoint FIF0 pointers to 0, therefore RXBYTECNT field is read at 0 in UDP_CSRx register. - EP3: Reset Endpoint 3
Value Name Description 0 - No reset. 1 - Forces the corresponding endpoint FIF0 pointers to 0, therefore RXBYTECNT field is read at 0 in UDP_CSRx register. - EP4: Reset Endpoint 4
Value Name Description 0 - No reset. 1 - Forces the corresponding endpoint FIF0 pointers to 0, therefore RXBYTECNT field is read at 0 in UDP_CSRx register. - EP5: Reset Endpoint 5
Value Name Description 0 - No reset. 1 - Forces the corresponding endpoint FIF0 pointers to 0, therefore RXBYTECNT field is read at 0 in UDP_CSRx register. - EP6: Reset Endpoint 6
Value Name Description 0 - No reset. 1 - Forces the corresponding endpoint FIF0 pointers to 0, therefore RXBYTECNT field is read at 0 in UDP_CSRx register. - EP7: Reset Endpoint 7
Value Name Description 0 - No reset. 1 - Forces the corresponding endpoint FIF0 pointers to 0, therefore RXBYTECNT field is read at 0 in UDP_CSRx register.
UDP Endpoint Control and Status Register
Name: UDP_CSR[0:7]
Access: read-write
Address: 0x40034030
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | RXBYTECNT | ||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RXBYTECNT | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
EPEDS | - | - | - | DTGLE | EPTYPE | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DIR | RX_DATA_BK1 | FORCESTALL | TXPKTRDY | STALLSENT | RXSETUP | RX_DATA_BK0 | TXCOMP |
- TXCOMP: Generates an IN Packet with Data Previously Written in the DPR
- RX_DATA_BK0: Receive Data Bank 0
- RXSETUP: Received Setup
- STALLSENT: Stall Sent (Control, Bulk Interrupt Endpoints)/ISOERROR (Isochronous Endpoints)
- ISOERROR: Stall Sent (Control, Bulk Interrupt Endpoints)/ISOERROR (Isochronous Endpoints)
- TXPKTRDY: Transmit Packet Ready
- FORCESTALL: Force Stall (used by Control, Bulk and Isochronous Endpoints)
- RX_DATA_BK1: Receive Data Bank 1 (only used by endpoints with ping-pong attributes)
- DIR: Transfer Direction (only available for control endpoints)
Value Name Description 0 - Allows Data OUT transactions in the control data stage. 1 - Enables Data IN transactions in the control data stage. - EPTYPE: Endpoint Type
Value Name Description 0x0 CTRL Control 0x1 ISO_OUT Isochronous OUT 0x2 BULK_OUT Bulk OUT 0x3 INT_OUT Interrupt OUT 0x5 ISO_IN Isochronous IN 0x6 BULK_IN Bulk IN 0x7 INT_IN Interrupt IN - DTGLE: Data Toggle
Value Name Description 0 - Identifies DATA0 packet. 1 - Identifies DATA1 packet. - EPEDS: Endpoint Enable Disable
- RXBYTECNT: Number of Bytes Available in the FIFO
-
-
-
-
-
-
-
-
-
-
UDP Endpoint FIFO Data Register
Name: UDP_FDR[0:7]
Access: read-write
Address: 0x40034050
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | - | - | - | - | - | - |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
FIFO_DATA |
- FIFO_DATA: FIFO Data Value
-
UDP Transceiver Control Register
Name: UDP_TXVC
Access: read-write
Address: 0x40034074
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
- | - | - | - | - | - | - | - |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
- | - | - | - | - | - | - | - |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
- | - | - | - | - | - | PUON | TXVDIS |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
- | - | - | - | - | - | - | - |
- TXVDIS: Transceiver Disable
- PUON: Pullup On
Value Name Description 0 - The 1.5KW integrated pullup on DDP is disconnected. 1 - The 1.5 KW integrated pullup on DDP is connected.
-