User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Fri Jul 12, 2013 1:22 pm

Now it is 100% working... still separated code but everything is working fine, including "read"...

Regards all,
Valter

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sat Jul 13, 2013 5:23 am

[INHX32 Format]

RPP now can read INHX32 (as well as the original INHX16) File Format and program the MCU...

Md5sum check compare from exported INHX16 files from 16 and from 32 programming shows that everything went 100%...
Need more tests...

Next step, "export INHX32"...

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sat Jul 13, 2013 11:02 am

Done.
RPP now can read INHX32 and export INHX32...

It is just a work in progress, as the code is not fused with the original, but I will make it public (the separated versions) the subroutines so that others can use it... and later will integrate my changes with the original code...

Valter

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sun Jul 14, 2013 4:35 am

[Special Version vf0.2.2]
Hi, as I said I am testing a separated code with support for:
.12F1822
.12F1840
.16F1823
.16F1825
.16F1827
.16F1828
.16F1829
.16F1938
.16F1939
and the ability to read and export INHX32 hex file formats...
Still a insulated code that ONLY works with this list of PIC and ONLY with INHX32 hex file format...
I will be working to integrate the changes with the original and will release it soon after...
For while, if you want to look at the code it is available on the webpage I am documenting my experiments around RPP...

[Look at the bottom for the zip file "rpp-tlc-vf-special-vvf0.2.2.zip"]
https://sites.google.com/site/molecfactory/

Regards all,
Valter

PS. Everything on the new MCUs are done with 8.95Volts...

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sun Jul 21, 2013 9:23 am

Hi everybody, I just want to announce 2 things here:

1) Few weeks ago I asked if someone knows any kind of "agreement model" to use in the case someone is intending to use a Open Design from another person... it seems that yes, we have some model to base our thinking... and actions... one good foundation is the Arduino Royalties Model...
I did elaborate a little bit here: http://physicalsoftware.blogspot.jp/
Including a worksheet (on Google Doc) to use as calculator...

2) The picture below is a near final version of a Learning Kit I am building, using RPP. Preliminary calculations shows that the kit (that includes a RasPI Model B) can be sold for something around U$46... (still need some final calculations, may need minor corrections)...
Image

I am contacting the RPP author and we are trying to find a way to work together this kind of cooperation...
I expect to announce the availability of the Kit soon... then I intend to ask people to support us (Moleculine and RPP Projects) by buying kits from us. All kits will have a detailed website explanation and Youtube video (all free) showing details.

Thanks all,
Valter

djevrek
Posts: 7
Joined: Tue Jul 09, 2013 11:45 am

Re: Raspberry Pi PIC Programmer using GPIO

Mon Jul 29, 2013 10:57 am

Maybe you should start an http://www.indiegogo.com/ funding for that ? I will buy it ASAP (board only, i have raspi already).

Also, you should read this http://www.indiegogo.com/projects/9-ard ... lectronics (not related with raspi or your project), about guy who did something like you can do with your project. I would love to see price when done like he did it (volounteer all).

----
Can you somewhere make a list of all components currently on your board, i would love to assemble it by myself on breadboard.

Thanks and best regards

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Mon Jul 29, 2013 12:21 pm

djevrek wrote:Maybe you should start an http://www.indiegogo.com/ funding for that ? I will buy it ASAP (board only, i have raspi already).
Hi djevrek, thank you very much for the message, it is short but give us a lot of motivation and support.
YES, I am thinking about the possibility to use crowdfunding...
THANK YOU for the idea and the encouragement you did here...
This week I should be able to announce the kit, perhaps running a campaign also...
djevrek wrote: Also, you should read this http://www.indiegogo.com/projects/9-ard ... lectronics (not related with raspi or your project), about guy who did something like you can do with your project. I would love to see price when done like he did it (volounteer all).
I saw it, for U$9.00 it is unbelievable low price, I like it because I think the "philosophy" of low cost seems to share common thinking...
For the Moleculine, it will be better when the MCU and the USB/Serial functions are separated, so that we can use it as the following picture shows (as a USB/Serial Adapter Only)...
Image
The blue wire places the MCU on reset, making the USB/Serial circuit free to work "standalone", so you can use the Uno as an USB/Serial Adapter...
But for general Arduino usage, it will be nice...

