B&B Electronics Asynchronous to Synchronous Converter 2010 Uživatelský manuál Strana 24

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 43
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 23
Department of Computer Science and Electronics
24
4.3.2. Code generation
4.3.2.1. Flux diagram & Algorithm
Initialize function:
-Set microcontroller’s address
-Read results of calibration from EEPROM
-Initialize port D
-Initialize UART
-Initialize ADC
-Disable transmit
Send results
to EEPROM
UC’s address in
the frame?
Yes
No
Calibration?
Yes
No
Any order from
PPC?
Yes
No
Read analogue data
(During 2 minutes)
Calculate threshold
Read analogue data
Built the frame with the
sensors’ state
Enable transmit
Transmit
Disable transmit
Figure 4-9. Programme flux diagram
Zobrazit stránku 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 42 43

Komentáře k této Příručce

Žádné komentáře