Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

using a FDD to upgrade the firmware of a pic..

Status
Not open for further replies.

TKS

New Member
if i use 2 pics..

is it then possible that one programs the other reading his hex from a FDD..???

TKS
 
TKS said:
if i use 2 pics..

is it then possible that one programs the other reading his hex from a FDD..???

TKS

No, there's been a lot about reading FDD over the years, as far as I know it's never been done sucessfully - basically you don't have enough memory in a PIC to do it.

You can certainly program one PIC with another, that's how the PicStart+ works - but it gets it's data from the PC serial port.
 
..

but isn't it possible to read 1 byte..

write that byte in the pic..

write it to the other pic

read the next byte

etc..

???

wy you need memory..??

TKS

i don't care if the process is 5minutes or 25..

and how big is a good program in hex..???
50Kb..???

50000steps..should be done.

if every step takes 20Ms..

then it will take 12 minutes to program..

ok.. maybe i have to think about using a flash card..

or simply build a quik change cpu maner..

but sending pics over the world..is not a system..
i prefer let the cust download a hex and put it on a flop and do it them self..:D

TKS.....

i agree that when you miss read a byt you are gone..whit my system.
 
What you need is a microcontroller with code space for a bootloader. uC with this capability can write to their own flash memory while execuing code in a special section of the flash that can be read while writing the rest of flash. Most 8051s have this capability I don't know about PICs though. Bootloaders let you use almost any interface (RS232, ethernet, etc) to reprogram the main program. You can send users updated code through the internet and they can download it into your product with their computer.

Brent
 
Re: ..

TKS said:
but isn't it possible to read 1 byte..

write that byte in the pic..

write it to the other pic

read the next byte

etc..

???

wy you need memory..??

Because you can't read just a byte off a FDD, I think you have to read a complete track, or at least a complete sector.

As 'bmcculla' mentioned, a botloader system could work fairly easily for you, various PIC's are bootloader capable - including the 16F876/7 series. All you need is a serial connection to a PC.
 
Interesting. Now you've got me thinking about how that could work.

The bigger PICs do have 1k of RAM space, capable of buffering the 512 byte chunk as long as you can do everything else you wanted with half the RAM already taken. I wonder, could you format it so that you only use say the first 128 bytes of each chunk and just forget about the rest? Or would the storage format need to use the entire chunk?

I saw some recommendations that an I2C EEPROM or a parallel EEPROM be used to hold the 512 byte chunk.

Here's some stuff I saw about interfacing with an MMC or CF card. I saw bootloading off the card mentioned.

http://www.compsys1.com/workbench/Benchware/mmcio/mmc_i_o.html
http://www.compsys1.com/workbench/On_top_of_the_Bench/MMC_Project/mmc_project.html
http://barrymichels.com/ide/
 
....

i think it could be work

whit a floppy as well..

because who will be the slowest factor..???

i think that whit a serial eeprom..

it has to be able to read a hex from a fdd

and to write it in a EEPROM MEM..

and then finally write the eeprom ram into another chip..??

maybe i2c isn't fast..

but it will work..

how fast is i2c.???

TKS
 
....

i think it could be work

whit a floppy as well..

because who will be the slowest factor..???

i think that whit a serial eeprom..

it has to be able to read a hex from a fdd

and to write it in a EEPROM MEM..

and then finally write the eeprom ram into another chip..??

maybe i2c isn't fast..

but it will work..

how fast is i2c.???

TKS
 
A PIC alone won't be able to read from an FDD. You would need a floppy disk controller (FDC) to read a standard 512 byte sector. Stand alone FDC chips are getting harder to obtain. This alone will eliminate any cost advantage a FDD may have.

You may have to forego using DOS format for storage. There is not enough memory to decode a DOS directory, FAT, etc. even if you could read a 512 byte sector.
 
Re: ....

TKS said:
i think it could be work

whit a floppy as well..

because who will be the slowest factor..???

i think that whit a serial eeprom..

it has to be able to read a hex from a fdd

and to write it in a EEPROM MEM..

and then finally write the eeprom ram into another chip..??

maybe i2c isn't fast..

but it will work..

how fast is i2c.???

TKS

I2C is going to be faster than a floppy - remember the BASIC STAMP?, this reads it's interpreted BASIC code out of an EEPROM (byte by byte, as it's needed).
 
Flash card..

ok..

i have forgotten the FDD idea..

because i'm got a new idea...

i'm gonna do it whit a CF card..

these are easyer to read and faster and cheap...

atleast they don't need much power..
and don't have moving parts..

soow i'm gonna try that out..!!

also i'm gonna try to acces a HDD>..

any one has already done that succesfully..??
i'm gonna make a new topic for it..for better atention..

TKS
 
Status
Not open for further replies.

Latest threads

Back
Top