1 / 8

Matthew Murach

Overview of Project 4 Slides are available at : http://www.pages.drexel.edu/~mjm46 Due Tuesday 17 th. Matthew Murach. Project 4: Tx/Rx Communication. For this project, you are designing a two way, full duplex, communication system.

josie
Download Presentation

Matthew Murach

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. Overview of Project 4Slides are available at : http://www.pages.drexel.edu/~mjm46Due Tuesday 17th Matthew Murach

  2. Project 4: Tx/Rx Communication • 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. • 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: void receive (){} /* receive data */ void send(){} /* send data */ void main(){} /* delegate communication */ • 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. • 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.

  5. Project 4: Tx/Rx • Digital 9 is much easier to setup in this fashion • 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.

  6. Project 4: Tx/Rx • 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. • 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. • 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”

  8. Project 4: Tx/Rx • 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. • 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.

More Related