Hi guys
I need more ram so I bought the Microchip 23k256:
http://www.microchip.com/wwwproducts/en/23K256
I can't get anything out of the MISO pin of the spi ram. (Or I didn't put the data in the first place). Here is part of the code, I am just writing to the status register and reading it back for quick test.
I can confirm my SPIPut2() and SPIGet2() work correctly, as there is a eeprom on the same bus, and I can read and write to it no problem. I can see in a scope that my CS, SCK and MOSI pin is working correctly. I Just can get anything from the MISO pin.
It must be something really stupid that I over look. any thought?
Thanks guys
I need more ram so I bought the Microchip 23k256:
http://www.microchip.com/wwwproducts/en/23K256
I can't get anything out of the MISO pin of the spi ram. (Or I didn't put the data in the first place). Here is part of the code, I am just writing to the status register and reading it back for quick test.
C:
EE_nCS = 0;
SPIPut2(SPI_SRAM_WRSR);
SPIPut2(SPI_SRAM_BYTE_MODE | SPI_SRAM_DIS_HOLD);
//SPIPut2(0x01);
EE_nCS = 1;
DELAY_10us(1);
EE_nCS = 0;
uint8_t status;
SPIPut2(SPI_SRAM_RDSR);
status = SPIGet2();
EE_nCS = 1;
It must be something really stupid that I over look. any thought?
Thanks guys

