zpsd211r STMicroelectronics, zpsd211r Datasheet - Page 15

no-image

zpsd211r

Manufacturer Part Number
zpsd211r
Description
Low Cost Field Programmable Microcontroller Peripherals
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
zpsd211r-B-15
Manufacturer:
ST/WSI
Quantity:
20 000
Part Number:
zpsd211r-B-15J
Manufacturer:
ZILOG
Quantity:
34
Part Number:
zpsd211r-B-15J
Manufacturer:
ST
0
Part Number:
zpsd211r-B-20J
Manufacturer:
ST
0
Part Number:
zpsd211r-B-70J
Manufacturer:
ST
0
Part Number:
zpsd211r-B-90JI
Manufacturer:
WSi
Quantity:
2
Part Number:
zpsd211r-B-90JI
Manufacturer:
ST
0
Part Number:
zpsd211rB-15J
Manufacturer:
ST
0
Part Number:
zpsd211rV-A-20J
Manufacturer:
WSI
Quantity:
132
Part Number:
zpsd211rV-B-25J
Manufacturer:
TEXAS
Quantity:
175
10.0
I/O Port
Functions
12
PSD211R Family
Table 5. CSIOPORT Registers for 8-Bit Data Busses
The PSD211R has three I/O ports (Ports A, B, and C) that are configurable at the bit level.
This permits great flexibility and a high degree of customization for specific applications.
The next section describes the control registers for the ports. Following that are sections
that describe each port. Figures 5 through 7 show the structure of Ports A through C,
respectively.
Note: any unused inputs should be connected directly to ground or pulled up to V
a 10KΩ to 100KΩ resistor).
10.1 CSIOPORT Registers
Control of the ports is primarily handled through the CSIOPORT registers. There are 24
bytes in the address space, starting at the base address labeled CSIOPORT. Since the
PSD211R uses internal address lines A15-A11 for decoding, the CSIOPORT space
will occupy 2 Kbytes of memory, on a 2 Kbyte boundary. This resolution can be improved
to reduce wasted address space by connecting lower order address lines (A10 and below)
to Port C. Using this method, resolution down to 256 Kbytes may be achieved. The
CSIOPORT space must be defined in your PSDsoft design file. The following tables list
the registers located in the CSIOPORT space.
10.2 Port A (PA0-PA7)
MCU I/O Mode
The default configuration of Port A is MCU I/O. In this mode, every pin can be set
(at run-time) as an input or output by writing to the respective pin’s direction flip-flop
(DIR FF, Figure 5). As an output, the pin level can be controlled by writing to the respective
pin’s data flip-flop (DFF, Figure 5A). The Pin Register can be read to determine logic level
of the pin. The contents of the pin register indicate the true state of the PSD driving the pin
through the DFF or an external source driving the pin.
NOTE: 1. ZPSD only.
Port A Pin Register
Port A Direction Register
Port A Data Register
Port B Pin Register
Port B Direction Register
Port B Data Register
Power Management Register (Note 1)
Register Name
from CSIOPORT
Offset (in hex)
Base Address
+10
+2
+4
+6
+3
+5
+7
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Allowed
Type of
Access
Read
Read
CC
(using

Related parts for zpsd211r