1 / 13

Wireless Optical USB Mouse

Wireless Optical USB Mouse. System Software Design By: Reza Afshari April 26, 2005. Kernel Selection. Real-time Preemptive Multitasking Kernel Task Synchronization. Micro C/OS-II. Task Priorities. Startup Task – 4 Power Management Task – 5 Sensor Task – 6 Button Detection Task – 7

kellybrooks
Télécharger la présentation

Wireless Optical USB Mouse

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. Wireless Optical USB Mouse System Software Design By: Reza Afshari April 26, 2005

  2. Kernel Selection • Real-time Preemptive Multitasking Kernel • Task Synchronization Micro C/OS-II

  3. Task Priorities • Startup Task – 4 • Power Management Task – 5 • Sensor Task – 6 • Button Detection Task – 7 • Encode Task - 8

  4. Startup Task • Priority: #4 • Description • Initializes System • Creates Tasks Period: One time through (at startup) Execution Time: ~50us

  5. Power Management Task • Priority: #5 • Description • Places mouse in lower levels of power consumption during times of no movement Period: ~1 ms Execution Time: ~15 us

  6. Sensor Task • Priority: #6 • Description • Receives optical sensor movement, if any, and updates the buffer. Period: sporadic Execution Time: ~5 us

  7. Button Detection Task • Priority: #7 • Description • Checks the status of the two mouse buttons and updates the buffer. Period: Sporadic Execution Time: ~5 us

  8. Encode Task • Priority: #8 • Description • Converts the movement data and button status into mouse report format using the microsoft mouse protocol Period: sporadic Execution Time: ~20 us

  9. CPU Load L max = 15 us + 5 us + 5 us + 20 us 1 ms 1 ms 1 ms 1 ms = 4.5%

  10. Module Description Reused Code: SPI_DRIVER.c, written by Jon Peterson

  11. Power Management State Machine

  12. Data Flow Diagram – Button Detection Task

  13. Data Flow Diagram – Sensor Task

More Related