sounds like you're using an MCU... are you going PIC or AVR... or something else altogether?