Hi Robert,
this PIC has capture comparators on portC, turn them off
CCP1CON = 0
Hi Robert,
this PIC has capture comparators on portC, turn them off
CCP1CON = 0
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
thanks for the help!
made a difference, although i still had a problem. in the end i tried putting a capacitor (about 470micro ohms) across the input voltage and the ground. this made my pic work real smooth and now all my programs run completely fine over long periods of time!
unfortunately im not an expert on schematics of electronics and it was probably quite obvious to a seasoned programmer... can anyone explain the physical reason behind why this worked? sorry im quite interested in knowing this kind of stuff.
Properly sized caps near the PIC across VDD/VSS will help do a final clean up of the power. The power supply may have nice clean power but a lot can happen along the way to the PIC.
Larger caps most anyplace in the circuit will help with short "brown outs" a short term battery of sorts.
That is all the technical I feel like today. But it should give you the idea.
Dave
Always wear safety glasses while programming.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks everyone. i put
@ DEVICE pic16F877 ' System Device
@ DEVICE pic16F877, WDT_ON ' Watchdog Timer
@ DEVICE pic16F877, PWRT_ON ' Power-On Timer
@ DEVICE pic16F877, BOD_ON ' Brown-Out Detect
@ DEVICE pic16F877, LVP_OFF ' Low-Voltage Programming
@ DEVICE pic16F877, CPD_OFF ' Data Memory Code Protect
@ DEVICE pic16F877, PROTECT_OFF ' Program Code Protection
@ DEVICE pic16F877, XT_OSC
and all works fine.
![]()
thanks mack and joe.s
yeah that makes total sense, i was just being a bit idiotic i think! it just stores energy almost and then when there is a fluctuation in power source, the capacitor releases the built up charge to oppose the change.
Bookmarks