|
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.
After that program continue place,
where was before this interrupt. There were added declarations, which
link interrupts handler function and lines vector interrupts table with demanding
interruptions.2 Interrupt handler functions
These functions are called from startup_ccs file.Illustration 4.
Timer interrupt occurs when signal was received reserved time.4: Flowchart Header files, Global variables and Defines
4. Then flag increased TIMER_INT defined
number and the result number which equal X_TIMER_INT Y_TIMER_INT
depends the measurement was axis. means that
some error could happen that have visibility between sensors.
Illustration 4.4. Handler turn off
all interrupt and timer peripheral. When occur one of
that interrupt, signal was received.
Port and interrupt handlers are same. External comparator on
port gives rising edge when signal lower than low reference.
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.5: Flowchart Interruption
handlers
22