SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 233
Version 1.1
20.4 BLOCK DIAGRAM
USB
Transceiver
DP
DN
SIE
EP
Control
Buffer
Control
USB SRAM
256 BYTE
IHRC 48MHz
INT
SFR
NVIC
APB Wrapper
APB Bus
USB D+
USB D-
20.5 USB SRAM ACCESS
There is 512 bytes SRAM in the controller and the 7 endpoints share this buffer. The user shall configure each
endpoint’s effective starting address in the buffer offset register before the USB function active. The USB_EPnBUFOS
block is used to control each endpoint’s effective starting address.
The principles to access USB SRAM are as below.
1.
Each EPnBUFOS setting must be word-aligned, with 2 LSB bits equal to
‘0’.
2.
The maximum length of EPn SRAM buffer is defined by user. However, each endpoint should have its own EPn
SRAM buffer without overlapping each other.
000h
USB SRAM start address (USB_SRAM) = 0x100
EP0 SRAM Buffer (64 bytes)
EP1 SRAM Buffer (N bytes)
EPn SRAM Buffer (M bytes)
03Fh
~
040h
0FFh
EP1BUFOS
EP2BUFOS
………
………
EPnBUFOS
…………………………
~
20.6 USB MACHINE
The USB machine allows the microcontroller to communicate with the USB host. The hardware handles the following
Содержание SN32F280 Series
Страница 222: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 222 Version 1 1 A1D16...
Страница 263: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 263 Version 1 1 26 2 LQFP 64 PIN...
Страница 264: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 264 Version 1 1 26 3 LQFP 48 PIN...