ST72F321J ST Microelectronics, ST72F321J Datasheet - Page 63

no-image

ST72F321J

Manufacturer Part Number
ST72F321J
Description
8-BIT MCU
Manufacturer
ST Microelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST72F321J7T6
Manufacturer:
NPC
Quantity:
22
Part Number:
ST72F321J7T6
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST72F321J7T6
Manufacturer:
ST
0
Part Number:
ST72F321J7T6
Manufacturer:
ST
Quantity:
20 000
Part Number:
ST72F321J7T6TR
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST72F321J7TA
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST72F321J7TAE
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST72F321J9TC
Manufacturer:
ST
Quantity:
20 000
www.DataSheet4U.com
DataSheet
PWM AUTO-RELOAD TIMER (Cont’d)
10.3.3 Register Description
CONTROL / STATUS REGISTER (ARTCSR)
Read /Write
Reset Value: 0000 0000 (00h)
Bit 7 = EXCL External Clock
This bit is set and cleared by software. It selects the
input clock for the 7-bit prescaler.
0: CPU clock.
1: External clock.
Bit 6:4 = CC[2:0] Counter Clock Control
These bits are set and cleared by software. They
determine the prescaler division ratio from f
Bit 3 = TCE Timer Counter Enable
This bit is set and cleared by software. It puts the
timer in the lowest power consumption mode.
0: Counter stopped (prescaler and counter frozen).
1: Counter running.
Bit 2 = FCRL Force Counter Re-Load
This bit is write-only and any attempt to read it will
yield a logical zero. When set, it causes the contents
of ARTARR register to be loaded into the counter,
and the content of the prescaler register to be
cleared in order to initialize the timer before starting
to count.
Bit 1 = OIE Overflow Interrupt Enable
This bit is set and cleared by software. It allows to
enable/disable the interrupt which is generated
when the OVF bit is set.
0: Overflow Interrupt disable.
1: Overflow Interrupt enable.
Bit 0 = OVF Overflow Flag
This bit is set by hardware and cleared by software
reading the ARTCSR register. It indicates the tran-
sition of the counter from FFh to the ARTARR val-
ue
EXCL
f
.
7
f
f
f
INPUT
f
f
f
f
INPUT
INPUT
INPUT
COUNTER
INPUT
INPUT
INPUT
4
f
INPUT
U
CC2
/ 128
.com
/ 16
/ 32
/ 64
/ 2
/ 4
/ 8
CC1
With f
62.5 KHz
500 KHz
250 KHz
125 KHz
CC0
INPUT
8 MHz
4 MHz
2 MHz
1 MHz
=8 MHz CC2 CC1 CC0
TCE
FCRL
0
0
0
0
1
1
1
1
www.DataSheet4U.com
OIE
0
0
1
1
0
0
1
1
INPUT
OVF
0
0
1
0
1
0
1
0
1
.
0: New transition not yet reached
1: Transition reached
COUNTER ACCESS REGISTER (ARTCAR)
Read /Write
Reset Value: 0000 0000 (00h)
Bit 7:0 = CA[7:0] Counter Access Data
These bits can be set and cleared either by hard-
ware or by software. The ARTCAR register is used
to read or write the auto-reload counter “on the fly”
(while it is counting).
AUTO-RELOAD REGISTER (ARTARR)
Read /Write
Reset Value: 0000 0000 (00h)
Bit 7:0 = AR[7:0] Counter Auto-Reload Data
These bits are set and cleared by software. They
are used to hold the auto-reload value which is au-
tomatically loaded in the counter when an overflow
occurs. At the same time, the PWM output levels
are changed according to the corresponding OPx
bit in the PWMCR register.
This register has two PWM management func-
tions:
PWM Frequency vs. Resolution:
[ 128..191 ]
[ 192..223 ]
[ 224..239 ]
CA7
AR7
ARTARR
– Adjusting the PWM frequency
– Setting the PWM duty cycle resolution
[ 0..127 ]
7
7
value
0
CA6
AR6
Resolution
CA5
AR5
> 7-bit
> 6-bit
> 5-bit
> 4-bit
8-bit
CA4
AR4
~0.244-KHz
~0.244-KHz
~0.488-KHz
~0.977-KHz
~1.953-KHz
CA3
AR3
Min
www.DataSheet
www.DataSheet
www.DataSheet
www.DataSheet4U
CA2
AR2
f
PWM
ST72321J
CA1
AR1
31.25-KHz
62.5-KHz
125-KHz
250-KHz
500-KHz
Max
63/179
CA0
AR0
0
0
4U
4U.com
4U
.com
.com
.com

Related parts for ST72F321J