110 likes | 224 Views
Audio Visualization Device Software Presentation. Keenan Haines Nicole Samuelson. General System Requirements. MCU: 9S12DP512 Bus Frequency: 24MHz Memory Requirements: 10k bytes Flash EEPROM 2k bytes EEPROM 2k bytes RAM Kernel: MicroC/OS-II Tick Period: 1ms. Task Priorities.
E N D
Audio Visualization DeviceSoftware Presentation Keenan Haines Nicole Samuelson
General System Requirements • MCU: 9S12DP512 • Bus Frequency: 24MHz • Memory Requirements: • 10k bytes Flash EEPROM • 2k bytes EEPROM • 2k bytes RAM • Kernel: MicroC/OS-II • Tick Period: 1ms
Task Priorities • Start Task • Sampling Task • User Interface Task • Display Task
Start Task • Initializes the system • Creates the other tasks • Displays user prompt • Priority: 4 • Period: once (at start-up) • Execution Time: ~ 1 sec
Sampling Task • Sample incoming audio • Determines volume level • Stores data for display • Priority: 5 • Period: 1ms • Execution Time: 200us
User Interface Task • Receives user preferences • Priority: 6 • Period: 20ms(min) • Execution Time: 2ms
Display Task • Cycles through animations • Operates LED drivers • Generates MIDI commands • Priority: 7 • Period: 20ms • Execution Time: 2ms(max)
CPU Load Lmax = 200us + 2ms + 2ms 1ms 20ms 20ms Lmax = 40% Lavg = 10.2%