help with programing

Post here to discuss The Great Race.

Moderators: Chuckt, Garth, bitfogav

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

help with programing

Post by rd1196 » Sun Apr 10, 2011 1:30 am

witch are the pic's outputs I have connect to the pickit2?

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by brad » Sun Apr 10, 2011 2:06 pm

The image is a little small but it should do the trick :D

Image

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by rd1196 » Mon Apr 11, 2011 12:39 am

thanks a lot

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by rd1196 » Tue May 10, 2011 7:37 am

hey brad, i really don't have a clue about how to program the pic you think you can tell me where to find a good tutorial or tell me witch part of the source code should i copy to my pic

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by brad » Tue May 10, 2011 9:51 pm

rd1196 wrote:hey brad, i really don't have a clue about how to program the pic you think you can tell me where to find a good tutorial or tell me witch part of the source code should i copy to my pic
Certainly!

http://www.bradsprojects.com/electronic ... rials.html

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by rd1196 » Sat May 14, 2011 11:21 am

is there a way you can upload the exact code so i can copy it?

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: help with programing

Post by bitfogav » Sat May 14, 2011 7:16 pm

All the info you should need is on Brads tutorials :)

heres the Assembly code for the flashing LED. Your still need to download MPLAB (compiler) to turn the code into HEX file so you can then use your pickit2 to load the HEX file onto your microchip.

MPLAB IDE v8.70 can be downloaded from the bottom of this page
http://www.microchip.com/stellent/idcpl ... t=SW007002

Heres the asm file (ZIP) from Brads flashing LED tutorial2:
tutorial_2_led_flasher.rar
(2.07 KiB) Downloaded 790 times

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by rd1196 » Mon May 16, 2011 10:04 am

I downloaded the MPLAB and I opened the source code on it but how do I turn it into a hex file?

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by brad » Mon May 16, 2011 3:25 pm

Have a read through tutorial 1 and 2 it has all the information in a handy step by step format :)

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by rd1196 » Tue May 17, 2011 7:12 am

Thanks that tutorial helped me understand a lot of things but I still don't quite know what to do after I opened the source code by MPLAB IDLE, I mean how do I copy it to the pickit2

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by rd1196 » Wed May 18, 2011 9:07 am

sorry I forgot to read tutorial 2 but now i know how to turn it into a hex file. I have a problem connecting the chip to the pickit2 it says device no device detected even if my pic is connected to the program

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by brad » Wed May 18, 2011 10:41 pm

Could you please take a screenshot for us just to see exactly what is happening?

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by rd1196 » Fri May 20, 2011 10:35 am

hello brad i wanted to ask you if you can program the microchip while its in the circuit connected to everything. if so how do you do it

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by brad » Sat May 21, 2011 7:23 am

You certainly can!

you just need to have the pickit2 connected as the image shows above. It does not matter that the microcontroller is still in the circuit :)

rd1196
Can't get enough of electronics!
Can't get enough of electronics!
Posts: 83
Joined: Mon Aug 30, 2010 8:05 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: help with programing

Post by rd1196 » Mon May 23, 2011 8:26 am

hello brad

I dont know why when i click import hex file it says device error, hex file not loaded

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 2 guests