1 / 16

Motorcycle Communication and Music Station

Motorcycle Communication and Music Station. System Software Presentation Keith Mikoleit WWU 2010. General System Design. MCU: MC9S12XS128 Bus Frequency: 24 Mhz Memory Requirements ROM: ~ 4 Kbytes Program Storage RAM: ~ 500 bytes Variables and Data Available Memory 128 Kbytes Flash

urbain
Download Presentation

Motorcycle Communication and Music Station

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Motorcycle Communication and Music Station System Software Presentation Keith Mikoleit WWU 2010

  2. General System Design MCU: MC9S12XS128 Bus Frequency: 24 Mhz Memory Requirements • ROM: ~ 4 Kbytes • Program Storage • RAM: ~ 500 bytes • Variables and Data Available Memory • 128 Kbytes Flash • 8 Kbytes RAM

  3. Kernel Design Time Slice Scheduler • Slice Period: 10 ms • Switch Debouncing • 4 + 1 Tasks • 2 ISRs

  4. State Diagram PTT : Push to Talk

  5. Task/ISR Timing

  6. Key Task • Scan UI Switches • Interpret and Set Commands State Control Task • Switch System States • Control Audio Signal Switching

  7. iPod Task • Send Commands to the iPod • Display iPod Data on LCD Intercom Task • PTT (Transceiver Control) • Send RF call • Check Incoming Call Data • Signal Strength A/D and Display

  8. SCI0RD ISR • Read Data from SCI0 • Set iPod Data Ready Flag SCI1RD ISR • Read Data from SCI1 • Set RF Data Ready Flag

  9. Modules

  10. Modules

  11. State Control UI Switch I/O Main.c Audio Control and RF I/O PA[3:0] PM[5] Key Task StateCtrlTask PAD[6:0] LCD I/O Mode Switch System State PT[7:1] PB[6:5] Intercom Task iPod Task

  12. iPod Command Send UI Switch I/O Main.c Key Task To iPod SCI0 RemoteMode() AdvancedMode() iPodPlay() iPodStop() iPodBack() iPodForward() PAD[6:0] iPodTask Music Commands

  13. iPod Data Receive iPodInterface.c Main.c LCD I/O SCI0RD From iPod PT[7:1] PB[6:5] SCI0 iPodTask iPod Data

  14. RF Call Send Main.c StateCtrl Task To RF Tx SCI1 Call() IntercomTask System State

  15. RF Call Receive Intercom.c Main.c LCD I/O SCI1RD From RF Rx PT[7:1] PB[6:5] SCI1 Intercom Task RF Data

  16. Signal Strength A/D I/O A/D Converter Main.c ATDCTL5 From RSSI SignalStrength() AN7 Ts = 1 sec Intercom Task PAD[7] ADR0DR7H

More Related