Hi,
Having problems with my 18F4520 when its connected to the PC via the rs232 link ( fine otherwise)
Its a standard max232 connected by just the 0v and TX output to a pc via 10 mtrs of cable.
Whenever the PC is powered on the Pic program resets and starts the program code again.
Though the whole pc system causes this, have found that the newish laser printer is the worst offender.
Scoping the incoming signal you can see a 4 to 5v spike up to 1ms long when the laser is switched on or off, though a bit surprised how that can get all the way back to reset the 18f4520.
I have the pic board on a separate mains ring , powered by a transformers; the 0v is not tied to mains Earth.
Mclre is tied to +5v via 10K etc for icsp.
Just a bit lost as how best to cure the problem, have see the isolator in the other recent rs232 post but would that stop the spikes ?
thanks
Having problems with my 18F4520 when its connected to the PC via the rs232 link ( fine otherwise)
Its a standard max232 connected by just the 0v and TX output to a pc via 10 mtrs of cable.
Whenever the PC is powered on the Pic program resets and starts the program code again.
Though the whole pc system causes this, have found that the newish laser printer is the worst offender.
Scoping the incoming signal you can see a 4 to 5v spike up to 1ms long when the laser is switched on or off, though a bit surprised how that can get all the way back to reset the 18f4520.
I have the pic board on a separate mains ring , powered by a transformers; the 0v is not tied to mains Earth.
Mclre is tied to +5v via 10K etc for icsp.
Just a bit lost as how best to cure the problem, have see the isolator in the other recent rs232 post but would that stop the spikes ?
thanks