I don't necessarily agree with this proposition. It depends on what else the AVR needs to do. If timekeeping is it, adding a second chip doesn't really do anything for you.You can configure the timers of the Atmega164 microcontroller to make a clock and keep count of day and night. However, I think it will be better if you interface a DS1307 or any other RTC with the microcontroller. The task will be easier.
In my last post I wrote exactly what it needs to do, you can check that if you have the time. But thank you both for your replies, I’ll look more into it.I don't necessarily agree with this proposition. It depends on what else the AVR needs to do. If timekeeping is it, adding a second chip doesn't really do anything for you.
I’m counting the positive pulses received from a DSP and then convert them into the equivalent power consumed. So I have to keep track of the power consumption during the day and the night.What does day and night have to do with counting?
What are you counting?
I hear what you are saying, but it makes little sense to me. You may need to find an alternative way of communicating what is going on because your words are failing you.I’m counting the positive pulses received from a DSP and then convert them into the equivalent power consumed. So I have to keep track of the power consumption during the day and the night.
The system measures and displays electricity consumption and is composed of two subsystems (AVR and DSP).How do the pulses relate to equivalent power? Are you taking the output of some power metering chip?
If you can, give us enough detail to help you toward your goal.
I know, I’m sorry. I replied to the message above with the whole requirement. It is fairly complex for me and that’s why I am trying to make a very simplified version which only counts the positive edges of the waveform it receives and not bother with the power conversion just yet. The DSP code is already written so that’s not a problem. Thank you very much for your interest!I hear what you are saying, but it makes little sense to me. You may need to find an alternative way of communicating what is going on because your words are failing you.
by Jake Hertz
by Duane Benson
by Duane Benson