ST7232AK2-Auto STMicroelectronics, ST7232AK2-Auto Datasheet - Page 85

no-image

ST7232AK2-Auto

Manufacturer Part Number
ST7232AK2-Auto
Description
8-bit MCU for automotive, 16 Kbyte Flash, 10-bit ADC, 4 timers, SPI, SCI
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7232AK2-Auto

Hdflash Endurance
100 cycles, data retention
Clock Sources
crystal/ceramic resonator oscillators and bypass for external clock
Four Power Saving Modes
halt, active halt, wait and slow
Main Clock Controller With
real time base, beep and clock-out capabilities
Two 16-bit Timers With
2 input captures, 2 output compares, PWM and pulse generator modes
ST7232Axx-Auto
Figure 38. Input capture timing diagram
1.
Output compare
In this section, the index, i, may be 1 or 2 because there are 2 output compare functions in
the 16-bit timer.
This function can be used to control an output waveform or indicate when a period of time
has elapsed.
When a match is found between the output compare register and the free running counter,
the output compare function:
Two 16-bit registers, output compare register 1 (OC1R) and output compare register 2
(OC2R) contain the value to be compared to the counter register each timer clock cycle (see
below).
These registers are readable and writable and are not affected by the timer hardware. A
reset event changes the OC
Timing resolution is one count of the free running counter: (
Procedure
To use the output compare function, select the following in the CR2 register:
Select the following in the CR1 register:
The rising edge is the active edge.
Assigns pins with a programmable value if the OCiE bit is set
Sets a flag in the status register
Generates an interrupt if enabled
Set the OCiE bit if an output is needed then the OCMPi pin is dedicated to the output
compare i signal.
Select the timer clock (CC[1:0]) (see
Select the OLVLi bit to applied to the OCMPi pins after the match occurs
Set the OCIE bit to generate an interrupt if it is needed
Counter register
ICAPi register
OCiR
Timer clock
ICAPi flag
ICAPi pin
FF01
i
R value to 8000h.
OCiHR
MSB
FF02
Table 36: CR2 register
f
CPU/
FF03
CC[1:0]
description)
).
On-chip peripherals
OCiLR
FF03
LSB
85/201

Related parts for ST7232AK2-Auto