SEROUT2 PORTd.2,84,["COUNTER=",DEC COUNTER,13,10] 'BAUD = 38400
84 is 9600 baud and it is True mode. If you are connecting directly to a PC you will need to use Inverted mode.
SEROUT2 PORTd.2,84,["COUNTER=",DEC COUNTER,13,10] 'BAUD = 38400
84 is 9600 baud and it is True mode. If you are connecting directly to a PC you will need to use Inverted mode.
Dave
Always wear safety glasses while programming.
Hi Dave,
That was my typo, I was messing with a RS232 converter chip to see if it was a problem with true mode and also with different speeds and forgot to change the comment.
It doesn't matter what mode or speed I choose I get either a dead program or just junk. Sometimes it only starts when I unplug the programming plug from the programmer.
Regards
Chris
I will assume you are not powering the chip with the PicKit?Sometimes it only starts when I unplug the programming plug from the programmer.
Is the chip still in the EPIC when you use the PicKit?
Maybe a picture of your setup?
Dave
Always wear safety glasses while programming.
Hi Dave,
I have attached a photo of my setup. The programming cable that I use is the same as I used for the EPIC except the MCLR pin had to be swapped position.
The PIC is powered by the board and the PICKit2 is set to Automatic power detect. It seems to be programming fine when the code is right.
I really as stumped with this....
Regards
Chris
Hi All,
I solved the mystery of the PICkit2 and EPIC.
The difference was the assembler. I programmed using both programmers on my old PC which had MPLAB installed properly and directed MCstudio to the program files/microchip directory.
On my new PC/notebook I just put MPASM in a directory and directed MCstudio there. I now installed MPLAB 8.7 on the notebook and pointed MCstudo to that and hey presto the programmer worked.
The final tricky part was to get the programmer to work using the command driver. I just put pk2cmd.exe in a directory and pointed MCstudio to that and then added the following line to the parameters box: -pPIC$target-device$ -f$hex-filename$ -M -R -T -h2.
Now it's "compile & program" like i had it before with the EPIC!!!
Hooray!
Thanks for you input Dave, you helped me find what were not problems!![]()
Glad to have been a help!Thanks for you input Dave, you helped me find what were not problems!![]()
Dave
Always wear safety glasses while programming.
Bookmarks