This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Chip Select Chip suggestion

Hi!

As my first post on this forum, I'd like to ask a question about chip select interfacing.

I'm designing a board which will include a microcontroller and a SRAM module.
As you know, both the microcontroller and the SRAM have a chip select pin.
The microcontroller will use a SPI port with a Chip Select pin to drive the Chip Select pin of the SRAM high or low.

I want to keep the SRAM powered with a goldcap/supercap for a while when the power supply of the microcontroller dies out.
The /SS pin is low active. This also means that the /SS pin will be 0V at a power failure..
The problem is that I need to keep the /SS pin of the SRAM in a high-state due to its SPI characteristics.
The solution to this point is to simply add a pull-up resistor on the /SS line between the microcontroller and the SRAM and hook it up to the goldcap.
But when I look into the datasheet of the microcontroller, it tells me that the I/O pins may never be any more than Vcc ± 0.3V. As Vcc is 0V in a power down-state, the input can never be more than 0.3V.
So when I use the above mentioned solution, the I/O pin of the processor will be 3V3 and probably will be fried..

Any (chip) suggestions to this interfacing problem?

  • I've got the solution to the /SS pin high-state.

    I figured out an optocoupler would be to slow, a relay would be too expensive and a few gates would be too bulky.
    So the solution to this is to use a supervisor IC with an Enable out-pin.
    This IC would detect the voltage level going low, while being powered from the goldcap.
    The supervisor IC is able to maintain a high-state on the /SS pin so the SRAM would not be in running state.