|
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.
set for both and then are enabled their outputs.4. Flag set hear its first state
X_PWM.7: Flowchart Initializations
4.5 PWM prepare function
Function called inside first condition main function.
After that cleared ADC interrupt status flag for all sequences and all are enabled.
Illustration 4. enable ADC peripheral, configure sequence 3
to triggered processor. Then set our global variable flag X_PWM_SET Y_PWM_SET state.
25
. Sequence will capture samples when triggered, and
2 will capture samples.
Then test which axis will measured. set maximum sampling frequency
500 kSa/s capture analog received signal every μs.
At first set 2,5 time discount from timer load constant and timer enabled.
The last adc_init function. measure always channel
3, it’s configured configuring step here. These sequences are used sample received amplified analog
signal. enable PWM for set axis, clear interrupt
status flag for digital input pins where expect interruption and enable interruption
on pins level here. From here
measurement starts.
Then configured step ADC sequence and step sequence
1 and configure channel and ADC interrupt status flag set when last sample
is done. Sequence used for temperature measurement.
The last order enable all interruption