![Page 1: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/1.jpg)
RFID Access Control System
Lucius Knight
![Page 2: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/2.jpg)
General System Design Microcontroller
PSoC CY8C29466 24MHz Bus Frequency
Memory Available 32kB FLASH 2kB RAM
Memory Requirements System Software ~ 5kB FLASH Activity Log ~ 25kB FLASH System Data ~ 250B RAM
![Page 3: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/3.jpg)
Kernel Selection Time Slice Cyclic Scheduler 10ms Period
START
Initialize
Timer Event
Key Scan
User Interface
RFID
Update Time
Output Data
Update Display
No
Yes
![Page 4: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/4.jpg)
Initialization System Initialization
LCD RFID Keypad
Period Only run one time
Execution Time ~ 100 ms
![Page 5: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/5.jpg)
Time Slice Sleep timer used for periodic interrupt Period
10 ms
![Page 6: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/6.jpg)
Keypad Task Scans for key presses Period
10 ms (Periodic) Execution Time
~ 5 us (max)
![Page 7: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/7.jpg)
User Interface Task Determines menu state based on user input Period
100 ms (Periodic) Execution Time
~ 1 ms (max)
![Page 8: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/8.jpg)
RFID Task ID validation Controls
H-bridge/lock LED Buzzer
Period 100 ms (Periodic)
Execution Time ~ 1 ms (max)
![Page 9: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/9.jpg)
Update Time Task Calculates current date and time Period
1 s (Periodic) Execution Time
~ 1.5 us (max)
![Page 10: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/10.jpg)
Output Data Task Sends activity log to PC serial port Period
10 ms (Sporadic) Execution Time
~ 2 ms (max after decomposition)
![Page 11: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/11.jpg)
Update Display Task Displays current information to LCD Period
100 ms (Periodic) Execution Time
~ 2.5 ms (max)
![Page 12: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/12.jpg)
System CPU Load L(max) =
5µs/10ms + 1ms/100ms + 1ms/100ms +1.5µs/1s + 2ms/10ms + 2.5ms/100ms
L(max) = 24.6% L(avg) = 4.6%
![Page 13: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/13.jpg)
Module ListModule: Task: Public Functions:
SeniorProject.c Initialize
Key.c(Cypress API)
Key Scan KeyType GetKey(void);
UserInterface.c User Interface UIStateType GetState(void);
RFID.c RFID
Time.c Update Time TimeStruct GetTime(void);void SetTime(TimeStruct NewTime);
UART.c(Cypress API)
Output Data
LCD.c(Cypress API)
Update Display
![Page 14: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/14.jpg)
Update Display Task Communications
Key Scan
Update Time
User Interface
Update Display
Key
Time Structure
State
LCD
SeniorProject.c LCD Module LCD I/O
![Page 15: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/15.jpg)
Update Time Task Communication
User Interface
Update Display
Time Structure
UserInterface.c Time Module
![Page 16: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/16.jpg)
User Interface Task Communication
Key Scan User InterfaceKey
Key.c User Interface Module
Keypad
Keypad I/O
![Page 17: RFID Access Control System Lucius Knight. General System Design Microcontroller PSoC CY8C29466 24MHz Bus Frequency Memory Available 32kB FLASH](https://reader035.vdocuments.net/reader035/viewer/2022062311/5a4d1b257f8b9ab05999702c/html5/thumbnails/17.jpg)
Output Data Task Communication
User Interface
Output DataState
UserInterface.c Output Data Module
DB9
Serial I/O