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