DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ZPSD302-B-15U View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ZPSD302-B-15U Datasheet PDF : 85 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
PSD3XX Family
10.0
I/O Port
Functions
(cont.)
10.2 Port A (PA0-PA7)
The control registers of Port A are located in CSIOPORT space; see Table 5.
10.2.1 Port A (PA0-PA7) in Multiplexed Address/Data Mode
Each pin of Port A can be individually configured. The following table summarizes what the
control registers (in CSIOPORT space) for Port A do:
Register Name
0 Value
1 Value
Default
Value
(Note 1)
Port A Pin Register
Sampled logic level
at pin = ‘0’
Sampled logic level
at pin = ‘1’
X
Port A Direction Register
Pin is configured
as input
Pin is configured
as output
0
) Port A Data Register
Data in DFF = ‘0’
Data in DFF = ‘1’
0
t(s NOTE: 1. Default value is the value after reset.
uc MCU I/O Mode
d The default configuration of Port A is MCU I/O. In this mode, every pin can be set (at run-
ro ) time) as an input or output by writing to the respective pin’s direction flip-flop (DIR FF,
P t(s Figure 5A). As an output, the pin level can be controlled by writing to the respective pin’s
te c data flip-flop (DFF, Figure 5A). The Pin Register can be read to determine logic level of the
le u pin. The contents of the Pin Register indicate the true state of the PSD driving the pin
d through the DFF or an external source driving the pin. Pins can be configured as CMOS
so ro or open-drain using ST’s PSDsoft software. Open-drain pins require external pull-up
b P resistors.
- O te Latched Address Output Mode
) le Alternatively, any bit(s) of Port A can be configured to output low-order demultiplexed
t(s o address bus bit. The address is provided by the internal PSD address latch, which latches
s the address on the trailing edge of ALE/AS. Port A then outputs the desired demultiplexed
c b address bits. This feature can eliminate the need for an external latch (for example:
u O 74LS373) if you have devices that require low-order latched address bits. Although any pin
rod - of Port A may output an address signal, the pin is position-dependent. In other words, pin
P t(s) PA0 of Port A may only pass A0, PA1 only A1, and so on.
te c Track Mode
le u Track Mode sets the entire port to track the signals on AD0/A0-AD7/A7, depending on
d specific address ranges defined by the PAD’s CSADIN, CSADOUT1, and CSADOUT2
so ro signals. This feature lets the user interface the microcontroller to shared external resources
b P without requiring external buffers and decoders. In Track Mode, Port A effectively operates
O teas a bi-directional buffer, allowing external MCUs or host processors to access the local
data bus. Keep the following information in mind when setting up Track Mode:
le t The direction is controlled by:
so ALE/AS
b RD/E or RD/E/DS (DS on non-3X1 devices only)
O WR or R/W
PAD outputs CSADOUT1, CSADOUT2, and CSADIN defined in PSDsoft design.
t When CSADOUT1 and ALE/AS are true, the address on AD0/A0-AD7/A7 is output on
Port A. Note: carefully check the generation of CSADOUT1 to ensure that it is stable
during the ALE/AS pulse.
t When CSADOUT2 is active and a write operation is performed, the data on the
AD0/A0-AD7/A7 input pins flows out through Port A.
t When CSADIN is active and a read operation is performed, the data on Port A flows
out through the AD0/A0-AD7/A7 pins.
t Port A is tri-stated when none of the above conditions exist.
16

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]