English
Language : 

C541U_99 Datasheet, PDF (101/192 Pages) Siemens Semiconductor Group – 8-BIT CMOS MICROCONTROLLER
On-Chip Peripheral Components
C541U
Table 6-7
Endpoint/Device Register Set Address Assignment
EPSEL
SFR Addr.
1XXXXXXXB
(Device register
block selected)
0XXXXnnnB
(nnn =
000B to 100B)
(Endpoint nnnB
register block
selected)
C1H
C2H
C3H
C4H
C5H
C6H
C7H
C1H
C2H
C3H
C4H
C5H
C6H
C7H
Selected Register
DCR : Device Control Register
DPWDR: Device Power Down Register
DIER : Device Interrupt Enable Register
DIRR : Device Interrupt Request Register
reserved address
FNRL : Frame Number Register (low byte)
FNRH : Frame Number Register (high byte)
EPBCn : Endpoint n Buffer Control Register
EPBSn : Endpoint n Buffer Status Register
EPIEn : Endpoint n Interrupt Enable Register
EPIRn : Endpoint n Interrupt Request Register
EPBAn : Endpoint n Base Address Register
EPLENn: Endpoint n Buffer Length Register
reserved address
(n=0-4)
(n=0-4)
(n=0-4)
(n=0-4)
(n=0-4)
(n=0-4)
The data transfers between USB memory and the CPU are handled via the SFR USBVAL. With a
CPU write access to USBVAL, the value written into it is transferred to the USB memory location
which is defined by the content of the endpoint specific endpoint base address register EPBAn and
the content of the address offset register ADROFF. At USB memory read accesses from the CPU
the data is transfered in reverse direction.
A write operation to USBVAL is only successfull if either DIR=0 and CBF=1 (write operation) or
DIR=1 and CBF=0 (read operation).
Sequence of two or more write operations to USBVAL register using move-immediate instruction is
unsupported. It is recommended to use either accumulator or a temporary register for storing an
immediate data, before writing it to USBVAL register.
USB Data Register USBVAL (Address D3H)
Reset Value : 00H
Bit No. MSB
LSB
7
6
5
4
3
2
1
0
D3H
.7
.6
.5
.4
.3
.2
.1
.0
USBVAL
rw
rw
rw
rw
rw
rw
rw
rw
Bit
USBVAL.7-0
Function
USB data value
USBVAL stores the 8-bit data byte during transfers from CPU to USB memory and
from USB memory to CPU. Bit NOD in the EPIRn register indicates when the CPU
processes an USBVAL read operation with an empty USB buffer or a USBVAL
write operation to a full USB buffer.
Semiconductor Group
6-56
1999-04-01