Reference no: EM132181336
Assignment -
Create a communication serial link between Sensor Light Ladder System (PIC18F45K22) and a Controller (mbed LPC1768).
Hardware:
1. Research the mbed LPC1768 module and connect any serial port of the module to Lab 4's circuit. Connect to Serial Port 1 of the PIC.
2. Transfer the 3 Limit Control push buttons from the PIC system to the mbed module. Include LED indicators for the three sensors, on both systems. Keep the reset button on the PIC system.
3. Create a complete and unique schematic diagram of the new system. Component labels and values must be visible and symbol orientations must be correct. This diagram must be developed on CAD software.
Software:
Each student has been given a unique number. That unique number is the address of their Sensor Light Ladder (PIC) system, and should already be saved in the address member of the system's data structure. Every student will use 0x01 as the address of the Controller Program (mbed).
Within the Sensor Light Ladder System (PIC): With using interrupts...
1. Write a set of functions that will:
a. Receive a command sentence from Controller.
b. Validate checksum for the received command sentence.
c. Parse the command sentence.
d. Execute the command sentence.
e. Reply to the controller via a command sentence confirming the change has been processed.
Use the following structure for the replying command sentence: $UPDLIM, addressTo, addressFrom, mode (limit: high or low), TRUE or FALSE, checksum# TRUE or FALSE is the report data that the setting was changed.
2. Display this message on TeraTerm for 5 seconds every time a limit change is processed.
Within the Controller Program (mbed): With or without using interrupts...
1. Duplicate the data structure and object from the Sensor Light Ladder system (PIC). This is so the controller has the same information than in the monitored system. Initialize the data structure object the same as in the Sensor Light Ladder system.
2. Write a function that will prepare and send a command sentence when a limit value has been changed by the user.
Use the following structure for the control of limit command sentence: $CONLIM, addressTo, addressFrom, mode (limit: high or low), newValue, checksum#
3. Write a set of functions that will:
a. Receive a command sentence.
b. Validate the checksum of the received sentence.
c. Parse the sentence.
d. Execute a command sentence.
i. If an "UPDLIM" and TRUE are received display the entire string on the terminal for 5 seconds.
ii. If anything else is received display "Error, monitored system did not process." For 5 seconds.
iii. If programmed correctly, the remote will control the system limit values and the SLL will reply successfully.
4. Throughout both system programs there will be a need for abstract programming and problem solving that each student is responsible for resolving.