6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 1:40 am

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

Which do you choose?
EPROM 11%  11%  [ 1 ]
EEPROM 89%  89%  [ 8 ]
Total votes : 9
Author Message
 Post subject: Re: EPROM or EEPROM?
PostPosted: Fri Aug 28, 2015 11:48 am 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
nkeck72 wrote:
About the NVRAM and FRAM... to protect from malicious users (just to be safe) is there usually a write protect feature?

Edit: being the bonehead I can be sometimes, write protect comes in handy, especially when I mean to program $E000 (I/O) and actually type $F000 (ROM)


With NVRAM you can simply tie the R/W pin to +5V using a 3K3 resistor. Or (if you want to be able to write, but protect the contents against accidental erasure) you could possibly tie the R/W pin to, say, a latch or even a VIA pin (probably best to also have a 10K pull up resistor to deal with tri state before the VIA is programmed).

Something like this:
Attachment:
nvram_write_prot_circuit.png
nvram_write_prot_circuit.png [ 27.87 KiB | Viewed 322 times ]


The only thing I'm not sure of is the need for the pullup resistor on the VIA_PIN line (R1). I've put it in so that you hopefully the NVRAM write pin will never enable writing (logic 0) spuriously (during boot/reset, VIA setup, etc.). As I say, it might not be needed, but its inclusion shouldn't cause any problems and it's best to be safe :mrgreen:. The use of HC or AC logic is recommended for the OR gate IC as you don't want to ahve to wait CPU cycles for the state of the VIA_PIN to affect the WE pin of the NVRAM when you decide to change it. Also, having the OR gate introduces a propogation delay which can possibly affect the maximum speed of your design. Fast=Good.


Top
 Profile  
Reply with quote  
 Post subject: Re: EPROM or EEPROM?
PostPosted: Fri Aug 28, 2015 9:46 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
You could also add a hardware switch, operated manually, like the gizmo on floppy discs or SD cards.

_________________
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  
 Post subject: Re: EPROM or EEPROM?
PostPosted: Tue Sep 01, 2015 3:34 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Yes, I think you have to look after write-protect in your own circuit - the chips don't do it for you. You might for example want to write protect only the top part of the chip, containing the vectors and boot code.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 55 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: