![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I am asking all of these questions to save me hours of research, and thanks for any help in advance (and time spent). I have been using Atmels for years now, and they work great. I see the PIC has changed since the 16F84 (I get yelled at everytime I mention them).. I switched for ATMEL mainly because of the the internal OSC and the lower price. How does the PIC line stand up now? I also had a free basic compiler, but support is slowing down on the compiler (as it is free). Also, most ATMELs run from 2-3 volts to 6 volts, and low power consumption. But it sounds like MicroChip learned and maybe caught up or passed ATMEL. I know the Atmels are faster internally, but speed is not an issue for my projects. Questions: 1) I have an old MELABS PICBASIC (version 2 range I think), will the 16F84 .hex file run (minus extra functions of course), or do I need to get a newer compiler? I pulled a Proton BASIC that looks promising (did not look at the price yet). I will pull MPLAB as well, as the PIC ASM is a lot easier than the Atmel ASM was for me. 2) What is the closest chip to the 16F84, the 16F624a? 3) Can I use the picall or was it pic40all programmer, as my EPIC died a long time ago, to program the new chips (are pinouts and protocols the same)? 4) what is the best free BASIC (if any)? I looked at BoostBASIC, and the docs were weak? 5) If I need a new programmer, what is the best simple (single sided) one out there as I can make boards (if one exists)? Thanks for any input, Microchip might win me back. | |
| |
| | (permalink) | ||||
| Quote:
But PIC assembler is easy to learn anyway. Quote:
Quote:
Quote:
| |||||
| |
| | (permalink) |
| Even though you have been given awesome advice, I would add: that the 10Fxxx pics which have a very good internal osc, can be had for about fifty cents. (I switched for ATMEL mainly because of the the internal OSC and the lower price.) PICs come in a great range - from the tiny 6pin SOT-23 10Fxxxs all the way up to the 16bit DSPs. They have micros with a great range of peripherals. One thing I really don't like about AVRs, is that if you program the configuration wrong, it is a real headache to save your chip. This doesn't happen in PICs. I really agree with Nigel; the ICD2, or clones (less than $50) are the way to go. They will program all of microchip's parts, and they work very well, right out of MP lab. The small instruction set makes learning assembly fairly easy, and you could stick with that. If you want a high level language, Microchip provides a (virtually free) C compiler for the 18F series. The only limitation in the student version, is that after some time, optomization is limited. There are other compilers you can use, some in demo, or free mode, and others very cheap, CC5X, for example. I'm sure you could find a free, or cheap BASIC compiler out there. Hope this helps, Robert | |
| |
| | (permalink) | |||||
| Quote:
Quote:
Quote:
Quote:
I will look at the ICD2 for sure. Nigel is 99.99998888111% (they are not exact numbers on Nigel, but close most of the time) always on target in my books. And I will pull MPLAB as I did not mind ASM on the PIC (pretty simple. like 32 commands). I have a friend that wrote RVKBASIC so I went the BASIC way. And it is fast and simple for small stuff.. So thought I would look for a free basic. I found a couple. One looked good. Proton (I have not looked at their price. Funny, with me, if it is more that $99, I like assembler). Quote:
Anyway. Thanks for the input. Will look at (buy) the programmer and pull MPLAB tomorrow. And order some 16F628a (I think it was, will check before I order and probably some 10F508 chips too). Last edited by mramos1; 18th May 2006 at 12:40 AM. | ||||||
| |
| | (permalink) | |
| Hi again, Yes, I am a bit intimidated, posting after Nigel. He is on, almost always! Quote:
Yes, I use C because it's faster for me, but lately have been doing some projects in assembly, because it is a much better way to really understand these chips. I was put off everything Atmel, because when I first started with micros, I got a kit with an 89c4051. The PC application to burn the chip wouldn't run on my PC, because I didn't have Hangul (Korean typeface) installed on my PC. I tried various other programmers, etc, all with no joy. Then I got onto PICs, which seemed painless, and easy. Since, I have done a couple of things with AVRs, which seem easier than the '51, but I like using the PIC best. I paid a lot (about 200 USD!) for my ICD2. It was built under license of Microchip, by Comfile, a Korean company. I know now, I could order from Microchip for half that, but SparkFun sells the Olimex clones a lot cheaper. I think the ICD2 is great!, and never look back at what I spent on it. About the little chips: I got a bunch of 10F206s in 8 pin DIP package to play with. I think I paid about a dollar each. When I first connected to my board, I seem to have lost the oscillator calibration value, even though I didn't write to the chip! Too early to say, because right after that I had to rush off to work. I'm going back to that project when I finish reading here, so more on that later. They are a nice little chip, though. 512 bytes of flash, 24 bytes of RAM, 3 I/O pins, and you can use MCLR as an input. The chips have one timer and one comparator, pull ups on the pins, and can be programmed in circuit. The 4 MHz osc should be precise enough to do serial with. Oh, have a look at SparkFun's site: http://www.sparkfun.com/commerce/categories.php They have the ICD2 clones at good prices, as well as many other things of interest. Best wishes, Robert | ||
| |
| | (permalink) |
| I am a big proponent of just about all ICD2 clones. I have been using the full USB Olimex clone for over 2 years now without any problems programming everything from the 10F devices through dsPICs. You can get them for about $100. They also make an RS232 only version that is in the $50 range. If you search around on Google, there are instructions on how to build your own ICD2 clone but you will need a stand alone PIC programmer to install the bootloader onto it. These can be built for less than $10 in some cases. The ICD2 is the best programming platform for the hobbiest PIC developer (and any business that can't afford an ICE) at the moment. Hey BeeBop, the dsPIC is not hard to develop with. A few of the hurdles I faced was how to locate code in memory and how to make use of all the new instructions. Luckily there are code templates included with MPLAB which clarified a number of issues I was having. Also, when you are used to working with a single Wreg and limited instructions, it is somewhat difficult to find ways of taking advantage of all the new features the dsPIC offers. -Bill | |
| |
| | (permalink) |
| BeeBop and Phalanx, Thanks for the input. Looks like that answers all the questions. I have a 16PIC40PRO or something like that. It is parallel uni, and I use it on a laptop with Win98 so no IO problems. Looks like it is time to upgrade. Now what do I do with all these 16F84 I have (just kidding). Off to get MPLAB and look for the programmer. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
But I have the P16PRO40 and the Atmel STK500, rather spend the money on a compiler. The P16PRO40 is a parallel unit, what software to you recommend? If it will do the 10Fxxx, 12F508/9 and the 16F628a, that would cover most of my projects. Last edited by mramos1; 18th May 2006 at 05:02 PM. | ||
| |
| | (permalink) | |
| Quote:
Mine supports the 16F628A, but not the others, I suggest you check on the other programmer websites?. The 10Fxxx is likely to be a problem, as it's SM only, so hard to fit in a ZIF socket | ||
| |
| | (permalink) | |
| Quote:
__________________ "I share, thus I am" Jay.slovak Read this! ICD2 Clone Best PIC/DsPIC Bootloader Read my Inchworm ICD2 review! | ||
| |
| | (permalink) | |
| Quote:
However, if it's in the same 8 pin package you may as well use a 12Fxxx instead | ||
| |
| | (permalink) | |
| Quote:
And you can't fit 12F everywhere 10F in SOT-223 fits.
__________________ "I share, thus I am" Jay.slovak Read this! ICD2 Clone Best PIC/DsPIC Bootloader Read my Inchworm ICD2 review! | ||
| |
| | (permalink) |
| Along the same vein... Lots of talk about the ICD2-type debugger/programmers. I've been eyeing the Olimex clone over at SparkFun, but $100 is a bit intimidating since I'm just getting started. As someone who wants to start learning, and hasn't even touched a PIC yet, Is it worth my time and money to spend the money on the "good" programmer/debugger? Thanks so much! | |
| |
| | (permalink) | |
| Quote:
__________________ "I share, thus I am" Jay.slovak Read this! ICD2 Clone Best PIC/DsPIC Bootloader Read my Inchworm ICD2 review! | ||
| |