The following picture is another Moleculine "factory", using Arduino as the "burner"...
Image
It also uses the same DC Step Up Voltage, from Arduino's 5V to 8V~13V...
I also have this "kit" to offer...
djevrek wrote: Can you somewhere make a list of all components currently on your board, i would love to assemble it by myself on breadboard.
Thanks and best regards
I will make a webpage for it, but, here is a diagram (can you get the parts from it?) if you want to try:
Image
or, using an equivalent chip and
Image

YES, the "programmer standalone (without RasPI) will be offered also...
Soon I will create a page with a list of components and step-by-step instructions...

Do you have a multitester (for voltage measurement)?
Can you understand the following picture (replace R1 value with a "variable" resistance)?
Image
By using different values for R1 you control the output voltage level...

[PICTURE: right-click and "view image" to zoom it]

Any question, just ask.
Valter

djevrek
Posts: 7
Joined: Tue Jul 09, 2013 11:45 am

Re: Raspberry Pi PIC Programmer using GPIO

Mon Jul 29, 2013 4:05 pm

Thanks for fast response. I mean for list of components from this image https://dl.dropboxusercontent.com/u/296 ... b_mini.jpg. Something like this:
5x 1k omh resisor,
5x xxx ohm resistor, etc etc.

Also, not totally related, did you see http://raspi.tv/2013/new-raspberry-pi-g ... r-fritzing ?:)

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Mon Jul 29, 2013 11:36 pm

djevrek wrote:Thanks for fast response. I mean for list of components from this image https://dl.dropboxusercontent.com/u/296 ... b_mini.jpg. Something like this:
5x 1k omh resisor,
5x xxx ohm resistor, etc etc.
Sorry, the main parts are here (for the RPP Programmer {right side}):
100K x 10
10K x 3
68K x 1
2N3904 x 3 (NPN)
2N3906 x 3 (PNP)

Complete list inside the kit, please, give a few days (this week)...
djevrek wrote: Also, not totally related, did you see http://raspi.tv/2013/new-raspberry-pi-g ... r-fritzing ?:)
I saw something on G+, just save the link... to look later...
I am using the Adafruit RasPI Fritz model... seems that there are something with more details... this kind of stuff is very important for me... thanks for tip.

Regards,
Valter

danjperron
Posts: 2876
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Raspberry Pi PIC Programmer using GPIO

Tue Jul 30, 2013 12:38 am

A couple month ago I did a small programmer with the RPI which doesn't need any external components.

If you use some new cpu like the pic12(L)F1840 or pic16(L)F1823,24,...29 and you leave the MCLR pin has reset it should work unless your already program the cpu and disable the LVP programming.

It was on that post http://www.raspberrypi.org/phpBB3/viewt ... 81#p360781

This is a small alternative and it is limited to LVP programming.


Daniel

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Tue Jul 30, 2013 12:53 am

danjperron wrote:A couple month ago I did a small programmer with the RPI which doesn't need any external components.

If you use some new cpu like the pic12(L)F1820 or pic16(L)F1823,24,...29 and you leave the MCLR pin has reset it should work unless your already program the cpu and disable the LVP programming.

It was on that post http://www.raspberrypi.org/phpBB3/viewt ... 81#p360781

This is a small alternative and it is limited to LVP programming.

Daniel
Hi Daniel, thanks for the msg.
Looks interesting...

In the very beginning, I select the 12F1840 and 16F1825 to work with my Molec idea because they offer the most flash memory for the "least pin count"... later I just extended the thinking for the "whole family" from 8pin to 40pin DIP...

