|
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.
With clock frequency 12,5 MHz 200 clock cycles.
When program pass while waiting loop sequence ADC sequence status flag
is cleared and sequence triggered.10: Flowchart ADC sample function
27
. all has done program is
waiting sequence status flag will set. checked generated assembler code, that this
version takes clock cycles instead 32. Flowchart show loop cycle with copy data
from adc_value_0 array position content address increased parameter. This sequence taking samples have μs
to get date from sequence first its samples are stored local array variable
adc_value_0 with fields.
Data from the other sequences are taken similar way.
Illustration 4.address first field adc_array.
When first ADC sequence capturing first samples, there are before
sampling sequence complete. Every cycle loop is
taken samples increased access appropriate position adc_array.
In these cycles program has called this function, then initialized local variables,
cleared counting variable and moved into loop. reach waiting condition later,
there can few not sampled periods receiving signal, which don’t affect our basic
signal amplitude correction. For
better optimization loop was unrolled and instead loop put here copy orders
with appropriate index number. Then adjust address value adc_array address with i
parameter and clear counting variable