Sorry I didn't say what data logger is for. This is just for Remote Control airplanes/helicopter so I know what battery voltage is and motor RPM, temperature of the battery and speed controller. The main reason to use minumum external parts so it is very light because every gram counts on small electric RC helicopters. Everything looks very easy to make since I already did everything bit by bit by writing to flash and reading from flash. Getting ADC to work properly in 8bit and 10bits and CCP to ger RPM from the motor. Debugging the pic using RS232 and HyperTerminal but I just can't figure it out how to make clock. Can anybody please tell me if my calculation is right?
Let's say I use interrupt for 1 second using 16bit timer. 8mhz / 4 cycles / 16bit timer 65536 = 0.000030517578125 multiply by 256 prescaler = 0.0078125. 1 second / 0.0078125 = 128. As I understand it should interrupt the software 128 times per second. How do I figure it out if it will not conflict during ADC, CCP, EEPROM, CCP sampling, writing and erasing? I know I can disable interrupt routine during any of these sampling but it'll mess up the time. Is it even possible to do that without external RTC?
Bookmarks