![]() | ![]() | ![]() |
| | #1 |
|
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. | |
| |
| | #2 |
|
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 | |
| |
| | #3 | |
| Quote:
| ||
| |
| | #4 |
|
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. | |
| |
| | #5 |
|
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) | |
| |
| | #6 |
|
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. | |
| |
| | #7 |
|
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
| |
| |
| | #8 |
|
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. | |
| |
| | #9 |
|
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. | |
| |
| | #10 |
|
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. | |
| |
| | #11 | ||
| Quote:
Quote:
| |||
| |
| | #12 |
|
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. | |
| |
| | #13 | |
| Quote:
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 | ||
| |
| | #14 |
|
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. | |
| |
| | #15 |
|
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. | |
| |
|
| 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 |