Download
multi access lock n.
Skip this Video
Loading SlideShow in 5 Seconds..
Multi-Access Lock PowerPoint Presentation
Download Presentation
Multi-Access Lock

Multi-Access Lock

83 Vues Download Presentation
Télécharger la présentation

Multi-Access Lock

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Multi-Access Lock Andrew Hall

  2. General System Requirements • MCU: MC9S12C128 • Bus Frequency: 24MHz • Memory Requirements: • 11k bytes Flash EEPROM • 3k bytes RAM • Kernel: MicroC/OS-II • Tick Period: 1ms

  3. Task Priorities • Start Task • Mag. Reader Task • User Interface Task • Keypad Task

  4. Start Task • Initializes the system • Creates the other tasks • Priority: 4 • Period: once (at start-up) • Execution Time: ~ 1 sec

  5. Mag. Reader Task • Reads the card data • Priority: 5 • Period: 200 ms (sporadic) • Execution Time: 2ms (max)

  6. User Interface Task • Displays user prompt • Receives and tests user inputs • Saves user name and pin# • Controls locking mechanism • Priority: 6 • Period: 20ms(sporadic) • Execution Time: 2ms(max)

  7. Keypad • Scans keypad • Priority: 7 • Period: 10ms(sporadic) • Execution Time:~2.2us(max)

  8. CPU Load Lmax = 2ms + 2ms + 2.2us 200ms 20ms 10ms Lmax = .11 Lavg = .017

  9. Modules

  10. Data Flow Diagrams MultiAccessLock.c ProgEeprom.c LCD4Bit I/O User input Store Memory (user name & pin) Test data User prompts EEWordWrite() Unlock door

  11. MagFlag Data Flow Diagrams Magnetic Strip Reader Module MagReader I/O MultiAccessLock MagReadTask() MagReadInit() MagReadPost() MagKey

  12. KeyFlag Data Flow Diagrams Keypad Driver Module Keypad I/O MultiAccessLock KeyInit() KeyPend() KeyTask() key

  13. Questions or Comments?