6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 10, 2024 2:31 pm

All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Mar 30, 2023 8:00 pm 
Offline
User avatar

Joined: Sun Dec 26, 2021 8:27 pm
Posts: 182
When teaching people to make < 10$ sbc’s it seems a bit off to have them buy a 50-70$ TL866II to program 1$ ROMs instead of 10$ ROM’s.. so I’d like to make a cheap programmer specifically for the w27c512s since they are so cheap and readily available.

For now I have 1 x 8bit port in mind for data, two ‘595s for address lines, a 5V to 14V boost regulator and a LM339 to control the 5V to 14V for erase voltage on A9 and OE/VPE

One hurdle though - what’s an easy way to drop the 14V on OE/VPP down to 12V when programming after erasing? Can I use an LM339 output to pull down?

I also need 5V on A9 and OE but I’m thinking a 6522 probably won’t fry if it has 1k5 resistors on the OE pin and the same for the ‘595 pin(?)

_________________
---
New new new new new video out! Serial Bootloader for my 65uino
Also, check out: I2C on a 6502 Single Board Computer
and Complete hardware overview of my 6502 SBC R1 :)


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 30, 2023 10:03 pm 
Offline
User avatar

Joined: Sun Dec 26, 2021 8:27 pm
Posts: 182
Thinking it over the ‘339 might not be ideal since VPE/VPP current can go as high as 30mA so I need an output buffer that can source that.. 339 still might be needed. Or maybe discrete mosfets are better.

_________________
---
New new new new new video out! Serial Bootloader for my 65uino
Also, check out: I2C on a 6502 Single Board Computer
and Complete hardware overview of my 6502 SBC R1 :)


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 30, 2023 11:08 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8433
Location: Southern California
This is the first time I've seen a 27Cxxx part that was electrically erasable, and it looks like it has been out at least since 1999.  Now I need to edit a recent post of mine.  I'll have to study the datasheet.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 30, 2023 11:40 pm 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 586
Location: Michigan, USA
Loading up a pair of 8-bit latches in cascade could be faster than loading up a pair of '595s. Also, please note the cheap MT3608 'boost' regulator modules will pass their input voltage when /enable is off which is perfect for supplying 6.5v or 5.0v on VCC and 12.5v or 5.0v on VPP for the 27C64, 27C128, and 27C256 12 volt EPROMs. Unfortunately, cutting a trace on the MT3608 modules to expose the /enable input can test your mettle, and, I'm not sure what you'd need for the various voltages required for the 27C512.

Have you looked at the relatively inexpensive single-voltage SST 39SF series flash ROM's?


Attachments:
Flash Programmer #3B.png
Flash Programmer #3B.png [ 350.79 KiB | Viewed 2728 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 1:21 am 
Offline

Joined: Fri Jul 09, 2021 10:12 pm
Posts: 741
If the EEPROM has a "page write" mode then you might need to be careful to ensure that the top address bits stay constant during the operation. Atmel's, at least, seem to flush the page if the top bits change between writes, even if they're back to the old values by the time the next write begins. So two latches with independent clock pins may work better than daisychaining them.

If you only need to program the addresses in sequence you could also consider just using 74HC590 counters to generate the addresses.

You might also find https://github.com/gfoot/nanoprom interesting, although it is quite tailored to the Atmel EEPROMs which latch the address during write operations.


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 5:00 am 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 586
Location: Michigan, USA
gfoot wrote:
You might also find https://github.com/gfoot/nanoprom interesting, although it is quite tailored to the Atmel EEPROMs which latch the address during write operations.

That's a clever and elegant method. Bravo! I wonder if it could be extended to include the 32-pin SST 39SF series flash ROMs?

I have to say I really like the SST flash ROM's but a design could support either AT28C256 (32k) or 39SF010A (128k) devices by including a 32-pin socket and simple set of jumpers (see below).