I am going to experiment with you method also... just give me few days because there are LOTs of stuff I am doing and time is very limited right now... I usually like to play around new ideas with plenty of time to "hack" and think, so I need few days to try it...

Regards,
Valter

danjperron
Posts: 2876
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Raspberry Pi PIC Programmer using GPIO

Tue Jul 30, 2013 1:19 am

Hi Valter,


I just check the git hub code after a couple of months of not touching it.

I found a small bug that I just fix.

Looks like that I forgot to put data size value for some cpus.
I just put the default to 256 since all cpus listed are 256 anyway.

B.T.W. Hex file has to be hex16 not hex32.


have fun,

Daniel

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Wed Jul 31, 2013 2:21 pm

Hi everybody, just want to post some photos of some parts...
I did order a small batch of parts to build the "kits", so that I can have all the necessary data to fully understand costs, time to acquire parts, transportation issues, taxes, packaging and building procedures...

Image
Photo here is the INDUCTOR, more photos on the url below (blog entries):

Here:
http://physicalsoftware.blogspot.jp/201 ... -kits.html
And here:
http://physicalsoftware.blogspot.jp/201 ... -kits.html

Already got some envelopes, cases and bubble wrap, and after building some packages I expect to announce the final price and availability of the kits...

Regards,
Valter

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Fri Aug 02, 2013 3:54 am

Hi everybody, I did a quick presentation about the reasons why I am using, developing and promoting the RPP PIC MCU Programmer... also, why it (RPP) can be very important...

a) every 3D Printed Object will(can) have some kind of "brain" inside...
b) every home appliance will have some "intelligence" with uploadable/hackable firmware
c) all physical material stuff can have its own "personal computer" (MCU)...

I am creating Moleculine to help users, makers, professionals, business, etc to have TODAY, a starting point for this new PARADIGM... and RPP will be part of it... of course, Raspberry PI and its 1.5 Millions users is also part of the whole strategy...

The text if very concise, will be working more on it later, but it is better than the old pages I did...
The doc is a PDF and it is available for download here:
The site is not done yet, but the PDF is there if you want to read it.
https://sites.google.com/site/softwarephysical/

Thanks all,
Valter

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sun Sep 08, 2013 9:13 am

About Hitech C Compiler...

Hi everybody, I just want to report an issue (resolved) with Hitech C Compiler generated .hex file...

Hitech C Compiler generated .hex file
=================================================================================

Code: Select all

:0600000001288801D92F40
:100FB2002000DB2F21008C0172309900E02F2000ED
:100FC2000C150230F2000430F100BA30F000F00BE0
:100FD200E82FF10BE82FF20BE82F640020000C1130
:100FE2000230F2000430F100BA30F000F00BF72FBB
:0E0FF200F10BF72FF20BF72F6400E02F012810
:020000040001F9
:04 000E 00 84CF FFDE BE
:00000001FF
=================================================================================

Hitech generate 0xCF84 and 0xDEFF for configuration values,
which get programmed correct,
BUT DOES NOT PASS THE CHECK TEST BELOW...
Since the highest value for this family of MCU is 0x3FFF (14bits)

=================================================================================
/* Write Configuration Memory */
if (pm->has_configuration_data) {
//if (debug)
fprintf(stderr, " Write Configuration memory:\n");

...
...
...

pic_send_cmd(pic->read_data_from_program_memory_cmd);
usleep(2);
data = pic_read_data();
usleep(2);
//data = pm->data[addr];

if (debug)
fprintf(stderr, " addr = 0x%04X written = 0x%04X read = 0x%04X\n", addr, pm->data[addr], data);

if (pm->data[addr] != data) {
fprintf(stderr, "Error: addr = 0x%04X, written = 0x%04X, read = 0x%04X\n", addr, pm->data[addr], data);
error = 1;
break;
}
=================================================================================

[SOLUTION]
So, by "limiting" the check value by "(value & 0x3FFF)"
then the program can work without problem...

Code: Select all

The line:
	if (pm->data[addr] != data) {
	
needs to change to:	
	if ((pm->data[addr] & 0x3FFF) != data) {
=================================================================================

I need to look at the Hitech C information and also other different compilers to understand further implications of this issue then I will create a "patch" for the current problem... for while, if you are using Hitech C or any other compiler and found the same problem, just change the mentioned line...

Valter

User avatar
Newton
Posts: 8
Joined: Thu May 31, 2012 4:24 pm
Location: Somerset West, South Africa
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sat Sep 21, 2013 1:17 pm

Hi all,

first of all: the PIC programmer is great. But:

After using it for while, it suddenly stopped working correctly. All in a sudden I got this:

# rpp -rso yyy.hex
Raspberry Pi PIC Programmer, v0.2 (March 2013)

device_id = 0x3fff
Error: unknown device or programmer not connected.

device_id can also display other values like 0x000 or 0x03ff or something else.
When I retried a few days later, it worked correctly. Another few days later, see above.

What might this be? I`m completely stuck.

Cheers

Newton

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sat Sep 21, 2013 2:37 pm

Newton wrote:Hi all,
first of all: the PIC programmer is great. But:
After using it for while, it suddenly stopped working correctly. All in a sudden I got this:
# rpp -rso yyy.hex
Raspberry Pi PIC Programmer, v0.2 (March 2013)
device_id = 0x3fff
Error: unknown device or programmer not connected.
device_id can also display other values like 0x000 or 0x03ff or something else.
When I retried a few days later, it worked correctly. Another few days later, see above.
What might this be? I`m completely stuck.
Cheers
Newton
Hi Newton, don't know if I will be able to help you... can you provide more information?

a) what version of the software are you using (does it have modifications)?
b) what is the hardware setup do you have, on breadboard or soldered?
c) can you say something about the high voltage source are you using?
d) can you provide some photos about your hardware setup (you can upload to Dropbox, then share here the "public" link)?
e) what MCU are you using?

Knowing more about your current soft and hard setup are needed to try to understand about your problem...
regards,
Valter

hampi
Posts: 223
Joined: Fri May 31, 2013 11:29 am
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sat Sep 21, 2013 4:11 pm

Newton wrote:After using it for while, it suddenly stopped working correctly.
Most likely bad connection somewhere. Disconnect wires and reconnect them again.

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Sun Sep 22, 2013 11:07 am

Hi all, just want to report that I succeed adapting RPP software to work direct with Desktop PC, using a small USB Adapter (picture)...

Image

Also succeed using Python...
The current prototype is very slow... right now I am working on some low level optimization (half done e tested)...

Windows and Linux test ok, most probably will work on Macs without any problem...

The device works at Low Voltage Programming Mode (LVP Mode)...

Will upload docs and code here, soon:
https://sites.google.com/site/micropicburner/

Valter

zeevy
Posts: 3
Joined: Mon Feb 25, 2013 11:45 am

Re: Raspberry Pi PIC Programmer using GPIO

Tue Dec 31, 2013 9:41 pm

does this supports 16f688?

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Wed Jan 01, 2014 12:46 am

zeevy wrote:does this supports 16f688?
Hi zeevy, the list I am testing is below...

Code: Select all

#define PIC16F84A  0x0560
#define PIC16F627A 0x1040
#define PIC16F628A 0x1060
#define PIC16F648A 0x1100
#define PIC16F870  0x0D00
#define PIC16F871  0x0D20
#define PIC16F872  0x08E0
#define PIC16F873  0x0960
#define PIC16F874  0x0920
#define PIC16F876  0x09E0
#define PIC16F877  0x09A0
#define PIC12F629  0x0F80
#define PIC12F675  0x0FC0
#define PIC12F630  0x10C0
#define PIC12F676  0x10E0
#define PIC16F873A  0x0E40
#define PIC16F874A  0x0E60
#define PIC16F876A  0x0E00
#define PIC16F877A  0x0E20
#define PIC16F886   0x2060
#define PIC16F887   0x2080

