Hi,
I'm in the process of designing an event driven datalogger that will have approximately 10 digital inputs. The interfaces to be used are LCD, EEPROM, RTCC, RS232, all of which i have tested and all work okay. The PIC i'm using is the 18F452. The c compiler is the ccs one.
I'm now starting to think about the software for the main program and this is where i'm weak (software!) but learning slowly. As the datalogger will be event driven, i was thinking of scanning each input in turn and if a state change occurs, then log the state, time and date to EEPROM. Sounds simple but i can't think of a way of only capturing the time on a state change (due to lack of programming experience).
Has anyone got ideas that could point me in the right direction to get started?
Regards
mns
I'm in the process of designing an event driven datalogger that will have approximately 10 digital inputs. The interfaces to be used are LCD, EEPROM, RTCC, RS232, all of which i have tested and all work okay. The PIC i'm using is the 18F452. The c compiler is the ccs one.
I'm now starting to think about the software for the main program and this is where i'm weak (software!) but learning slowly. As the datalogger will be event driven, i was thinking of scanning each input in turn and if a state change occurs, then log the state, time and date to EEPROM. Sounds simple but i can't think of a way of only capturing the time on a state change (due to lack of programming experience).
Has anyone got ideas that could point me in the right direction to get started?
Regards
mns