Programming

hi,

i do not have much experience with any progamming languages (exept for game maker). i read the demo documents but couldnt understand much of it at all. when we did pics in school there was a table with input value condition output and value (or somthing like that) at the top. are there any of these sorts of programs for the k8048. if not are there any tutorials which are very easy to understand.

thanks, Dave :slight_smile: :frowning: :slight_smile:

Dave,

Two good tutorials can be found at http://www.gooligum.com.au/tut_baseline.html or http://www.amqrp.org/elmer160/lessons/index.html.

If you have any specific questions then please come back to me.

Happy experimenting,

Rupert

thank you. i am having problems connecting my board to mplab. what settings do i need. my board does work as the supplied sotware connects ok. i do not see k8048 in the programer listing :slight_smile: :frowning:

Hi,

Good question as although I have access to MPLAB I don’t use it for programming as I am running a Linux box. However if you refer to page 13 of the Velleman manual they refer to ‘PROGPIC2’ PIC Programmer software (supplied on the CD). There is no reason you can not assemble your project in MPLAB and then use this utility to burn the relevant hex file to the PIC.
I use Piklab which has a programming option of ‘Direct to Serial Port’ which works fine.

Having just said all this please see this post [url]Power LED not working - K8048] which would indicate that the above workaround is the simplest way forward.

Hope this is of some help and please come back to me if you need any more assistance.

[quote=“gaspode”]Hi,

Good question as although I have access to MPLAB I don’t use it for programming as I am running a Linux box. However if you refer to page 13 of the Velleman manual they refer to ‘PROGPIC2’ PIC Programmer software (supplied on the CD). There is no reason you can not assemble your project in MPLAB and then use this utility to burn the relevant hex file to the PIC.
I use Piklab which has a programming option of ‘Direct to Serial Port’ which works fine.

Having just said all this please see this post [url]Power LED not working - K8048] which would indicate that the above workaround is the simplest way forward.

Hope this is of some help and please come back to me if you need any more assistance.[/quote]

ok thanks for that. now im getting the evil message saying no pic on board. i have made my own cable which works fine because it says k8048 connected. what is the problem. i am using a PIC16F627. the two front pins have broken off (due to them being very hard to pull out of the socket) but i am pretty sure they are touching the connector. running the chips work fine. so these are my questions…

  1. how doi pull them out without breaking pins off,

  2. what is the problem with the pic not on the board

A. I use a small flat bladed screwdriver - lever the chip GENTLY from both ends and it will eventually pop out. You may need to remove broken pins with small pliers. (I assume the chip is in a holder!)

A. What power supply are you using ? - Is it a proper serial port ?
There are many threads on this subject try [url]Pic k8048 no pic on board pic type mismatch - Microcontroller Programmer - Experimenting Project - Whadda forum - Community Help and Support] to get you started

A. I use a small flat bladed screwdriver - lever the chip GENTLY from both ends and it will eventually pop out. You may need to remove broken pins with small pliers. (I assume the chip is in a holder!)

A. What power supply are you using ? - Is it a proper serial port ?
There are many threads on this subject try [url]Pic k8048 no pic on board pic type mismatch - Microcontroller Programmer - Experimenting Project - Whadda forum - Community Help and Support] to get you started[/quote]

i am using a 12 volt variable mains transformer at 300ma and a real rs232 port running windows ME and XP.

Dave

Like I said please check the other threads such as http://forum.velleman.be/viewtopic.php?f=4&t=2276&hilit=15V you must supply 15V to the programmer!

Please come back to me if you still have problems.

Rupert