English
Language : 

PSD5XX Datasheet, PDF (23/153 Pages) STMicroelectronics – Low Cost Field Programmable Microcontroller Peripherals
PSD5XX Family
The PSD5XX
Architecture
(cont.)
9.1.2.2 Port B Macrocell Structure
Figure 8 shows the PB Macrocell block, which consists of 8 identical macrocells. Each
macrocell output can be connected to its own I/O pin on Port B. The two inputs, CLKIN and
MACRO-RST, are used as clock and clear inputs to all the macrocells. The CLKIN comes
directly from the CLKIN input pin. The MACRO-RST is the same as the Reset input pin
except it is user configurable.
The circuit of a PB Macrocell is shown in Figure 9. There are 10 product terms from the
GPLD’s AND ARRAY as inputs to the macrocell. Users can select the polarity of the output,
and configure the macrocell to operate as:
t Registered Output
Select output from D flip flop.
t Combinatorial Output
Select output from OR gate.
t GPLD Input
Use Port B pin as dedicated input.
t GPLD Output
Use Port B pin as dedicated output.
t GPLD I/O
Use Port B pin as bidirectional pin.
t Macrocell Feedback
Register feedback for state machine implementations or expander feedback
from the combinatorial output, to possibly expand the number of product terms
available to another macrocell.
In case of "Buried Feedback", where the output of the macrocell is not
connected to a Port B pin, Port B can be configured to perform other user
defined I/O functions.
Each D flip flop in the macrocells has its own dedicated asynchronous clear, preset and
clock input. The signals are defined as follow:
t PRESET
Active only if defined by a product term (PBx.PR)
t CLEAR
Two selectable inputs: Reset input or user defined product term (PBx.RE)
t CLK
Two selectable inputs – CLKIN input or user defined product term (PBx.CLK).
The macrocell is operated in Synchronous Mode if the clock input is CLKIN, and is in
Asynchronous Mode if the clock is a product-term clock defined by the user.
20