4.9 Pulse Width Modulation (PWM)
2
Electrocardiogram (Ecg) Signals
Lets PB8 blink with 1Hz 50% duty-cycle and PB9 with 25% using the PWM function of
pwm1
the timer TIM4.
LEDs PB8, PB9 are dimmed using the PWM function of TIM4 channel3 and channel4
pwm2
The Electrocardiogram (Ecg)
4.9.1 Configuration
• Ecg: electrical manifestation of heart activity recorded
from the body surface
The timer TIM4 is used for the PWM signal. The channel 3 is mapped by default to PB8 and
channel 4 to PB9.
• monitoring of heart rate
The Ecg signal can be recorded fairly easily with surface
electrodes placed on the limbs and/or the chest, see pages
below.
Josef Goette
34
Figure 4.10: PWM Configuration Wizard
2
4 Peripherals
1 Intro
6–16
2009
STM32 Cortex-M3 Tutorial
Need help?
Do you have a question about the STM32 Cortex-M3 and is the answer not in the manual?