power supply for pic - need help.... interference problems!

Status
Not open for further replies.

What value pullup resistor are you using?, the higher the value, the higher the input impedance, and the more sensitive to interference it is.
 
the input is setup for internal weak pullups, and i just remembered, i have it setup for an interrupt on pin change for that input. this way i didn't have to poll the input. when that input changes states, my pic will reset, and run some code that i have in the beginning.....

so it looks like the input is the main cause..... the interference is causing the pin to change states, and the pic resets basicly.... still not sure why it decides to lock up the chip sometimes. i would enable the wdt, but i have the pic sleep when not in use, cuz i am still not sure if i want to run it on a battery or not. save some juice while sleeping.

thanks
steve
 
oh and if i recall correctly, aren't the internal pull ups around 22K? i know it is in the data sheet.....but i don't have one here, and don't have time to download it and look it up.... what lower value would be ok to use, for an external pullup?

thanks
 
SnM said:
oh and if i recall correctly, aren't the internal pull ups around 22K? i know it is in the data sheet.....but i don't have one here, and don't have time to download it and look it up.... what lower value would be ok to use, for an external pullup?

I thought they were higher than that, but try something like 2.2K and see if that helps.
 
You've still not described how you configured the reset pin. That's the most likely problem right there.
 
pretty sure....

i don't have access to the code til this weekend, and i never got the chance to mess with it last night, so i'll post up what i find when i find it... 8)
 
Wow, I haven't had a chance to mess with this project in a while

I checked and the CONFIG bit is setup for internal reset only.

__CONFIG _WDT_OFF & _IntRC_OSC & _CP_OFF & _MCLRE_OFF

I got some optocouplers, but I haven't had a chance to try them out. Hopefully I will this week.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…