Presentation is loading. Please wait.

Presentation is loading. Please wait.

Overview of Project 4 Slides are available at : Due Tuesday 17 th Matthew Murach.

Similar presentations


Presentation on theme: "Overview of Project 4 Slides are available at : Due Tuesday 17 th Matthew Murach."— Presentation transcript:

1 Overview of Project 4 Slides are available at : http://www.pages.drexel.edu/~mjm46 Due Tuesday 17 th http://www.pages.drexel.edu/~mjm46 Matthew Murach

2 Project 4: Tx/Rx Communication For this project, you are designing a two way, full duplex, communication system. For this project, you are designing a two way, full duplex, communication system. That is to say that a loop back can be established between the input and output ports. That is to say that a loop back can be established between the input and output ports. If your project is functioning, you should be able to transmit values from your digital output pins to another handyboard’s digital input pins. If your project is functioning, you should be able to transmit values from your digital output pins to another handyboard’s digital input pins.

3 Project 4: Tx/Rx For this project your code should be organized roughly as follows: For this project your code should be organized roughly as follows: void receive (){} /* receive data */ void send(){} /* send data */ void main(){} /* delegate communication */ For this project, the multitasking arrangement is For this project, the multitasking arrangement is required. In other words any given handyboard is required to be able to send or receive to another handyboard.

4 Project 4: Tx/Rx Basic output pins: SPI connector can be configured in this fashion. Also digital 9 can be setup in this fashion. Basic output pins: SPI connector can be configured in this fashion. Also digital 9 can be setup in this fashion. Use the poke command to set SPI Use the poke command to set SPI poke(0x1009,0x3C); /*sets SPI pins to output*/ See page 59 in Handyboard manual More coverage on the SPI will be given on the first class next week. More coverage on the SPI will be given on the first class next week.

5 Project 4: Tx/Rx Digital 9 is much easier to setup in this fashion Digital 9 is much easier to setup in this fashion Using the functions bit_set(), bit_clear you can control digital 9. Using the functions bit_set(), bit_clear you can control digital 9. /* sample digital 9 control */ bit_set(0x1026,0x80) /* set digital 9 as output */ bit_set(0x1000,0x80) /* drive 9 to logic 1 */ bit_clear(0x1000,0x80) /* drive 9 to logic 0 */ bit_clear(0x1026,0x80) /* set digital 9 back to input */ You may chose to use binary communication with just digital 9 and 7. You may chose to use binary communication with just digital 9 and 7.

6 Project 4: Tx/Rx It is also possible to use IR communication through the handyboard. It is also possible to use IR communication through the handyboard. However, this method is NOT advised since it is impossible to setup a loopback with just one handyboard. However, this method is NOT advised since it is impossible to setup a loopback with just one handyboard. You should use the method of digital communication described earlier. You should use the method of digital communication described earlier.

7 Project 4: Tx/Rx Your communications system should send a user predefined array to the output. Your communications system should send a user predefined array to the output. To test your code only one handyboard should be needed. Simply cross-connect the output pins with the input pins. The receive function should poll the input pins and the send function should send a predefined message through the digital outputs To test your code only one handyboard should be needed. Simply cross-connect the output pins with the input pins. The receive function should poll the input pins and the send function should send a predefined message through the digital outputs Note that both send and receive must be active and hence “concurrent operations” Note that both send and receive must be active and hence “concurrent operations”

8 Project 4: Tx/Rx This project will require the following. This project will require the following. Each design team consisting of 1-2 students should submit a brief 1-2 page report detailing the design and implementation that was chosen. Each design team consisting of 1-2 students should submit a brief 1-2 page report detailing the design and implementation that was chosen. In addition, all C files needed for this project should be well commented and readable. In addition, all C files needed for this project should be well commented and readable. Also each team will be required to show that the design works by illustrating dashes and dots across the receiver. Also each team will be required to show that the design works by illustrating dashes and dots across the receiver.


Download ppt "Overview of Project 4 Slides are available at : Due Tuesday 17 th Matthew Murach."

Similar presentations


Ads by Google