overview of project 4 slides are available at http www pages drexel edu mjm46 due tuesday 17 th n.
Skip this Video
Download Presentation
Matthew Murach

Loading in 2 Seconds...

play fullscreen
1 / 8

Matthew Murach - PowerPoint PPT Presentation

  • Uploaded on

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.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about 'Matthew Murach' - josie

Download Now 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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
overview of project 4 slides are available at http www pages drexel edu mjm46 due tuesday 17 th

Overview of Project 4Slides are available at : http://www.pages.drexel.edu/~mjm46Due Tuesday 17th

Matthew Murach

project 4 tx rx communication
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.
project 4 tx rx
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.

project 4 tx rx1
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.
project 4 tx rx2
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.
project 4 tx rx3
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.
project 4 tx rx4
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”
project 4 tx rx5
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.