
ST52F510/F513/F514
77/106
PWM/Timer 1 Control Register 2 (PWM1_CR2)
Configuration Register 13 (0Dh) Read/Write
Reset Value: 0000 0000 (00h)
Bit 7-6: Not Used
Bit 5:
T1WAV
T1OUT Waveform
0: pulse (type2)
1: square (type1)
Bit 4-0:
T1PRESC
PWM/Timer 1 Prescaler
The PWM/Timer 1 clock is divided by a
factor equal to 2
T1PRESC
.
The maximum
value allowed for T1PRESC is 10000
(010h)
.
12.6.2 PWM/Timer 1 Input Registers.
PWM/Timer 1 Counter High Input Register
(PWM1_COUNT_IN_H)
Input Register 26 (01Ah) Read only
Reset Value: 0000 0000 (00h)
Bit 7-0:
T1CI15-8
PWM/Timer 1 Counter MSB
In this register the current value of the Timer 1
Counter MSB can be read.
PWM/Timer 1 Counter Low Input Register
(PWM1_COUNT_IN_L)
Input Register 27 (01Bh) Read only
Reset Value: 0000 0000 (00h)
Bit 7-0:
T1CI7-0
PWM/Timer 1 Counter MSB
In this register the current value of the Timer 0
Counter LSB can be read.
PWM/Timer 1Status Register (PWM1_STATUS)
Input Register 28 (01Ch) Read only
Reset Value: 0000 0000 (00h)
Bit 7-4: Not Used
Bit 3:
T1OVFL
PWM
/
Timer 1 counter overflow flag
0: no overflow occurred since last reset
1: overflow occurred
Bit 2:
T1OUT
T1OUT pin value
0: T1OUT pin is at logical level 0
1: T1OUT pin is at logical level 1
Bit 2:
T1RST
Reset Status
0: PWM/Timer 1 is reset
1: PWM/Timer 1 is set
Bit 2:
T1SST
Start Status
0: PWM/Timer 1 is stopped
1: PWM/Timer 1 is running
PWM/Timer 1 Capture High Input Register
(PWM1_CAPTURE_H)
Input Register 29 (01Dh) Read only
Reset Value: 0000 0000 (00h)
Bit 7-0:
T1CP15-8
PWM/Timer 1 Capture MSB
In this register the counter value after the last stop
can be read.
7
5
0
-
-
T1WAV
T1PRESC
7
0
T1CI15
T1CI14
T1CI13
T1CI12
T1CI11
T1CI10
T1CI9
T1CI8
7
0
T1CI7
T1CI6
T1CI5
T1CI4
T1CI3
T1CI2
T1CI1
T1CI0
7
0
-
-
-
-
T1OVFL T1OUT
T1RST
T1SST
7
0
T1CP15 T1CP14 T1CP13 T1CP12 T1CP11 T1CP10
T1CP9
T1CP8