#define PIC12F1822    0x2700
#define PIC12F1840    0x1B80

#define PIC16F1823    0x2720
#define PIC16F1825    0x2760
#define PIC16F1827    0x27A0
#define PIC16F1828    0x27C0
#define PIC16F1829    0x27E0

#define PIC16F1938    0x23A0
#define PIC16F1939    0x23C0
maybe Tomas or Giorgio are using the 16F688...

...perhaps the modifications needed are very simple... I think so...

Valter

zeevy
Posts: 3
Joined: Mon Feb 25, 2013 11:45 am

Re: Raspberry Pi PIC Programmer using GPIO

Wed Jan 01, 2014 4:44 am

Hi Valter
i am very new to micro-controllers, can you please share what modifications are need for 16f688

zeevy
Posts: 3
Joined: Mon Feb 25, 2013 11:45 am

Re: Raspberry Pi PIC Programmer using GPIO

Wed Jan 01, 2014 8:33 am

don't know this is correct or not but this worked for me (read and write)
#define PIC16F688 0x1180
const struct picmicro pic16f688 = {PIC16F688, "pic16f688", 0x400, 256, 2500, 6000, 8000, 8000, 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0xFF, 0x08, 0x09, 0x0B, 0x0A, 0x1F};

const struct picmicro *piclist[] = {&pic16f688, &pic16f84a, &pic16f627a, &pic16f628a, &pic16f648a, &pic16f870, &pic16f871, &pic16f872, &pic16f873, &pic16f874, &pic16f876, &pic16f877, &pic12f629, &pic12f675, &pic16f630, &pic16f676, &pic16f873a, &pic16f874a, &pic16f876a, &pic16f877a, &pic16f882, &pic16f883, &pic16f884, &pic16f886, &pic16f887, NULL};

User avatar
ValterFukuoka
Posts: 94
Joined: Sat Oct 01, 2011 11:39 pm
Location: Japan
Contact: Website

Re: Raspberry Pi PIC Programmer using GPIO

Wed Jan 01, 2014 11:09 am

Hi zeevy,
zeevy wrote:don't know this is correct or not but this worked for me (read and write)
#define PIC16F688 0x1180
const struct picmicro pic16f688 = {PIC16F688, "pic16f688", 0x400, 256, 2500, 6000, 8000, 8000, 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0xFF, 0x08, 0x09, 0x0B, 0x0A, 0x1F};

const struct picmicro *piclist[] = {&pic16f688, &pic16f84a, &pic16f627a, &pic16f628a, &pic16f648a, &pic16f870, &pic16f871, &pic16f872, &pic16f873, &pic16f874, &pic16f876, &pic16f877, &pic12f629, &pic12f675, &pic16f630, &pic16f676, &pic16f873a, &pic16f874a, &pic16f876a, &pic16f877a, &pic16f882, &pic16f883, &pic16f884, &pic16f886, &pic16f887, NULL};
yes, these are the needed information for a new MCU... all infos are in the regular datasheet and in the programming datasheet...
nice job.

Entropic_3105
Posts: 5
Joined: Sun Aug 31, 2014 8:51 pm

Re: Raspberry Pi PIC Programmer using GPIO

Sun Aug 31, 2014 8:57 pm

Hi,

Recently, I was surfin' the interweb and came across you webpage about using the pi as a pic programmer. It just so happens though that I have a load of pic microcontrollers that I have no means of programming. They are called Pic16c84. Would it be possible to program them using this method at all. I'm asking before I start and learn its a waste of time.

Thanks,

Patrick

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: No registered users and 18 guests