3.5 Setting up a new Project
1 Intro
2
Electrocardiogram (
Ecg
) Signals
The Electrocardiogram (
Ecg
)
•
Ecg
: electrical manifestation of heart activity recorded
from the body surface
•
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
6
–
16
below.
Josef Goette
2
2009
Figure 3.3:
Add the startup code to the project
The project has now been created. Now we need to add the files
STM32 Init.c
and
gpio.c
to
the project. Double click on
Source Group 1
and add these two files.
3.5.3 Configure the Processor
Since we have added
STM32 Init.c
to the project we can use the
Configuration Wizard
to config-
ure the processor. Double click
STM32 Init.c
and select
Configuration Wizard
(Figure
). We
need the
Clock Configuration
and the
General purpose I/O Configuration
to be checked.
In the
Clock Configuration
do the following settings according to Figure
•
Clock Control Register Configuration (RCC CR)
•
Clock Configuration Register Configuration (RCC CFGR)
•
HSE: External High Speed Clock [Hz]: 8000000 (8MHz) (given by the board)
Figure 3.4:
Configuration wizard
General purpose I/O Configuration
: We need to configure the GPIO to fast outputs:
•
Check GPIOB: GPIO port B used and set all pins to
General Purpose Output push-pull (max
speed 50MHz)
Embedded Flash Configuration
: Set the settings acording to Figure
Lukas Kohler
15