Attachments:
Blind Interface 688 #2.png
Blind Interface 688 #2.png [ 220.23 KiB | Viewed 2708 times ]
SBC6502 R1a.png
SBC6502 R1a.png [ 394.79 KiB | Viewed 2708 times ]


Last edited by Michael on Sat Apr 08, 2023 4:54 am, edited 2 times in total.
Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 11:22 am 
Offline
User avatar

Joined: Sun Dec 26, 2021 8:27 pm
Posts: 182
Michael wrote:
Loading up a pair of 8-bit latches in cascade could be faster than loading up a pair of '595s. Also, please note the cheap MT3608 'boost' regulator modules will pass their input voltage when /enable is off which is perfect for supplying 6.5v or 5.0v on VCC and 12.5v or 5.0v on VPP for the 27C64, 27C128, and 27C256 12 volt EPROMs. Unfortunately, cutting a trace on the MT3608 modules to expose the /enable input can test your mettle, and, I'm not sure what you'd need for the various voltages required for the 27C512.

Have you looked at the relatively inexpensive single-voltage SST 39SF series flash ROM's?


Indeed the 39SF010's are useful but they are about 3 x more expensive - and sorely fallen victim to the chip shortage. Farnell has 0 in stock. LCSC has 2 of them.. But for over 8$ each!

gfoot wrote:
If you only need to program the addresses in sequence you could also consider just using 74HC590 counters to generate the addresses.


I thought about it but the '595s are cheaper and slightly more available.

I've attached a schematic to make things clearer. I think only VEP/VPP (~OE) needs to source (30mA max) current so I've added ... what I think is. ... a current buffer BJT. A9 probably just needs the voltage. Will it pass on the voltage and add a current source?

Will it work and will it successfully switch between 12V and 14V depending on VPE_TO_VPP?


Attachments:
Screenshot 2023-03-31 at 13.15.05.png
Screenshot 2023-03-31 at 13.15.05.png [ 72.79 KiB | Viewed 2685 times ]

_________________
---
New new new new new video out! Serial Bootloader for my 65uino
Also, check out: I2C on a 6502 Single Board Computer
and Complete hardware overview of my 6502 SBC R1 :)
Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 12:40 pm 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 586
Location: Michigan, USA
AndersNielsen wrote:
Indeed the 39SF010's are useful but they are about 3 x more expensive - and sorely fallen victim to the chip shortage. Farnell has 0 in stock. LCSC has 2 of them.. But for over 8$ each!

Mouser has over 14000 39SF010A's in DIP-32 package at $3.06 each. What's the source for the $1 W27C512's?


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 12:43 pm 
Offline
User avatar

Joined: Fri Aug 03, 2018 8:52 am
Posts: 746
Location: Germany
AndersNielsen wrote:
Indeed the 39SF010's are useful but they are about 3 x more expensive - and sorely fallen victim to the chip shortage. Farnell has 0 in stock. LCSC has 2 of them.. But for over 8$ each!

mouser has plenty of stock, especially for the PLCC versions, all of them are around 2-3 USD per chip (with the DIP variant being around 1 USD more expensive than the PLCC one) so i would stay away from whatever site shows you 8 USD :shock:
example, 512kB PLCC-32
only one not in stock right now is the DIP version of the 512kB Chip

also where do you even get the W27C512 from? i was unable to find on Mouser or Digikey, and is the price difference that huge that it would be worth using old stock over new chips and dealing with the 12/14V when programming?
i honestly doubt it...


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 12:48 pm 
Offline

Joined: Fri Jul 09, 2021 10:12 pm
Posts: 741
Hmm I'm not sure I follow what's going on with the comparator. I'd be more inclined to take the 14V divided down to 12V, pass it through an op amp to buffer it (if you can get one that supports the output current you need), and use a P-channel MOSFET or PNP transistor to optionally bypass the top resistor of the divider - so that if the base/gate of this transistor is grounded then it will bypass the top resistor and the output of the divider - and hence op amp - will be 14V instead of 12V.

