1 / 13

Multi-Access Lock

Multi-Access Lock. Andrew Hall. General System Requirements. MCU: MC9S12C128 Bus Frequency: 24MHz Memory Requirements: 11k bytes Flash EEPROM 3k bytes RAM Kernel: MicroC/OS-II Tick Period: 1ms. Task Priorities. Start Task Mag. Reader Task User Interface Task Keypad Task.

genero
Download Presentation

Multi-Access Lock

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. 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?

More Related