SN32F260 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 105
Version 1.5
10.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-
10.5 USB SRAM ACCESS
There is 256 bytes SRAM in the controller and the 5 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.
–
Each EPnBUFOS setting must be word-aligned, with 2 LSB bits equal to
‘0’.
–
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
…………………………
~
Содержание SN32F260 Series
Страница 132: ...SN32F260 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 132 Version 1 5 16 2 QFN 46 PIN ...
Страница 136: ...SN32F260 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 136 Version 1 5 16 6 QFN 33 PIN ...
Страница 137: ...SN32F260 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 137 Version 1 5 16 7 SSOP 24 PIN ...