is it possible to program a pic16f with an arduino? - Page 1
Forum section: electronics / general

author: Gakex
author_rank: Contributor
timestamp: March 23, 2013, 03:35:27 pm
content: I have a pic16f84a and an Arduino Leonardo board

author: ecat
author_rank: Frequent Contributor
timestamp: March 23, 2013, 07:54:36 pm
content: 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

author: brainwash
author_rank: Frequent Contributor
timestamp: March 23, 2013, 10:33:41 pm
content: 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.

author: c4757p
author_rank: Super Contributor
timestamp: March 23, 2013, 10:44:40 pm
content: 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.

author: mariush
author_rank: Super Contributor
timestamp: March 23, 2013, 10:47:05 pm
content: or the classic mc34063 switching controller ... dave even made video about it

author: c4757p
author_rank: Super Contributor
timestamp: March 23, 2013, 10:52:00 pm
content: 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!So it's an AVR board with a PIC16F1527. I feel like I'm doing something slightly unholy.

author: brainwash
author_rank: Frequent Contributor
timestamp: March 23, 2013, 11:43:20 pm
content: I have forgotten about this:http://www.romanblack.com/smps/pic-smps.htm

author: Gakex
author_rank: Contributor
timestamp: March 28, 2013, 03:56:24 am
content: 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 chiphttp://hlt.media.mit.edu/?p=1706I just see this clock and I wanted to try it out :http://www.josepino.com/?anp-1224hr-led-clock1

author: RPBCACUEAIIBH
author_rank: Contributor
timestamp: April 03, 2013, 07:56:36 am
content: interesting... I have to try the pic as well...Quote from: Gakex on March 28, 2013, 03:56:24 amThat 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...