4.4 Register Access
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
4.4 Register Access
b
gpioRegister
F
GPIO usage by register access. Instead of using the FwLib the registers can be
accessed directly.
The properties then are set with:
Listing 4.3:
Setting the GPIO Register by direct access
/
∗∗
∗
S e t up t h e GPIO r e g i s t e r s (GPIOA as i np ut and GPIOB as output )
∗
/
void
i n i t G p i o R e g i s t e r (
void
)
{
25
// GPIOA : Input with pullup/pulldown
GPIOA
−
>
CRH = 0 x88888888 ;
GPIOA
−
>
CRL = 0 x88888888 ;
// GPIOB : Output push
−
p u l l , 50MHz
GPIOB
−
>
CRH = 0 x33333333 ;
30
GPIOB
−
>
CRL = 0 x33333333 ;
}
Lukas Kohler
25