mstechca said:For all of you who just adore (and only adore) Windows XP, start laughing at me, because I am going old school style.
What I want to do is be able to actually read any byte I want from a floppy disk. I am using a standard 3 1/2 inch floppy disk drive to help me out.
The problem is that everything I have done so far has lead to failure.
I even tried connecting the output pins to the LED's and the only output pin that seems to work is the write-protect detection pin.
When I plug the floppy drive into the computer, it works normally.
I have searched several websites, and there is not one single website explaining the details on how to manually read a single byte from a floppy disk!
Your motivations are somewhat weird. Why is a floppy disk reader safer? Anyway, I've interfaced MMC cards before. I believe CF interface has also been achieved before, but obtaining a CF socket may be somewhat tricky. I've even implemented the FAT on the MMC. Works fine and "safe". These cards pack many times the size capacity of the humble floppy, are fungus resistant, compact-sized, non-mechanical ...mstechca said:Why do I want to do this? Because it is SAFER, and the risks are somewhat lower.
checkmate said:Your motivations are somewhat weird. Why is a floppy disk reader safer?mstechca said:Why do I want to do this? Because it is SAFER, and the risks are somewhat lower.
mstechca said:After making a programmer with using a parallel port, I have in the process damaged one parallel port on my old motherboard (which is now trashed).
checkmate said:Maybe nigel can cool off abit.
YesYou want to design an interface so that you can connect your microcontrollers to a floppy drive for the purposes of programming them???
Lower Risk taking, Code Portability, Selective programming, etc. :wink:I really can't understand why anyone would dream of doing such a thing.
That is easy. I will use DOS interrupts or access the disk by port address and write byte-by-byte.You're going to need to design your own file system, and write some firmware to support it.
In this case, I doubt I will need software, because if I just program raw data, sequentially, I think I can get away with a shift register, and a counter. The counter can then terminate disk reading when a set amount of bytes have been read.Once you've done that you're going to need to write some software which will take the data you've obtained from your floppy drive and program your required microcontroller with it using the required protocol for that particular microcontroller.
I'm only using one kind of microcontroller now, so this won't apply to me.If you then decide you want to program a different type of microcontroller, you're going to need to re-write part of your software to support it and you're going to need to do this EVERY time you decide that you want to work with something different.
This is the part I need help figuring out. That's why I wanted to know how to read a bit from the disk.Then you're going to need to build a dedicated system which permanently interfaces to the floppy drive, and a suitable output interface for connecting to the desired microcontroller.
I would find it more insane, bulky, and time consuming to create a CD just for 2K of information.Even assuming you're willing to do all that work, and you're capable of doing it, I still don't see how you're the slightest bit better off. Especially since floppy disks are a highly unreliable way to store information.
The programmers I dealt with were all made by myself. Incidentally, one programmer worked nicely, but lacked some functions.If you've been damaging parallel ports using parallel programmers, you've been doing something wrong.
Anyway, the main issue is that you have weird notions of "better" that the majority of us feels quite unacceptable, or just a waste of time.mstechca said:YesYou want to design an interface so that you can connect your microcontrollers to a floppy drive for the purposes of programming them???
Lower Risk taking, Code Portability, Selective programming, etc. :wink:I really can't understand why anyone would dream of doing such a thing.
None of the above makes sense. A poorly designed programmer can burn your parallel port. Similarly, a poorly designed programmer can burn your microcontroller. Next, what has code portability got to do with it. Lastly, what's selective programmming?
That is easy. I will use DOS interrupts or access the disk by port address and write byte-by-byte.You're going to need to design your own file system, and write some firmware to support it.
You are no longer writing programs for the PC, so there are no such things as DOS interrupts. Addressing is handled by the motherboard, so there is no such thing as port addressing (Maybe only some ports of the on-board FDD controller.)
In this case, I doubt I will need software, because if I just program raw data, sequentially, I think I can get away with a shift register, and a counter. The counter can then terminate disk reading when a set amount of bytes have been read.Once you've done that you're going to need to write some software which will take the data you've obtained from your floppy drive and program your required microcontroller with it using the required protocol for that particular microcontroller.
And how many bits must your shift register be? How many shift register ICs do you think you'll be using? Another point, software is always preferred to hardware because it is FREE.
I'm only using one kind of microcontroller now, so this won't apply to me.If you then decide you want to program a different type of microcontroller, you're going to need to re-write part of your software to support it and you're going to need to do this EVERY time you decide that you want to work with something different.
This is the part I need help figuring out. That's why I wanted to know how to read a bit from the disk.Then you're going to need to build a dedicated system which permanently interfaces to the floppy drive, and a suitable output interface for connecting to the desired microcontroller.
I would find it more insane, bulky, and time consuming to create a CD just for 2K of information.Even assuming you're willing to do all that work, and you're capable of doing it, I still don't see how you're the slightest bit better off. Especially since floppy disks are a highly unreliable way to store information.
Any FLASH memory out there is definitely more compact. A parallel port or serial port connection is similarly just as compact.
The programmers I dealt with were all made by myself. Incidentally, one programmer worked nicely, but lacked some functions.If you've been damaging parallel ports using parallel programmers, you've been doing something wrong.
Good for you. Eerrmm ... is that indicative that your projects have been major successes at reasonable costs?
mstechca said:YesYou want to design an interface so that you can connect your microcontrollers to a floppy drive for the purposes of programming them???
Lower Risk taking, Code Portability, Selective programming, etc. :wink:I really can't understand why anyone would dream of doing such a thing.
mstechca said:That is easy. I will use DOS interrupts or access the disk by port address and write byte-by-byte.You're going to need to design your own file system, and write some firmware to support it.
Do you even read other ppl's posts?mstechca said:I would find it more insane, bulky, and time consuming to create a CD just for 2K of information.Even assuming you're willing to do all that work, and you're capable of doing it, I still don't see how you're the slightest bit better off. Especially since floppy disks are a highly unreliable way to store information.
mstechca said:The programmers I dealt with were all made by myself. Incidentally, one programmer worked nicely, but lacked some functions.If you've been damaging parallel ports using parallel programmers, you've been doing something wrong.
Exo said:We've told you about the risks before. If you use everything like it's supposed to nothing will get damaged. I've been using the same programmer on the same pc for 3 years now...
Just for laughs. I highly doubt you used the same PC back then and now do you?Nigel Goodwin said:Exo said:We've told you about the risks before. If you use everything like it's supposed to nothing will get damaged. I've been using the same programmer on the same pc for 3 years now...
Only 3 years? :lol:
I first wrote PicProg under DOS, then ported it to become the worlds first Windows PIC Programmer under Windows 3.1 (before Win95 came out, and while MicroChip were still all DOS), at this time I still did my email via DOS, and only used Windows occasionally for browsing web sites, the web and HTML was still pretty rare back then!.
In all my years of parallel port PIC programmer design I've NEVER damaged a port - a little common sense, and understanding of what you're doing is all it takes.
But you've got to admire mstechca's enthusiasm?, anyone who hopes to program micro-controllers directly from a floppy drive (using just simple hardware) deserves an award for creative thought! - once he's got it working I'll present it personally :lol:
Next, what has code portability got to do with it.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?