1 / 12

System Software Design

System Software Design. Doorbell Jukebox Henry Arbicor and Arthur Bingcang. General System Design. MCU – Freescale MCF52233 Bus Frequency – 60 MHz Memory Requirements 12 kB RAM 37 kB FLASH, no paging Timeslice Kernel Timeslice period: 10ms. Tasks. Start Task MP3 Task Push-button Task

dawn
Download Presentation

System Software Design

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. System Software Design Doorbell Jukebox Henry Arbicor and Arthur Bingcang

  2. General System Design • MCU – Freescale MCF52233 • Bus Frequency – 60 MHz • Memory Requirements • 12 kB RAM • 37 kB FLASH, no paging • Timeslice Kernel • Timeslice period: 10ms

  3. Tasks • Start Task • MP3 Task • Push-button Task • LCD Task • Play Task

  4. Start Task • Initializes the system • Sets up the order in which the other tasks will run • Period: Once at Start-up • Execution Time: 100ms

  5. MP3 Task • Reads MP3’s from MMC card and displays song names on the LCD • Sets pointer that will move when different songs are selected • Period: 100ms (periodic) • Execution Time: 5ms

  6. Push-button Task • Recognizes push-button press • De-bouncing • Sets state • Up • Down • Select • Sequential • Doorbell • Period: 10 ms (sporadic) • Execution Time: 5 us

  7. LCD Task • Display’s song names • Adjusts display according to current state • Period: 100ms (periodic) • Execution Time: 2.5ms

  8. Play Task • When in Doorbell state, decodes and plays the selected song • Period: 10ms (periodic) • Execution Time: 3ms

  9. CPU Load • Load (max) = 5ms/100ms + 5 us/10ms + 2.5ms/100ms + 3ms/10ms = .3755 = 37.55% • Load (average) = 5ms/100ms + 2.5ms/100ms = .075 = 7.5%

  10. Modules

  11. Dataflow Diagrams: LCD Jukebox.c LCD I/O Push-button Task Button LCD Task LCD MP3 Task

  12. Dataflow Diagrams: Audio Out Jukebox.c External Hardware MMC Card MP3 Task Speaker DAC Push-button Clock Play Task

More Related