DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST7PLITEU09M3TR View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ST7PLITEU09M3TR Datasheet PDF : 115 Pages
First Prev 61 62 63 64 65 66 67 68 69 70 Next Last
ST7LITEU05 ST7LITEU09
12-BIT AUTORELOAD TIMER (Cont’d)
11.2.6 Register Description
TIMER CONTROL STATUS REGISTER (ATC-
SR)
Read / Write
Reset Value: 0000 0000 (00h)
7
0
0
0
0 CK1 CK0 OVF OVFIE CMPIE
Bits 7:5 = Reserved, must be kept cleared.
Bit 0 = CMPIE Compare Interrupt Enable.
This bit is read/write by software and clear by
hardware after a reset. It allows to mask the inter-
rupt generation when CMPF bit is set.
0: CMPF interrupt disabled
1: CMPF interrupt enabled
COUNTER REGISTER HIGH (CNTRH)
Read only
Reset Value: 0000 0000 (00h)
15
8
Bits 4:3 = CK[1:0] Counter Clock Selection.
These bits are set and cleared by software and
cleared by hardware after a reset. They select the
clock frequency of the counter.
Counter Clock Selection
OFF
fLTIMER (1 ms timebase @ 8 MHz)
fCPU
Reserved
CK1 CK0
0
0
0
1
1
0
1
1
0
0
0
0 CN11 CN10 CN9 CN8
COUNTER REGISTER LOW (CNTRL)
Read only
Reset Value: 0000 0000 (00h)
7
0
CN7 CN6 CN5 CN4 CN3 CN2 CN1 CN0
Bit 2 = OVF Overflow Flag.
This bit is set by hardware and cleared by software
by reading the ATCSR register. It indicates the
transition of the counter from FFFh to ATR value.
0: No counter overflow occurred
1: Counter overflow occurred
Caution:
When set, the OVF bit stays high for 1 fCOUNTER
cycle (up to 1ms depending on the clock selection)
after it has been cleared by software.
Bit 1 = OVFIE Overflow Interrupt Enable.
This bit is read/write by software and cleared by
hardware after a reset.
0: OVF interrupt disabled
1: OVF interrupt enabled
Bits 15:12 = Reserved, must be kept cleared.
Bits 11:0 = CNTR[11:0] Counter Value.
This 12-bit register is read by software and cleared
by hardware after a reset. The counter is incre-
mented continuously as soon as a counter clock is
selected. To obtain the 12-bit value, software
should read the counter value in two consecutive
read operations. As there is no latch, it is recom-
mended to read LSB first. In this case, CNTRH
can be incremented between the two read opera-
tions and to have an accurate result when
ftimer=fCPU, special care must be taken when CN-
TRL values close to FFh are read.
When a counter overflow occurs, the counter re-
starts from the value specified in the ATR register.
61/115
1

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]