ST92141 STMicroelectronics, ST92141 Datasheet - Page 85

no-image

ST92141

Manufacturer Part Number
ST92141
Description
8/16-bit Mcu For 3-phase Ac Motor Control
Manufacturer
STMicroelectronics
Datasheet
7 ON-CHIP PERIPHERALS
7.1 TIMER/WATCHDOG (WDT)
Important Note: This chapter is a generic descrip-
tion of the WDT peripheral. However depending
on the ST9 device, some or all of WDT interface
signals described may not be connected to exter-
nal pins. For the list of WDT pins present on the
ST9 device, refer to the device pinout description
in the first section of the data sheet.
7.1.1 Introduction
The Timer/Watchdog (WDT) peripheral consists of
a programmable 16-bit timer and an 8-bit prescal-
er. It can be used, for example, to:
– Generate periodic interrupts
– Measure input signal pulse widths
– Request an interrupt after a set number of events
– Generate an output signal waveform
– Act as a Watchdog timer to monitor system in-
Figure 49. Timer/Watchdog Block Diagram
tegrity
1
HW0SW1
Pin not present on some ST9 devices
WDIN
NMI
INT0
1
1
1
1
CLOCK CONTROL LOGIC
INEN INMD1 INMD2
WDGEN
INPUT
&
INTCLK/4
MUX
.
TLIS
IAOS
MUX
CONTROL LOGIC
INTERRUPT
WDT
CLOCK
8-BIT PRESCALER
The main WDT registers are:
– Control register for the input, output and interrupt
– 16-bit counter register pair (WDTHR, WDTLR)
– Prescaler register (WDTPR)
The hardware interface consists of up to five sig-
nals:
– WDIN External clock input
– WDOUT Square wave or PWM signal output
– INT0 External interrupt input
– NMI Non-Maskable Interrupt input
– HW0SW1 Hardware/Software Watchdog ena-
logic blocks (WDTCR)
ble.
WDTPR
OUTMD
ST92141 - TIMER/WATCHDOG (WDT)
OUTPUT CONTROL LOGIC
TOP LEVEL INTERRUPT REQUEST
RESET
INTA0 REQUEST
WROUT
DOWNCOUNTER
WDTRH, WDTRL
16-BIT
OUTEN
COUNT
END OF
WDOUT
85/179
9
1

Related parts for ST92141