Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 7th May 2009, 10:14 PM   #1
Default pic compiling/programming questions

Hello everyone, i got recently into programming and i want to make my first program a decimal to hexadecimal converter (i have the source code on paper), i know how to program with the help of this very useful tutorial that any starting guy should read:

PIC Tutorial

BUT, i dont know how to get it in the pic. I have mplab, ic-prog, winpic800
i know that ic-prog will send the hex file into the pic with the propic2 programmer(correct me if this one is not good) but dont know the rest, so here are my questions:

1.
I want to use a 16c84 but i dont know if it exists, it is not on pic website, there only is 16f84a is it the same thing or close?

2.
How do i get the hex file? I dont know how to get something out of mplab.

3.
How do i send the file into picprog??

And i want to program in assembler, i think its more "funny" then basic.

Could you tell by the way the way that you did it? I would really appreciate it.

Thank in advance.
breadboardguy is offline  
Old 7th May 2009, 10:40 PM   #2
Default

Don't use the ancient 16F84 use a 16F628a it's cheaper and better.

Those simple programmers are often more trouble than they're worth


MPASM part of MPLAB can create hex files
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 8th May 2009, 12:51 AM   #3
Default

Quote:
Those simple programmers are often more trouble than they're worth
You mean that propic2 is not good? what do you suggest ( if it is diy ).
breadboardguy is offline  
Old 8th May 2009, 02:13 AM   #4
Default

Build a pickit2 clone get the kit from Bills site and you still be (Diy) and in the end you'll
have a great programmer. I love it it works on most any pic chip. Only thing it can't do is program
my old lady wish it could I be in good to go then LOL

Last edited by be80be; 8th May 2009 at 02:19 AM.
be80be is offline  
Old 8th May 2009, 10:37 PM   #5
Default

So geting an hex file with mplab, sending it into ic-prog and then in propic2 wont work?
And i dont want to make ship anything.(exept the pics)
breadboardguy is offline  
Old 8th May 2009, 10:42 PM   #6
Default

Yes, of course you can assemble the code to a hex file in MPLAB/MPASM, then load it in to IC-PROG, then program it in the chip via propic2.

It's just a longer process.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 8th May 2009, 11:01 PM   #7
Default

I tell you I never used a propic2 but a lot of people have and it worked for them and it will work for you to. Build it use it. It aint no biggie to build in mplab and send it to your programmer software
be80be is offline  
Old 9th May 2009, 06:32 PM   #8
Default

The pic programmers and software made by motorola are like hundreds' of dollars, but they come with one free 16f84!
The DIY would cost 20 $ without the pic's... so i take the 2nd choice.

Can anyone give me a clue on decoding/sending an ir signal from an tsop48/ir led in a program (16f84a), i dont ask you to give me the source code, just a hint.Please.
breadboardguy is offline  
Old 9th May 2009, 06:36 PM   #9
Default

Motorola doesn't make PIC anything. Microchip does and they can be very inexpensive and the IDE MPLAB is free.

My Junebug is a PICkit2 compatible kit with a 18F1320 (far better PIC than the ancient 16F84) and is only $49 US.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 9th May 2009, 06:59 PM   #10
Default

That's what I would do I'd buy Bill's Junebug It's a great programmer and you have the tutor with a 18f1320 which is like a 16f84A on steroids. And there a lot of software to build with for it. Swordfish C18 and yes you can use good old assembly. Use Nigels Tutorials they show you every thing you need to no and yes He using a 16f628 you said a Hint the Hint is you can use a 16f84 for the 16f628 with a little work not much. To use different chips you just change the code to use the right pins and the configure is mostly all you have to do.

Last edited by be80be; 9th May 2009 at 07:06 PM.
be80be is offline  
Old 9th May 2009, 07:03 PM   #11
Default

Quote:
Originally Posted by breadboardguy View Post
The pic programmers and software made by motorola are like hundreds' of dollars, but they come with one free 16f84!
The DIY would cost 20 $ without the pic's... so i take the 2nd choice.
As others have said, Motorola don't make PIC's, programmers from MicroChip (who do) aren't 100's of dollars, nor do they come with the long obselete 16F84A.

Quote:

Can anyone give me a clue on decoding/sending an ir signal from an tsop48/ir led in a program (16f84a), i dont ask you to give me the source code, just a hint.Please.
Check my tutorials, which use the 16F628, the PIC that replaced the 16F84A last century.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 9th May 2009, 07:46 PM   #12
Default

Woops, mistaken motorola and microchip. So the 16f84a is obselete? it is still on pic website tough.

EDIT:
i just looked at the datasheets and the 16f628a looks much better then the 16f84a, it has +, - and 14 bidirectionnal ports.

Last edited by breadboardguy; 9th May 2009 at 07:57 PM.
breadboardguy is offline  
Old 9th May 2009, 07:54 PM   #13
Default

Quote:
Originally Posted by breadboardguy View Post
Woops, mistaken motorola and microchip. So the 16f84a is obselete? it is still on pic website tough.
It was discontinued last century, replaced by the 16F628, and a migration document was on the MicroChip website - for a good while before that it was listed as "not advised for new projects". Unfortunately lots of idiots seemed to want to keep ordering it, so after a couple of years MicroChip re-introduced it at an even higher price.

Good business, sell an obselete low spec component for lots more money than it's cheaper higher spec replacement - they must be laughing all the way to the bank
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 9th May 2009, 08:42 PM   #14
Default

You can do Nigels Tutorials. If you want to learn start with his site and a 16f628a or get
bills junebug with a 18f1320 you can port Nigels code to it and you'll learn a lot. to read
a tsop48 It is high going low when triggered. So you would want to set a pin to input
And test to see if it gos low if so save that to something like IR_in reset flag and check to see if it gos low agin.
be80be is offline  
Old 9th May 2009, 09:34 PM   #15
Default I vote for little Junie

I have at the present time 2 Junebugs (giving one to a boy scout as birthday/going away to college present
As for programming the Swordfish is a good program as I myself am a beginner.
Be80be, Blueroom and Pommie have helped tremendously in coding my first project
The CRITTER RIDDER deer chaser
wish I had gotten into PIC years ago.
MrDEB is online now  
Reply

Tags
compiling or programming, pic, questions

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
programming/compiling in MPLAB problem Hank Fletcher Micro Controllers 48 25th October 2009 11:26 AM
Various questions - Programming atferrari Micro Controllers 6 6th May 2008 04:50 AM
Compiling C to Hex slique Electronic Projects Design/Ideas/Reviews 21 14th February 2008 06:03 PM
Having troubles with compiling psecody Micro Controllers 3 9th May 2007 05:38 AM
I need help compiling! pike Micro Controllers 0 26th October 2003 06:52 AM



All times are GMT. The time now is 02:05 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker