|
Kategorie: Diplomové, bakalářské práce |
Tento dokument chci!
Práce popisuje principy a problémy při realizaci ultrazvukového anemometru. Je popsán princip výpočtu rychlosti větru a následné korekce výpočtu. Pro realizaci jsou využity ultrazvukové sensory a microcontrolér ARM Cortex-M3. Práce se zabývá generováním PWM signálu, jeho analogovou filtrací, zesílením a odvysíláním. Na přijímací straně jeto nízkonapěťový zesilovač a komparátor. Vyvíjený kód je popsán pomocí vývojového diagramu.
4: Flowchart Header files, Global variables and Defines
4. After that program continue place,
where was before this interrupt. means that
some error could happen that have visibility between sensors.
Timer interrupt occurs when signal was received reserved time. External comparator on
port gives rising edge when signal lower than low reference.Illustration 4. When occur one of
that interrupt, signal was received.
Port and interrupt handlers are same. Handler turn off
all interrupt and timer peripheral.
Handler disable all interrupt and timer, increase flag variable GPIO_INT, so
next value refer X_GPIO_INT Y_GPIO_INT. External comparator port gives
rising edge when received signal higher than high reference.2 Interrupt handler functions
These functions are called from startup_ccs file.5: Flowchart Interruption
handlers
22
. There were added declarations, which
link interrupts handler function and lines vector interrupts table with demanding
interruptions. Then flag increased TIMER_INT defined
number and the result number which equal X_TIMER_INT Y_TIMER_INT
depends the measurement was axis.
Illustration 4.4