Hello all.
I'm using a 28X1 PicAxe to count the pulses from a small energy meter. I have been using the external counter functionality of the chip, so it counts the pulses in the background while I'm able to talk to the PicAxe through a serial connection and get the number of pulses registered.
I would like to replicate the setup using a smaller chip, since most of the 28X1 power is not used, and also save a bit of space on the board. Ideally, I would need to have the smaller chip to register pulses, could be done though interrupts, and respond to serial requests for sending the data out. I would need to have the data available every minute but the clock accuracy of the PicAxe is not very good, that is why I need to probe the PicAxe from my application. Since I would like to avoid serin, I could use a pulse to trigger an interrupt to make the chip serout the data. So, I know have to have a way to separate interrupt triggers from the pulse reader and from my application.
Anyone has an idea on how I could do that? The pulse rate it's less than 200Hz.
I'm using a 28X1 PicAxe to count the pulses from a small energy meter. I have been using the external counter functionality of the chip, so it counts the pulses in the background while I'm able to talk to the PicAxe through a serial connection and get the number of pulses registered.
I would like to replicate the setup using a smaller chip, since most of the 28X1 power is not used, and also save a bit of space on the board. Ideally, I would need to have the smaller chip to register pulses, could be done though interrupts, and respond to serial requests for sending the data out. I would need to have the data available every minute but the clock accuracy of the PicAxe is not very good, that is why I need to probe the PicAxe from my application. Since I would like to avoid serin, I could use a pulse to trigger an interrupt to make the chip serout the data. So, I know have to have a way to separate interrupt triggers from the pulse reader and from my application.
Anyone has an idea on how I could do that? The pulse rate it's less than 200Hz.