IDE interface prototype is complete!
Archiver
Posts: 46,084
I just finished testing the read/write functions of my IDE interface. It uses
two 8255's, one to connect to the IDE drive and one to connect to an 8k static
ram chip. It's really slow and uses up all but 48 bytes of the BS2's 2k of
program space. There is no code to do a file system. Right now, I'm just using
it to test the hardware design and learn the IDE interface.
Now that I know it can be done easily, I will replace the BS2 with a SX28 and
incorporate an I2C interface and some file system code.
I'm also gonna draw up a schematic of what I have breadboarded so far and put it
on my website. Right now, I have a 1.8MB video of the breadboard:
http://www.barrymichels.com/ide
Yellow is data lines, Green is address and control lines, Red is +5V and Black
is GND. Now that I'm powering a drive, I've removed the battery pack and
replaced it with a PC power supply.
Barry
[noparse][[/noparse]Non-text portions of this message have been removed]
two 8255's, one to connect to the IDE drive and one to connect to an 8k static
ram chip. It's really slow and uses up all but 48 bytes of the BS2's 2k of
program space. There is no code to do a file system. Right now, I'm just using
it to test the hardware design and learn the IDE interface.
Now that I know it can be done easily, I will replace the BS2 with a SX28 and
incorporate an I2C interface and some file system code.
I'm also gonna draw up a schematic of what I have breadboarded so far and put it
on my website. Right now, I have a 1.8MB video of the breadboard:
http://www.barrymichels.com/ide
Yellow is data lines, Green is address and control lines, Red is +5V and Black
is GND. Now that I'm powering a drive, I've removed the battery pack and
replaced it with a PC power supply.
Barry
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
http://www.barrymichels.com/ide
Every time I think I've run out of program space, I find an optimization
that frees up more room. Right now, a single stamp is interfaced to an 8k
static ram chip, an IDE drive and an LCD. And, there's one free pin and
about 200 bytes of code space free!
I'm working on a schematic that will be posted as soon as I can get it done.
Barry
I look forward to seeing your schematic. What version chip are you
using, BS2 or BS2SX?
Regards, Theron Wierenga
Barry Michels wrote:
> I've added an LCD readout. There's also some pictures added to my site:
> http://www.barrymichels.com/ide
>
> Every time I think I've run out of program space, I find an optimization
> that frees up more room. Right now, a single stamp is interfaced to an 8k
> static ram chip, an IDE drive and an LCD. And, there's one free pin and
> about 200 bytes of code space free!
>
> I'm working on a schematic that will be posted as soon as I can get it done.
>
> Barry
>
From: Theron Wierenga
Date: Sun Aug 19, 2001 2:01 pm
Subject: Re: [noparse][[/noparse]basicstamps] Re: IDE interface prototype is complete!
Barry,
I look forward to seeing your schematic. What version chip are you
using, BS2 or BS2SX?
Regards, Theron Wierenga
rewrote the code again and freed up another 250 bytes. Then filled it back
up with a new feature: drive size display - both in number of sectors and in
Kb. Now there's still about 120 bytes free.
http://www.barrymichels.com/ide
thinking about getting a BS2SX or a BS2P in order to expand the
number of functions?
-- Tracy
>Since there was only 4 bytes of code space free in my last revision, I
>rewrote the code again and freed up another 250 bytes. Then filled it back
>up with a new feature: drive size display - both in number of sectors and in
>Kb. Now there's still about 120 bytes free.
>
>http://www.barrymichels.com/ide
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the
>Subject and Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
bytes/sec on the IDE). I did this to see if it could be done and to learn
about the 8255 and IDE interfaces. Now, I'm working on replacing the BS2
with a SX28.
My original goal with this project is a datalogger. It has to be capable of
simultaneously receiving a constant 9600 baud stream and managing the data
it receives - storing it in ram until it has a full sector to dump to the
drive.
I will let the rest of the Stamp group work on furthering this design if
they like. There's 1 free pin! Even more if you put a 74LS138 decoder.
Maybe tack on an ADC? And, on the way home from work today, I thought of a
way to save more code space in the stamp. I'm going to implement it
tonight.
Barry
Original Message
From: "Tracy Allen" <tracy@e...>
To: "Barry Michels" <bmichels@e...>; <basicstamps@yahoogroups.com>
Sent: Monday, August 20, 2001 12:02 PM
Subject: [noparse][[/noparse]basicstamps] Re: IDE interface prototype is complete!
> Wow! That's a great project Barry. Keep up the good work. Are you
> thinking about getting a BS2SX or a BS2P in order to expand the
> number of functions?
>
> -- Tracy
>
> >Since there was only 4 bytes of code space free in my last revision, I
> >rewrote the code again and freed up another 250 bytes. Then filled it
back
> >up with a new feature: drive size display - both in number of sectors and
in
> >Kb. Now there's still about 120 bytes free.
> >
> >http://www.barrymichels.com/ide
> >
> >
> >To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> >from the same email address that you subscribed. Text in the
> >Subject and Body of the message will be ignored.
> >
> >
> >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
Al Williams
AWC
* Floating point A/D
http://www.al-williams.com/awce/pak9.htm
>
Original Message
> From: Barry Michels [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=KfyN13KXGPFTpsvmErNE9Pkt-JOYRIhQSO2S_4RnsTVaFiyDPvVcFhlIM055rFWwasr2vs3alMMOkw]bmichels@e...[/url
> Sent: Monday, August 20, 2001 7:24 PM
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] Re: IDE interface prototype is complete!
>
>
> No, it's too slow (200 bytes/sec max between the ram and stamp, 120
> bytes/sec on the IDE). I did this to see if it could be done and to learn
> about the 8255 and IDE interfaces. Now, I'm working on replacing the BS2
> with a SX28.
>
> My original goal with this project is a datalogger. It has to be
> capable of
> simultaneously receiving a constant 9600 baud stream and managing the data
> it receives - storing it in ram until it has a full sector to dump to the
> drive.
>
> I will let the rest of the Stamp group work on furthering this design if
> they like. There's 1 free pin! Even more if you put a 74LS138 decoder.
> Maybe tack on an ADC? And, on the way home from work today, I
> thought of a
> way to save more code space in the stamp. I'm going to implement it
> tonight.
>
>
> Barry
>
>
>
Original Message
> From: "Tracy Allen" <tracy@e...>
> To: "Barry Michels" <bmichels@e...>; <basicstamps@yahoogroups.com>
> Sent: Monday, August 20, 2001 12:02 PM
> Subject: [noparse][[/noparse]basicstamps] Re: IDE interface prototype is complete!
>
>
> > Wow! That's a great project Barry. Keep up the good work. Are you
> > thinking about getting a BS2SX or a BS2P in order to expand the
> > number of functions?
> >
> > -- Tracy
> >
> > >Since there was only 4 bytes of code space free in my last revision, I
> > >rewrote the code again and freed up another 250 bytes. Then filled it
> back
> > >up with a new feature: drive size display - both in number of
> sectors and
> in
> > >Kb. Now there's still about 120 bytes free.
> > >
> > >http://www.barrymichels.com/ide
> > >
> > >
> > >To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > >from the same email address that you subscribed. Text in the
> > >Subject and Body of the message will be ignored.
> > >
> > >
> > >Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> >
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>