Changelog

TODO: (basic opsys)
rs232 interrupt driven input and parse routine for PC sets/gets/commands/debug
Improve time machine to allow lengthy status messages to be staged out to PC on second intervals
setup extra counter inputs for particle counters, and/or turbo pump speed.

Add whatever apps for the design you are doing.


11/28/10
Rom 8%, ram 24% (nearly all rs232 buffers), about 5% without them

Added interrupt driven rs232 output code.  Define for buffer size currently 64 char (most of memory use)

Added WDT setup and reset in main loop.

Created #define for WATCHXTAL to choose time of day clock source
(if xtal not used, you get two more pins and another timer to use in apps)

Boot message with reason for startup (power up, WDT reset, reset, etc)

EEPROM defaults (prelim) programmed in file and test of data retention

PWM changed to 123khz base rate and 8 bit resolution



///
Base:
Uses internal osc at approx 32 mhz -- or HS xtal with minor code change (fuses and add xtal).
Init function to setup hardware and ram.
A/d set to capture first 4 channels at 100hz per scan, 12 bit rez
PWM setup
Timers setup
Ports setup
Runtime tracking
Main loop to call apps in