Go Down

Topic: Please Help - Programming PIC18F2525 using Arduino (Read 4484 times) previous topic - next topic

pamirdeb

I bought one PIC18F2525 and was trying to program it using my Arduino Uno Rev.3. I am able to program Attiny2313 very easily but programming PIC micro controller is very tricky.

I found one very good post http://rweather.github.io/ardpicprog/index.html but it was for PIC16F.

Can any one help me to program PIC18F using Arduino?


pamirdeb




pamirdeb

I was trying using the post mentioned above but could not find values for PIC18f2525 like below. Do you have any idea from where i can get this details?

// http://ww1.microchip.com/downloads/en/DeviceDoc/41287D.pdf
    {s_pic16f882,  0x2000, 2048, 0x2000, 0x2100, 9, 128, 0, 0, FLASH4, EEPROM},
    {s_pic16f883,  0x2020, 4096, 0x2000, 0x2100, 9, 256, 0, 0, FLASH4, EEPROM},
    {s_pic16f884,  0x2040, 4096, 0x2000, 0x2100, 9, 256, 0, 0, FLASH4, EEPROM},
    {s_pic16f886,  0x2060, 8192, 0x2000, 0x2100, 9, 256, 0, 0, FLASH4, EEPROM},
    {s_pic16f887,  0x2080, 8192, 0x2000, 0x2100, 9, 256, 0, 0, FLASH4, EEPROM},

Robin2


I bought one PIC18F2525 and was trying to program it using my Arduino Uno Rev.3. I am able to program Attiny2313 very easily but programming PIC micro controller is very tricky.


Wouldn't it be much easier to use Atmel MCUs ?

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

pamirdeb

Yes you are right Atmel MCU are very easy to program. But I was looking for PIC18F as I already have one. :(

KeithRB

Why use Arduino? Why not just use the PIC toolchain?

pamirdeb

Because then I have to buy one.. and i don't have money to spent... :(

PaulS

Quote
Because then I have to buy one.. and i don't have money to spent...

If you don't have a PIC, why do you need to know how to program it using an Arduino? You sound like a troll.

Robin2


Yes you are right Atmel MCU are very easy to program. But I was looking for PIC18F as I already have one. :(


An Atmega328 chip costs £2 or so. I can't imagine that your own time is worth so little that it makes sense to spend hours trying to figure out how to use a PIC chip just because you happen to have it. Fold the pins over and use it as a book mark.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

PaulS

Quote
Fold the pins over and use it as a book mark.

If you folded the pins over, it would be a staple, wouldn't it?


michinyon

Why would you think that users of an Arduino forum know anything at all about PIC's ?

Go Up