CY8C36_10 CYPRESS [Cypress Semiconductor], CY8C36_10 Datasheet - Page 20

no-image

CY8C36_10

Manufacturer Part Number
CY8C36_10
Description
Manufacturer
CYPRESS [Cypress Semiconductor]
Datasheet
5.6.3 SFRs
The special function register (SFR) space provides access to frequently accessed registers. The memory map for the SFR memory
space is shown in
Table 5-2. SFR Map
The CY8C36 family provides the standard set of registers found
on industry standard 8051 devices. In addition, the CY8C36
devices add SFRs to provide direct access to the I/O ports on the
device. The following sections describe the SFRs added to the
CY8C36 family.
XData Space Access SFRs
The 8051 core features dual DPTR registers for faster data
transfer operations. The data pointer select SFR, DPS, selects
which data pointer register, DPTR0 or DPTR1, is used for the
following instructions:
The extended data pointer SFRs, DPX0, DPX1, MXAX, and
P2AX, hold the most significant parts of memory addresses
during access to the xdata space. These SFRs are used only
with the MOVX instructions.
During a MOVX instruction using the DPTR0/DPTR1 register,
the most significant byte of the address is always equal to the
contents of DPX0/DPX1.
Document Number: 001-53413 Rev. *I
Address
MOVX @DPTR, A
MOVX A, @DPTR
MOVC A, @A+DPTR
JMP @A+DPTR
INC DPTR
MOV DPTR, #data16
0×D8
0×D0
0×C8
0×C0
0×F8
0×F0
0×E8
0×E0
0×B8
0×B0
0×A8
0×A0
0×98
0×90
0×88
0×80
SFRPRT15DR
B
SFRPRT12DR
ACC
SFRPRT6DR
PSW
SFRPRT5DR
SFRPRT4DR
SFRPRT3DR
IE
P2AX
SFRPRT2DR
SFRPRT1DR
SFRPRT0DR
Table
0/8
5-2.
SFRPRT15PS
SFRPRT12PS
SFRPRT6PS
SFRPRT5PS
SFRPRT4PS
SFRPRT3PS
SFRPRT2PS
SFRPRT1PS
SFRPRT0PS
SP
1/9
PRELIMINARY
SFRPRT15SEL
SFRPRT12SEL
MXAX
SFRPRT6SEL
SFRPRT5SEL
SFRPRT4SEL
SFRPRT3SEL
SFRPRT1SEL
SFRPRT2SEL
SFRPRT0SEL
DPL0
2/A
During a MOVX instruction using the R0 or R1 register, the most
significant byte of the address is always equal to the contents of
MXAX, and the next most significant byte is always equal to the
contents of P2AX.
I/O Port SFRs
The I/O ports provide digital input sensing, output drive, pin
interrupts, connectivity for analog inputs and outputs, LCD, and
access to peripherals through the DSI. Full information on I/O
ports is found in
I/O ports are linked to the CPU through the PHUB and are also
available in the SFRs. Using the SFRs allows faster access to a
limited set of I/O port registers, while using the PHUB allows boot
configuration and access to all I/O port registers.
Each SFR supported I/O port provides three SFRs:
DPX0
DPH0
SFRPRTxDR sets the output data state of the port (where × is
port number and includes ports 0–6, 12 and 15).
The SFRPRTxSEL selects whether the PHUB PRTxDR
register or the SFRPRTxDR controls each pin’s output buffer
within the port. If a SFRPRTxSEL[y] bit is high, the
corresponding SFRPRTxDR[y] bit sets the output state for that
pin. If a SFRPRTxSEL[y] bit is low, the corresponding
PRTxDR[y] bit sets the output state of the pin (where y varies
from 0 to 7).
The SFRPRTxPS is a read only register that contains pin state
values of the port pins.
PSoC
3/B
®
DPL1
3: CY8C36 Family Datasheet
I/O System and Routing
4/C
DPX1
DPH1
5/D
DPS
on page 28.
6/E
Page 20 of 112
7/F
[+] Feedback

Related parts for CY8C36_10