6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon May 20, 2024 11:10 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon May 20, 2024 7:53 am 
Offline

Joined: Wed Nov 16, 2011 9:39 am
Posts: 34
I have been glancing at the Winbond NOR-flash SPI devices as a simple means of a future storage/harddrive solution. They are ultra small and can store 16 MB of data. But my system is running at 5V and they are 3.3V devices.

Now, since I am bit-banging SPI using a WDC 65C22S, would it be possible to translate 5V signals to 3.3V (and the opposite for the MISO signal) using resistors or some other means of passive components?

I know resistors introduce some sluggishness in the signal, but I don't really know how much or how to measure/calculate that. I am currently running at 3.6864 MHz and as each write to the 65C22 port will take at least 4 cycles this would be ~1000 ns per change (1000/(3.6864/4)).

EDIT: Perhaps the use of a HCT-device in between MISO on the device and the MISO pin on the 65C22 is enough to handle the input?
EDIT2: The 74HCT125 quad buffer might be a good candidate for MISO, to keep the three-state behavior of the input pin for up to four devices.

/Johan


Top
 Profile  
Reply with quote  
PostPosted: Mon May 20, 2024 1:04 pm 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1414
Location: Scotland
There are many small level shifters designed to connect (e.g.) Arduino to SD memory cards. The protocol at the simple level is SPI. I use one on my Ruby boards - the 'host' is an ATmega and it all runs at 5v. (SPI clock at 8Mhz)

e.g. https://www.sparkfun.com/products/13743

The schematic is there too..

Now, while I have no direct experience of SPI Flash/EEPROM devices, I do have a lot of experience with SPI access to SD cards - and it's not hard, provided you can arrange your data in 512 byte chunks..

Or just get one of these and pull out the pins used for SPI... Or check the schematic, etc.

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
PostPosted: Mon May 20, 2024 5:09 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1002
Location: Canada
you can make a bi-directional level-shifter with a single MOSFET.

While not an ideal choice I have made 5V<>3.3V shifter with a 2N7000 and two resistors.

Just google "MOSFET level shifter"

_________________
Bill


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

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