01.06.2015 Views

A Performance Analysis System for the Sport of Bowling

A Performance Analysis System for the Sport of Bowling

A Performance Analysis System for the Sport of Bowling

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A: SMARTDOT Module Embedded S<strong>of</strong>tware Flowcharts<br />

SHUTDOWN TASK FLOWCHART<br />

DONE<br />

SAMPLING<br />

A<br />

SAVE<br />

RUN TIME<br />

BACK TO<br />

SLEEP<br />

Disable Interrupts<br />

Update Run Time<br />

in EEPROM<br />

Switch Active<br />

Scratch Pads<br />

Update Ball Count<br />

in EEPROM<br />

Update Activation Count<br />

in EEPROM<br />

Sample<br />

Overflow<br />

?<br />

NO<br />

Write ZEROs to Unused<br />

Sample Memory<br />

Turn Off TSL251<br />

Turn Off TRX LEDs<br />

SHUTDOWN_PIN = 0 (D-FF CLK)<br />

YES<br />

Write CFG Byte, Sample<br />

End to EEPROM<br />

Run Shutdown Delay<br />

Start Shutdown Time Out<br />

SHUTDOWN_PIN = 1 (D-FF CLK)<br />

(clocks '0' to D-FF on 0 to 1 edge)<br />

SLEEP MODE<br />

Shutdown Time Out or<br />

Pressure on Insert<br />

A<br />

To:<br />

START-UP<br />

Figure A-10<br />

A-10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!