Author Topic: is it possible to program a pic16f with an arduino?  (Read 12555 times)

0 Members and 1 Guest are viewing this topic.

Offline GakexTopic starter

  • Contributor
  • Posts: 19
  • Country: mx
is it possible to program a pic16f with an arduino?
« on: March 23, 2013, 03:35:27 pm »
I have a pic16f84a and an Arduino Leonardo board
 

Offline ecat

  • Frequent Contributor
  • **
  • Posts: 296
  • Country: gb
Re: is it possible to program a pic16f with an arduino?
« Reply #1 on: March 23, 2013, 07:54:36 pm »
Of course it is possible to program a pic with an Arduino or an AVR with an Arduino or even a PicKit2. The question is: How and is there an existing example?

Well, today is your Lucky Day:  http://arduino.cc/forum/index.php/topic,92929.0.html
;)



 

Offline brainwash

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: de
    • Hack Correlation
Re: is it possible to program a pic16f with an arduino?
« Reply #2 on: March 23, 2013, 10:33:41 pm »
I did not know that was possible. Is there any way to fake or get rid of the 12v supply? I' thinking something like a voltage multiplier driven by a pin.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: is it possible to program a pic16f with an arduino?
« Reply #3 on: March 23, 2013, 10:44:40 pm »
A standard Dickson charge pump works nicely for this. I'd suggest using all ceramic caps and driving around 10 kHz. I actually recently tested this exact circuit for a very similar purpose, so I will verify that it works quite well with these component values.
No longer active here - try the IRC channel if you just can't be without me :)
 

Online mariush

  • Super Contributor
  • ***
  • Posts: 5026
  • Country: ro
  • .
Re: is it possible to program a pic16f with an arduino?
« Reply #4 on: March 23, 2013, 10:47:05 pm »
or the classic mc34063 switching controller ... dave even made video about it
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: is it possible to program a pic16f with an arduino?
« Reply #5 on: March 23, 2013, 10:52:00 pm »
I'd probably consider a boost converter with an inductor and a dedicated controller IC overkill. The PIC16F series takes a maximum of 1 mA from VPP - easily handled by a couple caps and a couple diodes. It's nice to be able to integrate something into the MCU and save on parts. The whole charge pump will probably cost less than the inductor.


Only slightly off topic: I'm doing the opposite. I'm designing an AVR dev board with an integrated programmer (among other stuff) for myself, and the most economic choice of "master" microcontroller was... a PIC!  :-DD  So it's an AVR board with a PIC16F1527. I feel like I'm doing something slightly unholy.
« Last Edit: March 23, 2013, 10:57:53 pm by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline brainwash

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: de
    • Hack Correlation
Re: is it possible to program a pic16f with an arduino?
« Reply #6 on: March 23, 2013, 11:43:20 pm »
I have forgotten about this: http://www.romanblack.com/smps/pic-smps.htm
 

Offline GakexTopic starter

  • Contributor
  • Posts: 19
  • Country: mx
Re: is it possible to program a pic16f with an arduino?
« Reply #7 on: March 28, 2013, 03:56:24 am »
I get a conclusion:

it is possible but there is not enough information out there because buy a pic programmer (10 dolar) and use the proper IDE for this chip is also ideal, no?
by the way Arduino has a technique to load a sketch into an Atmega chip http://hlt.media.mit.edu/?p=1706

I just see this clock and I wanted to try it out : http://www.josepino.com/?anp-1224hr-led-clock1
   
 

Offline RPBCACUEAIIBH

  • Contributor
  • Posts: 30
Re: is it possible to program a pic16f with an arduino?
« Reply #8 on: April 03, 2013, 07:56:36 am »
interesting... I have to try the pic as well...

I get a conclusion:

it is possible but there is not enough information out there because buy a pic programmer (10 dolar) and use the proper IDE for this chip is also ideal, no?
by the way Arduino has a technique to load a sketch into an Atmega chip http://hlt.media.mit.edu/?p=1706

I just see this clock and I wanted to try it out : http://www.josepino.com/?anp-1224hr-led-clock1
 

That would be ATTiny, I don't really know if it works with mega, and I have a self made EEPROM library for the tiny, since the arduino EEPROM library doesn't really works on ATTiny...
it works but it's a little messy... I'll try to clean it up as soon as I have time for it, and I'll upload it soon...
I also noticed that the ATTiny's eeprom will be deleted by default when it is programmed, so I modified the bootloader as well to prevent that... I'll upload that as well...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf