1 / 13

Virtual Presence Vehicle Team 13

Virtual Presence Vehicle Team 13. Jason Giles John Ashmore Jing Li Brian Bell. Main Loop Interrupt Driven Two Microcontrollers Base Station Remote Station. Software. Base Station Routines. Power On Initialize Turn on Interrupts Main Loop PS2 Controller On Screen Display Power

noreen
Télécharger la présentation

Virtual Presence Vehicle Team 13

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. Virtual Presence VehicleTeam 13 Jason Giles John Ashmore Jing Li Brian Bell

  2. Main Loop • Interrupt Driven • Two Microcontrollers • Base Station • Remote Station Software

  3. Base Station Routines

  4. Power On • Initialize • Turn on Interrupts • Main Loop • PS2 Controller • On Screen Display • Power • Transceiver Flowbullets (Base)

  5. Remote Station Routines

  6. Power On • Initialize • Turn on Interrupts • Main Loop • Compass • Servos • Motor Driver • Power • Transceiver Flowbullets (Remote)

  7. // do some initializations spi_isr(VECTOR, ipl3) { int Data; // Read SPI data buffer Data = SPI1BUF; /* do stuff */ // clear the SPI1 interrupt flags IFS0CLR = 0x03800000; } SPI ISR

  8. // do some initializations iic_isr(VECTOR, ipl3) { case Start /* stuff */ ACK NACK Stop // clear interrupts IIC0CLR = 0x0440 } I2C ISR

  9. // do some initializations pwm1_isr(OC1_VECTOR, ipl3) { /* do stuff */ // clear the OC1 interrupt flags IFS0CLR = 0x0040; } PWM ISR

  10. Last two bytes are button states • 512 kbps PS2 Controller (SPI)

  11. Data • Compass • Battery • Routine • Send initialization data bytes • Send address byte • Send data byte On Screen Display (SPI)

  12. Calibration • RX Setup • Read Byte • TX Setup • Send Byte Transceiver (SPI)

  13. Other Routines

More Related