PSD913212JIT ST Microelectronics, PSD913212JIT Datasheet - Page 49

no-image

PSD913212JIT

Manufacturer Part Number
PSD913212JIT
Description
Flash In-System Programmable ISP Peripherals For 8-bit MCUs
Manufacturer
ST Microelectronics
Datasheet
Preliminary Information
The
PSD9XX
Functional
Blocks
(cont.)
*
9.4.2.1 MCU I/O Mode
In the MCU I/O Mode, the microcontroller uses the PSD9XX ports to expand its own
I/O ports. By setting up the CSIOP space, the ports on the PSD9XX are mapped into the
microcontroller address space. The addresses of the ports are listed in Table 7.
A port pin can be put into MCU I/O mode by writing a ‘0’ to the corresponding bit in the
Control Register. The MCU I/O direction may be changed by writing to the corresponding
bit in the Direction Register. See the subsection on the Direction Register in the “Port
Registers” section. When the pin is configured as an output, the content of the Data Out
Register drives the pin. When configured as an input, the microcontroller can read the port
input through the Data In buffer. See Figure 19.
Ports C and D do not have Control Registers, and are in MCU I/O mode by default. They
can be used for PLD I/O if they are specified in PSDsoft.
9.4.2.2 PLD I/O Mode
The PLD I/O Mode uses a port as an input to the PLDs, and/or as an output from the
GPLD. The corresponding bit in the Direction Register must not be set to ‘1’ if the pin is
defined as a PLD input pin in PSDsoft. The PLD I/O Mode is specified in PSDsoft by
declaring the port pins, and then specifying an equation in PSDsoft.
Table 21. Port Operating Mode Settings
NA = Not Applicable
(Port A,B,C,D)
Address Out
Address In
(Port A,B)
JTAG ISP
Data Port
MCU I/O
PLD I/O
(Port A)
Mode
Selected for MCU
with non-mux bus
Declare pins only
Declare pins only
Declare pins only
Declare pins only
select equations
Logic or chip
Defined In
PSDsoft
at Run-Time
Register
Control
Setting
NA
NA
NA
NA
0
1
at Run-Time
1 = output,
Direction
0 = input,
Register
Setting
PSD9XX Family
NA
NA
NA
1
45

Related parts for PSD913212JIT