Author Topic: Not sure what I need  (Read 3981 times)

0 Members and 1 Guest are viewing this topic.

Offline M0BSWTopic starter

  • Frequent Contributor
  • **
  • Posts: 673
  • Country: 00
  • Left this site 2013, they will not delete it ????
Not sure what I need
« on: March 08, 2014, 04:03:44 pm »
Hi everyone, ok my dilemma I have a programmer now I don't' know what I need to have a go and wright my own strings and then turn them to hex files for the programmer to put on to the pic chip,& is there any free programs I can try that  you can wright your program on  which will then turn it to a hex file  :-//
no one would or will tell me how to delete this account
 

Offline FreddyVictor

  • Regular Contributor
  • *
  • Posts: 164
  • Country: gb
Re: Not sure what I need
« Reply #1 on: March 08, 2014, 04:28:25 pm »
maybe start by looking at this thread - lots of useful info
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: Not sure what I need
« Reply #2 on: March 08, 2014, 05:30:16 pm »
Do you have any specific reason to use pic over avr?  If not, install the Arduino IDE, get an arduino board and you have everything you need (you don't need a programmer or to deal hex files). If you will want later to design your own boards from scratch, the Arduino IDE will generate the hex files for you.

Arduino boards comes in all shapes, sizes and prices. Take a look for example at this one http://digistump.com/products/1
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5029
  • Country: ro
  • .
Re: Not sure what I need
« Reply #3 on: March 08, 2014, 06:50:26 pm »
later edit: Ok, I misread your original message.

What programmer do you have ?

For PICs, get MPLAB X from microchip : http://www.microchip.com/pagehandler/en-us/family/mplabx/

It has several compilers built in, you just start a project, write code, select a compiler, compile the code, program the chip. If you have a pickit 3, you can select it as a programmer from the interface and simply program the chip from the interface.

--------

If you want to go the PIC route, the programmer is pickit 3.

You can buy it from Microchip, Farnell, Digikey, anywhere pretty much, but it costs about 45$:

Details : http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=PG164130

Stores:

http://www.microchipdirect.com/ProductSearch.aspx?Keywords=PG164130
http://uk.farnell.com/microchip/pg164130/debugger-pickit-3-icd-dspic-usb/dp/1771323
http://www.digikey.com/product-search/en?x=0&y=0&lang=en&site=us&KeyWords=PG164130

You can also get the programmer with a pcb that has a PIC18 built in and a small prototyping space to put parts on :

http://uk.farnell.com/microchip/dv164131/debug-express-pickit-3-pic-dspic/dp/1686530
http://www.digikey.com/product-search/en?x=0&y=0&lang=en&site=us&KeyWords=DV164131+

You write the code in MPLAB X (a ide) and hit compile and you get the hex files and also write the hex directly from MPLAB X into the chips, no need to worry about selecting hex files manually.

With Atmel chips (attiny atmega328 etc) you can find cheaper programmers, third party programmers etc, you could also make your own... that's where you may have to learn how to use hex files.

Arduino boards can be programmed through usb because the arduino board has a small bootloader code in the chip which allows the chip to receive your code through usb and program itself with the new code. This way you don't need a special programmer.
However, if you want to make smaller boards or just buy chips for less than a dollar and want to program them, you will need a standalone programmer.
« Last Edit: March 08, 2014, 06:53:11 pm by mariush »
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11891
  • Country: us
Re: Not sure what I need
« Reply #4 on: March 08, 2014, 07:04:36 pm »
But if you are just starting out and learning how these things work, an Arduino is going to be much more suitable than a raw micro with programmer and IDE.

I strongly second the suggestion to get an Arduino. There are huge numbers of tutorials and examples on the web to get started with programming it and learning how to control it.
 

Offline M0BSWTopic starter

  • Frequent Contributor
  • **
  • Posts: 673
  • Country: 00
  • Left this site 2013, they will not delete it ????
Re: Not sure what I need
« Reply #5 on: March 08, 2014, 10:45:30 pm »
The programmer is a The USB PIC K150 microcontroller programmer, I've gone this route as most of the ham radio circuits I want to build have pic chips in the heart of them, I have  many circuits to go at.
Thank you for the advice and taking the time to reply.
no one would or will tell me how to delete this account
 

Offline notsob

  • Frequent Contributor
  • **
  • Posts: 696
  • Country: au
Re: Not sure what I need
« Reply #6 on: March 08, 2014, 11:03:46 pm »
Good PIC tutorials at gooligum and pcbheaven

http://pcbheaven.com/

http://gooligum.com.au/
 

Offline M0BSWTopic starter

  • Frequent Contributor
  • **
  • Posts: 673
  • Country: 00
  • Left this site 2013, they will not delete it ????
Re: Not sure what I need
« Reply #7 on: March 08, 2014, 11:19:02 pm »
Good PIC tutorials at gooligum and pcbheaven

http://pcbheaven.com/

http://gooligum.com.au/
Thank you just had a quick look ,very interesting, I'll take a better look in the morning.
no one would or will tell me how to delete this account
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Not sure what I need
« Reply #8 on: March 09, 2014, 12:39:20 am »
Quote
Good PIC tutorials at gooligum

Gooligum is absolutely the best.
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Not sure what I need
« Reply #9 on: March 09, 2014, 12:49:21 am »
Since you are likely looking at older chips in those ham circuits, I would recommend pickit2: very reliable and multi-talented.

However, its support for newer chips is limited.
================================
https://dannyelectronics.wordpress.com/
 

Offline M0BSWTopic starter

  • Frequent Contributor
  • **
  • Posts: 673
  • Country: 00
  • Left this site 2013, they will not delete it ????
Re: Not sure what I need
« Reply #10 on: March 09, 2014, 09:00:32 am »
Since you are likely looking at older chips in those ham circuits, I would recommend pickit2: very reliable and multi-talented.

However, its support for newer chips is limited.
Thank you Danny, I have approx. 30 circuits to play with, so I will cut my teeth with the old type, I guess not a bad thing to do.
Paul
no one would or will tell me how to delete this account
 

jucole

  • Guest
Re: Not sure what I need
« Reply #11 on: March 09, 2014, 09:22:04 pm »
Hi everyone, ok my dilemma I have a programmer now I don't' know what I need to have a go and wright my own strings and then turn them to hex files for the programmer to put on to the pic chip,& is there any free programs I can try that  you can wright your program on  which will then turn it to a hex file  :-//

I started doing a PIC project using the free SDCC compiler;  I wanted to give it a try to see how I got on with it, compared to the PIC Hi-tech compiler;   i'm about 80% complete with ~1500 lines of C code so far, but i'm really quite impressed!   So I'm sure it would easily be able to handle your PIC ham projects.
 

Offline M0BSWTopic starter

  • Frequent Contributor
  • **
  • Posts: 673
  • Country: 00
  • Left this site 2013, they will not delete it ????
Re: Not sure what I need
« Reply #12 on: March 09, 2014, 09:34:26 pm »
Hi everyone, ok my dilemma I have a programmer now I don't' know what I need to have a go and wright my own strings and then turn them to hex files for the programmer to put on to the pic chip,& is there any free programs I can try that  you can wright your program on  which will then turn it to a hex file  :-//

I started doing a PIC project using the free SDCC compiler;  I wanted to give it a try to see how I got on with it, compared to the PIC Hi-tech compiler;   i'm about 80% complete with ~1500 lines of C code so far, but i'm really quite impressed!   So I'm sure it would easily be able to handle your PIC ham projects.
Thank You i'll have a look for it.
no one would or will tell me how to delete this account
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf