SV: [basicstamps] Interfacing A Standard EPROM
Archiver
Posts: 46,084
Greetings!
Actually, you CAN move the code outside, but only to a compatible serial
EEPROM, connected in exactly the same way as the onboard one, but that
really defeats the purpose, doesn't it? :-)
Anyway, the interpreter doesn't handle any bigger EEPROM's than the BS
is equipped with, so there's not much use for it. (It would take a total
rewrite of the interpreter to do that if I'm not mistaken)
Besides, having to remove the chip from the socket, burning it, then
replacing it sounds like too much
work. (That assumes you're using a EEPROM, not an EPROM which needs UV
light to be erased)
When I work on my BS2, I write, translate and download, test, fix bugs,
translate and download and so on, all without unplugging the serial
cable or having to power off the unit.
I'm lazy, so REALLY LIKE this...
(I have worked in assembler on 8051 series controllers with EPROM's
and... Yawn... )
If you need more program space, I suggest either going for a BS2p or
BS2pe, or holding out in anticipation of the promised next model...
(Jon tends to hint at it now and then... )
Can't wait, and the BS2p series can't supply enough program space?
Write a small program for bank 0 that copies an already stored program
in from an external EEPROM and into a free Program page. (This is only a
good idea if those program bits aren't needed too often as the Program
EEPROM have a limited number of writes. )
You'll also need a small program that copies the translated program FROM
a program space and to an external EEPROM, but that shouldn't be too
difficult.
Consider it 'virtual program space'...
:-)
Trygve
Opprinnelig melding
Fra: Jon Williams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=jxIDJDc4ZitHv9XW3QJ9fRLtXdPo13NjOc_muWIzwcmDkCalRaf2vkxkBvRq_LQePjD8M9MKpRfZCEA98lpD]jwilliams@p...[/url
Sendt: 30. mars 2004 13:34
Til: basicstamps@yahoogroups.com
Emne: RE: [noparse][[/noparse]basicstamps] Interfacing A Standard EPROM
You can't move your code outside the onboard EEPROM. Why? Because the
core interpreter expects the program tokens to be available in the
serial EE; it doesn't know how to look elsewhere.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Ted Ham [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kpXrPyYmsgLjBlLaIAHD2sLON0FmV3Y_Z5r3WDQobk9IahFkXaQ5pg5D3AfSQEq11tWfUOTye1zbhgg]tedhamii@h...[/url
Sent: Monday, March 29, 2004 10:50 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Interfacing A Standard EPROM
Hello. yes, yes, I am new to this group, since I just got by Parallax
Basic Stamp 2 OEM Board, 4x20 parallell LCD, keypad, keypad decoder
and some other goodies. I am so very much interested in getting
uderway in programming my Basic stamp. My question is this..Is there
a way to use, say, a standard 27C128 28-Pin DIP EPROM chip to hold my
Basic code instead of using the on board 8 pin DIP 24LC168 EPROM that
comes on the Basic Stamp 2 OEM board? I have a "Superpro-Z" EPROM
programmer that I would use to program my Basic code into this 27C128
chip. I know it might sound silly, to be using a large (Overkill) 28
pin DIP (27C128) EPROM chip to hold my code rather than just using
the standard, on-board tiny 8 pin dip 24LC168 EPROM, but isn't the
whole idea of playing with and experimenting with these Basic Stamp
boards to go off the wall and incorporate diffferent ideas? If this
is possible, my course of action would be to get rid of the little 8
pin 24LC168 EPROM and use the 27C128 28 pin DIP EPROM instead. I
would need to somehow first incorporate this 27C128 chip into the
Basic Stamp OEM 2 board, save my original Basic program as a binary
file, and then use my "Superpro-Z" EPROM burner to write this binary
code to the proper location in my 27C128 chip, and hopefully
everything will work fine. I also don't know how to convert, or save
my original Basic code to either a HEX or binary file. I guess if I
could save my original Basic program to a HEX file, I could use one
of my HEX to Binary convertor programs. Anyone have any experience in
doing what I want to do here?
Thanks,
Ted
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.
Yahoo! Groups Links
Actually, you CAN move the code outside, but only to a compatible serial
EEPROM, connected in exactly the same way as the onboard one, but that
really defeats the purpose, doesn't it? :-)
Anyway, the interpreter doesn't handle any bigger EEPROM's than the BS
is equipped with, so there's not much use for it. (It would take a total
rewrite of the interpreter to do that if I'm not mistaken)
Besides, having to remove the chip from the socket, burning it, then
replacing it sounds like too much
work. (That assumes you're using a EEPROM, not an EPROM which needs UV
light to be erased)
When I work on my BS2, I write, translate and download, test, fix bugs,
translate and download and so on, all without unplugging the serial
cable or having to power off the unit.
I'm lazy, so REALLY LIKE this...
(I have worked in assembler on 8051 series controllers with EPROM's
and... Yawn... )
If you need more program space, I suggest either going for a BS2p or
BS2pe, or holding out in anticipation of the promised next model...
(Jon tends to hint at it now and then... )
Can't wait, and the BS2p series can't supply enough program space?
Write a small program for bank 0 that copies an already stored program
in from an external EEPROM and into a free Program page. (This is only a
good idea if those program bits aren't needed too often as the Program
EEPROM have a limited number of writes. )
You'll also need a small program that copies the translated program FROM
a program space and to an external EEPROM, but that shouldn't be too
difficult.
Consider it 'virtual program space'...
:-)
Trygve
Opprinnelig melding
Fra: Jon Williams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=jxIDJDc4ZitHv9XW3QJ9fRLtXdPo13NjOc_muWIzwcmDkCalRaf2vkxkBvRq_LQePjD8M9MKpRfZCEA98lpD]jwilliams@p...[/url
Sendt: 30. mars 2004 13:34
Til: basicstamps@yahoogroups.com
Emne: RE: [noparse][[/noparse]basicstamps] Interfacing A Standard EPROM
You can't move your code outside the onboard EEPROM. Why? Because the
core interpreter expects the program tokens to be available in the
serial EE; it doesn't know how to look elsewhere.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Ted Ham [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kpXrPyYmsgLjBlLaIAHD2sLON0FmV3Y_Z5r3WDQobk9IahFkXaQ5pg5D3AfSQEq11tWfUOTye1zbhgg]tedhamii@h...[/url
Sent: Monday, March 29, 2004 10:50 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Interfacing A Standard EPROM
Hello. yes, yes, I am new to this group, since I just got by Parallax
Basic Stamp 2 OEM Board, 4x20 parallell LCD, keypad, keypad decoder
and some other goodies. I am so very much interested in getting
uderway in programming my Basic stamp. My question is this..Is there
a way to use, say, a standard 27C128 28-Pin DIP EPROM chip to hold my
Basic code instead of using the on board 8 pin DIP 24LC168 EPROM that
comes on the Basic Stamp 2 OEM board? I have a "Superpro-Z" EPROM
programmer that I would use to program my Basic code into this 27C128
chip. I know it might sound silly, to be using a large (Overkill) 28
pin DIP (27C128) EPROM chip to hold my code rather than just using
the standard, on-board tiny 8 pin dip 24LC168 EPROM, but isn't the
whole idea of playing with and experimenting with these Basic Stamp
boards to go off the wall and incorporate diffferent ideas? If this
is possible, my course of action would be to get rid of the little 8
pin 24LC168 EPROM and use the 27C128 28 pin DIP EPROM instead. I
would need to somehow first incorporate this 27C128 chip into the
Basic Stamp OEM 2 board, save my original Basic program as a binary
file, and then use my "Superpro-Z" EPROM burner to write this binary
code to the proper location in my 27C128 chip, and hopefully
everything will work fine. I also don't know how to convert, or save
my original Basic code to either a HEX or binary file. I guess if I
could save my original Basic program to a HEX file, I could use one
of my HEX to Binary convertor programs. Anyone have any experience in
doing what I want to do here?
Thanks,
Ted
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.
Yahoo! Groups Links
Comments
to use a real "EPROM", the one with the UV window in it. I wanted to
be able to "Burn" the code into the 27C128 chip using my EPROM
programmer. It's not a space problem that I have with the original 8
pin EEPROM, I am not that good yet at writing programs so at this
point I will never be able to even come close to filling up the
original 8 pin EEPROM. I just like the whole concept of using my
EPROM burner and burning chips, and erasing them too. I thought that
I could perhaps have an individual 27C128 chip for each and every
program that I write. This way I could just change out the 27C128
chip with another one that has some code in it and have my BS2 OEM
board do it's thing without having to hook up my laptop and dumping
in another program to have it do something else. I could have like 10
different 27C128's, all with different programs in them, but I guess
I will never be able to do this cause of what Jon from Parrallex
said. Yes, it would have to be the large 28 pin dip 27Cxxx series
EPROMS. I like those chips. You could say that I just want to take
the "Long" way to do something, like burning and changing EPROM
chips, but that is fun for me.
On another note, would it be possible to incorporate my 27C128 EPROM
chip into some other sort of application using my BS2 OEM board, like
possibly a data aquisition applicaton? I am hell bent on wanting to
use a 28 pin dip EPROM like the 27C128, 27C256 or 27C512 with my BS2
OEM board, even if I only have 2 measily lines of Basic code.. So..
if ANYONE out there knows of some sort of application or project that
I can use my "27Cxxx" EPROM chip with my BS2 OEM board, please let me
know. Also, how can I (If I even can) save my Basic code into a
regular binary or HEX file while I am using the Basic Stamp Editor
Ver. 2 Windows graphical interface program? I guess that perhaps I
can look at the "Memory Map" after I write my code, and then write
down the HEX values and their respective memory locations. Would this
work this way? Say I had a blank 8 pin "24LC16B" EEPROM chip. If I
put it into my EPROM burner and I manually entered in the exact same
HEX values in the same memory locations as an already
programmed "24LC16B" chip, and then "Burned" these values into my
blank "24LC16B" chip, and then I put this newly burned "24LC16B" chip
into my BS2 OEM board, would it work?
Thanks,
Ted