I have had my web platform for about a week now and am climbing the pic learning curve. I want to use the platform for an industrial process monitoring solution. I want to use the Microchip stack due to the SNMP stuff. I want to use the RTCC to provide date stamps for the events it will forward to an http server (connected to a database).
I believe I am correct in assuming that the RTCC uses timer1 and will conflict with tick.c in the microchip stack. I am fairly certain it can be moved to another timer. Has anyone converted tick.c to run on another timer? If no one has I will be working on this week. If anyone can offer any help I would appreciate it.
Thanks in advance
Chris
Hey Chris,
Let me know if you run into any problem, I'm happy to help with the setup code.
Here's the RTCC reference manual:
http://ww1.microchip.com/downloads/en/D ... 70301B.pdf (http://ww1.microchip.com/downloads/en/DeviceDoc/70301B.pdf)
I thumbed through it really quick. It looks like the RTCC module has its own counter and doesn't use timer 1.
Now that I re-read a bunch of stuff you may be right.
I read this: (from DS70292D-page 187)
The unique features of Timer1 allow it to be used for
Real-Time Clock (RTC) applications. A block diagram
of Timer1 is shown in Figure 12-1.
and assumed the RTCC module used timer1. I will look closer once I get some more sleep.
Chris
Probably timer 1 can also be used for a RTCC (as it is in most PICs), but it looks like the RTCC module is separate. It has a nice PPS assignable 1hz output I noticed :)