PSD8XX Family
PSD835G2
The
PSD835G2
Functional
Blocks
(cont.)
9.4.4 Port Data Registers
The Port Data Registers, shown in Table 24, are used by the microcontroller to write data
to or read data from the ports. Table 24 shows the register name, the ports having each
register type, and microcontroller access for each register type. The registers are
described below.
9.4.4.1 Data In
Port pins are connected directly to the Data In buffer. In MCU I/O input mode, the pin input
is read through the Data In buffer.
9.4.4.2 Data Out Register
Stores output data written by the MCU in the MCU I/O output mode. The contents of the
Register are driven out to the pins if the Direction Register or the output enable
product term is set to 鈥?鈥? The contents of the register can also be read back by the
microcontroller.
9.4.4.3 Output Micro鈬擟ells (OMCs)
The CPLD OMCs occupy a location in the microcontroller鈥檚 address space. The
microcontroller can read the output of the OMCs. If the Mask Micro鈬擟ell Register bits are
not set, writing to the Micro鈬擟ell loads data to the Micro鈬擟ell flip flops. Refer to the PLD
section for more details.
9.4.4.4 Mask Micro鈬擟ell Register
Each Mask Register bit corresponds to an OMC flip flop. When the Mask Register bit
is set to a 鈥?鈥? loading data into the OMC flip flop is blocked. The default value is 鈥?鈥?or
unblocked.
9.4.4.5 Input Micro鈬擟ells (IMCs)
The IMCs can be used to latch or store external inputs. The outputs of the IMCs
are routed to the PLD input bus, and can be read by the microcontroller. Refer to the PLD
section for a detailed description.
9.4.4.6 Enable Out
The Enable Out register can be read by the microcontroller. It contains the output enable
values for a given port. A 鈥?鈥?indicates the driver is in output mode. A 鈥?鈥?indicates the
driver is in tri-state and the pin is in input mode.
Table 24. Port Data Registers
Register Name
Data In
Data Out
Output Micro鈬擟ell
Mask Micro鈬擟ell
Input Micro鈬擟ell
Enable Out
Port
A,B,C,D,E,F,G
A,B,C,D,E,F,G
A,B
A,B
A,B,C
A,B,C,F
Write/Read
MCU Access
Read 鈥?input on pin
Read 鈥?outputs of Micro鈬擟ells
Write 鈥?loading Micro鈬擟ells Flip-Flop
Write/Read 鈥?prevents loading into a given
Micro鈬擟ell
Read 鈥?outputs of the Input Micro鈬擟ells
Read 鈥?the output enable control of the port driver
60