Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller.

6
Quazyx: Laser Warfare System Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller

Transcript of Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller.

Page 1: Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller.

Quazyx: Laser Warfare

SystemSoftware Constraints

Team 4Mike Niksa, David Freidin

Emily Blount, Ben Moeller

Page 2: Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller.

Utilized Peripherals◦ SPI, Timer, Input Capture, PWM, (ATD)

Overall Organization◦ Main polling loop for Trigger, LCD, RF◦ Interrupt driven for other events

Pin Mappings/Addresses◦ Simple with Microchip C30 Compiler

Ex: Pin RE5 Data Reg: _RE5 and Direction Reg: _TRISE5

Microcontroller Configuration◦ Use _F macros for oscillator, watchdog, code

protection, and other power-up config

Software Design Considerations

Page 3: Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller.

Base Microcontroller Portable Microcontroller External Device Function Pin # External Device Function Pin #Programming Header PGC clock input 1 Programming Header PGC clock input 1 PGD - data input/output 44 PGD - data input/output 44 /MCLR - Master Reset 18 /MCLR - Master Reset 18 VDD 40 VDD 40 VSS 39 VSS 39Shift Register SDO1 - SPI Data out 44 Shift Register SDO1 - SPI Data out 44 SCK1 43 SCK1 43LCD Screen RF1 - LCD Enable 4 LCD Screen RF1 - LCD Enable 4 RF0 - Register Select 5 RF0 - Register Select 5Key Encoder RE4 - output enable 9 RF Transceiver AN3 - RSSI 22 RE3 - Data out D 10 RB0 - Data 19 RE2 - Data out C 11 RB1 - T/R Select 20 RE1 - Data out B 14 RB2 -Power down 21 RE0 - Data out A 15 Trigger RE5 - trigger input 8 IC7 - Data Available 23 IR LED PWM1H 14RF Transceiver AN3 - RSSI 22 IR LED 2 PWM2H 10 RB0 - Data 19 Laser LED RE4 - Gen I/O 9 RB1 - T/R Select 20 Color LED Set 1 RB6 - Gen I/O 25 RB2 -Power down 21 Color LED Set 2 RB7 - Gen I/O 26

Photo Transistor Set 1 IC1 - input capture 42Photo Transistor Set 2 IC2 - input capture 37Photo Transistor Set 3 IC8 - input capture 24Photo Transistor Set 4 IC7 - input capture 23

Utilized Pins/Peripherals

Page 4: Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller.

Main Method

Page 5: Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller.

Interrupts

Page 6: Software Constraints Team 4 Mike Niksa, David Freidin Emily Blount, Ben Moeller.

Hierarchy Diagram