I don't think your "Q?" transistor is correct, you have the base grounded. An emitter-follower current amplifier usually has the input going into the base, output coming from the emitter, and collector connected to the high supply voltage. The emitter output is then about a diode drop lower than the base input. I'd prefer an op amp as it won't have that drop over it, but you'd still need one that pulls all the way to the high voltage input (or boost to an even higher voltage to power the op amp). I'm sure others here have better suggestions too, my analogue experience is very limited.


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 1:17 pm 
Offline
User avatar

Joined: Sun Dec 26, 2021 8:27 pm
Posts: 182
gfoot wrote:
Hmm I'm not sure I follow what's going on with the comparator.


It's just level shifting from 5V -> 14V. @GARTHWILSON has an explainer here: http://wilsonminesco.com/6502primer/potpourri.html

gfoot wrote:
I don't think your "Q?" transistor is correct, you have the base grounded.


That's usually how a common base amp works - still not sure it works as I expect though :) https://www.electronics-tutorials.ws/am ... ifier.html

Michael wrote:
What's the source for the $1 W27C512's?


AliExpress - they're all "refurbished". Actually they usually come with the previous owner's data. They also take about 30 seconds to program opposed to the 5 seconds for the 39sf010.

_________________
---
New new new new new video out! Serial Bootloader for my 65uino
Also, check out: I2C on a 6502 Single Board Computer
and Complete hardware overview of my 6502 SBC R1 :)


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 1:57 pm 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 586
Location: Michigan, USA
AndersNielsen wrote:
Michael wrote:
What's the source for the $1 W27C512's?

AliExpress - they're all "refurbished". Actually they usually come with the previous owner's data. They also take about 30 seconds to program opposed to the 5 seconds for the 39sf010.

You can get 39SF010A 'pulls' or 'refurbs' on AliExpress, too. I purchased ten from this vendor a few weeks ago (nice markings & all tested good). So if I were to 'recycle' parts, like you, it seems I could produce an SBC + Programmer for about $10 in parts (including a $3 Arduino Nano clone and a PCB).


Attachments:
SST39SF010A AliExpress.jpg
SST39SF010A AliExpress.jpg [ 141.7 KiB | Viewed 2654 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 2:25 pm 
Offline
User avatar

Joined: Sun Dec 26, 2021 8:27 pm
Posts: 182
Michael wrote:
AndersNielsen wrote:
Michael wrote:
What's the source for the $1 W27C512's?

AliExpress - they're all "refurbished". Actually they usually come with the previous owner's data. They also take about 30 seconds to program opposed to the 5 seconds for the 39sf010.

You can get 39SF010A 'pulls' or 'refurbs' on AliExpress, too. I purchased ten from this vendor a few weeks ago (nice markings & all tested good). So if I were to 'recycle' parts, like you, it seems I could produce an SBC + Programmer for about $10 in parts (including a $3 Arduino Nano clone and a PCB).


Amazing news! Gotta grab them while we can!
Then this’ll just be a fun project - even if it’s not saving a bunch of money :)

_________________
---
New new new new new video out! Serial Bootloader for my 65uino
Also, check out: I2C on a 6502 Single Board Computer
and Complete hardware overview of my 6502 SBC R1 :)


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 2:41 pm 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 586
Location: Michigan, USA
I'm anxious to see how your W27C512 programmer turns out...


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 31, 2023 8:48 pm 
Offline
User avatar

Joined: Sun Dec 26, 2021 8:27 pm
Posts: 182
Michael wrote:
I'm anxious to see how your W27C512 programmer turns out...


Me too!

I guess I can also just make a super cheap 14V “eraser” on a breadboard first and see if I can generate the “high” voltages.

_________________
---
New new new new new video out! Serial Bootloader for my 65uino
Also, check out: I2C on a 6502 Single Board Computer
and Complete hardware overview of my 6502 SBC R1 :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: