PDA

View Full Version : Error programming UIRT2:



Luc
October 13th, 2002, 12:55 PM
You need 3 signals to the Pic for programming: 2 TTL level on RB6 and RB7 and the programming voltage on MCLR wich is switched on and off by RTS. The comm port also needs the correct signals.
Did you check the cabling and what are you using for the programming voltage?

Luc.

Luc
October 13th, 2002, 12:55 PM
It's difficult to tell what the problem is as I can't see how you've build it and where the error could be. There must be something wrong coz I've already programmed approx 20 without problems :)
You are probably overlooking something.
One thing wich could be done is to use the serial plugin and with a key hit perform the following steps:
- Set RTS and DTR low
- Set RTS high
- Set RTS low
- Set DTR high
- Set DTR low
- Send 0xFF at very low baudrate (for multimeter check)
Each step should be one key hit and for each step the levels on the appropriate comm and PIC pins can be checked even with a multimeter, also check that other pins don't change when they shouldn't.
The serial plugin should also check CTS change when changing DTR.

This would be a good test for the cabling and components to the PIC.
Can you or another volunteer write this as I don't have much time for the moment.
Or does somebody have a better idea?

Luc.

kari
October 13th, 2002, 12:55 PM
Have you got the crystal mounted? If so, remove or short it while programming.

-Kári.

shadowsoul
October 13th, 2002, 12:55 PM
Hello, i finished myy UIRT2 a few days ago but when i try to prgram it with i get the message:

Error programing at 0x0000

I've checked the board and all solderings are correct, i've also used an oscilloscope to check the signals from the computer and it all looks like it should (ie i get 0:s and 1:s sent to pin 4).

Is it possible that i've destroyed the PIC16F84 or can it be something else?

I've tried programming on 4 different comps, all using different OS. The programmer i use is Danijel Pticar.

Any help is greatly appreciated.

shadowsoul
October 13th, 2002, 12:55 PM
You need 3 signals to the Pic for programming: 2 TTL level on RB6 and RB7 and the programming voltage on MCLR wich is switched on and off by RTS. The comm port also needs the correct signals.
Did you check the cabling and what are you using for the programming voltage?

Luc.

Yeah, i checked RB6 and RB7 and got signals (don't remeber what they looked like but there were signals).
MCLR got the signals it should (i think) get.

Cabling works as it should (tested on other parts and with a multimeter).

The voltage on MCLR is 12V (without anything and shunt 1 removed), and got to 13.5V when i tried to program (raised it with a 1.5V battery donnected to the 12V-cable). When shunt 1 is connected as it should be normally, MCLR gets a voltage of 5V.

shadowsoul
October 13th, 2002, 12:55 PM
Have you got the crystal mounted? If so, remove or short it while programming.

-Kári.

No crystal mounted (as it says in the description) so it's not that simple :/

shadowsoul
October 13th, 2002, 12:55 PM
Hmm....i could try that...

As long as i get an explanation to how to it as i have almost no idea of what you are saying i should do :)

Does anyone know how sensitive the PIC16F84 is to ESD? Might be the memory that has been damaged too (bad luck...expensive little buggers they are).

Also i could post pics to show what it looks like but it wouldn't make any sense as i've soldered on an experimental-board (or the like) and not a PCB :P