psd511b1 STMicroelectronics, psd511b1 Datasheet - Page 93

no-image

psd511b1

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
psd511b1-A-12J
Manufacturer:
HOLTEK
Quantity:
789
Part Number:
psd511b1-C-12J
Manufacturer:
WSI
Quantity:
108
Part Number:
psd511b1-C-12J
Manufacturer:
TEXAS
Quantity:
38
Counter/Timer
(Cont.)
90
PSD5XX Family
9.6.2.7 Load/Store
The Load operation transacts an Image Register (e.g. IMG0) write into its Counter/Timer
Register (e.g. CNTR0), whereas in the Store operation the Counter/Timer Register (e.g.
CNTR0) writes back into the Image Register (e.g. IMG0).
These signals are valid only when a Counter/timer is active. They are rising edge sensitive
and are used to Load a Counter with a required value or to Store the Counter value in the
associated Image Register.
In Waveform, Pulse and WatchDog modes the microcontroller writes into an Image
Register. The respective Counter/Timer uses that value as its initial counting value. The
data transfer operation from an Image Register into its corresponding counter is called
LOAD. In Event Counting and Time Capture modes the Counter/Timer counts event pulses
or timer clock cycles, respectively. An external event or a software command can cause a
data transfer from the counting element into its Image Register. This operation is defined as
STORE.
These operations are triggered by:
Refer to Counter/Timer Command Register and Figure 43 for specific details.
9.6.2.8 Enable/Disable
These signals are used to enable or disable the counting of the Counter/Timers. These
signals are controlled by:
Event Count Mode:
In Event Count mode the Enable/Disable signal is edge sensitive and is connected to the
event input signal through the PPLD or pin. In Time Capture mode the Enable/Disable
signal can be set by a software command only.
Refer to Counter/Timer Command Register and Figure 43 for specific details.
9.6.2.9 Counter/Timer Input/Output
Each Counter can use individual control inputs in port E as input Load/Store or
Enable/Disable signals, and Counter/Timer outputs in port A or port B by selecting alternate
and special functions on the pins assigned to them. The outputs are used in waveform and
pulse modes in which the Counters generate output waveforms or pulses. The inputs can
be used in all modes of operation except WatchDog to create the LOAD/STORE and/or
ENABLE/DISABLE control signals. Port E can be configured as outputs for Terminal Count.
Terminal Count is also available as ZPLD inputs (via pin feedback). Refer to Tables 25, 26
and 27 for further details and configuration of these ports.
9.6.2.10 PPLD Macrocell
The enable/disable or load/store inputs of each Counter/Timer can be selected through a
PPLD macrocell, whose inputs are two product terms PTT0 and PTT1 from the PPLD’s
AND-array. The polarity of the PPLD macrocell output is programmable. The output of the
PPLD macrocell which is the enable/disable and/or Load/Store input to the Counter/Timer
can be in a Combinatorial mode or Register mode. Figure 44 shows the details of the PPLD
macrocell. Refer to the “ZPLD” section for further information on the PPLD.
Software command
Terminal count (in Waveform mode only)
PPLD macrocell output
Input Pin
Software command (Bits 2 and 7 of the Command Registers).
PPLD macrocell output
Input Pin

Related parts for psd511b1