1 / 12

Project PRINT TCSP 6 Software Design Narrative

Project PRINT TCSP 6 Software Design Narrative. Team 8 Vineeth Harikumar. Project Abstract. Printer power management system Use the power indicator LED as a light sensor Control printer's power based on light levels Route incoming print jobs to local storage/printer. Block Diagram.

uma
Download Presentation

Project PRINT TCSP 6 Software Design Narrative

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. Project PRINT TCSP 6 Software Design Narrative Team 8 Vineeth Harikumar

  2. Project Abstract • Printer power management system • Use the power indicator LED as a light sensor • Control printer's power based on light levels • Route incoming print jobs to local storage/printer

  3. Block Diagram 110VAC 3 3 110VAC 4 Ethernet Power Relay RPG SD Card 6 PIC32MX795F512HMicrocontroller SPI-to-Ethernet Controller Ethernet LED 100 ohms 16 4 ? SM Power Supply (to all components) LCD Display 2 4 5VDC

  4. Software Design Considerations SPI • MICRO SD • SPI-to-Ethernet Controller UART • Debugging ADC • LED light sensing GPIO pins • LCD

  5. Software Design Hybrid design • Interrupts • UART - Debugging • Timers - light sensing routines, timeouts • SPI-to-Ethernet controller • Polling • Store incoming bytes to SD card • Transmit bytes from SD card • Check flags for updating LCD • Check flags for LED light sensing routines

  6. Software Design Reset initializeSPI() initializeUART() initializeADC() while(1) configureInterrupts() initializeSDCard() writeIncomingPacketsToSDCard() readAndForwardPacketsOnSPI() sampleADCVoltage() updateLCD() controlPrinterMode()

  7. Code Hierarchy main.c SPI.h ADC.h LCD.h SDCARD.h TIMER.h UART.h initLCD() sendCommand() sendByte() initSPI() SPIinterrupts() configTimer() TIMER_ISR() initSDCard() ReadSector() WriteSector() initUART() UART_ISR() WriteString() initADC() sampleADC()

  8. Initializations ADC • Pins AN4 & AN5 • External VREF+ & VREF- • Manual scanning mode LCD • 12 GPIO Pins • 8 data pins for DB0-DB9 • Register select, Read/Write mode, Clock

  9. Initializations UART • UART1 Receiver and Transmitter • 8 bit data size • 0 parity bits, 1 stop bit • Data rate = 38400bps TIMER • Timer Channel 1 • 10ms interrupts

  10. Initializations SPI • MicroSD card • 3 pins (SCK,SDO, SDI) • Read/Write transfer rate 10Mbps • SPI-to-Ethernet controller • Implemented with two interrupt pins and SPI • Maximum data transfer rate of upto 10Mbps

  11. Code Completion Status

  12. Questions?

More Related