Rei Vilo 695 Posted June 5, 2013 Share Posted June 5, 2013 The 23LC1024 1 Mbit SPI SRAM module from Microchip features SDI and SQI interfaces. The 23A1024/23LC1024 also supports SDI (Serial Dual) and SQI (Serial Quad) mode of operation when used with compatible master devices. As a convention for SDI mode of operation, two bits are entered per clock using the SIO0 and SIO1 pins. Bits are clocked MSB first. For SQI mode of operation, four bits of data are entered per clock, or one nibble per clock. The nibbles are clocked MSB first. As the clock rate can go up to 20 MHz, SDI Quote Link to post Share on other sites
spirilis 1,265 Posted June 5, 2013 Share Posted June 5, 2013 I'd imagine bitbang is the only way with the G2553. I've read that before, sounds fancy, probably higher-end MCUs only that have such drivers... Very curious though if the Tiva/Stellaris can do it with its SPI driver. Quote Link to post Share on other sites
Rei Vilo 695 Posted June 5, 2013 Author Share Posted June 5, 2013 Yes, bit-banging seems the solution, but I don't want to spend more time coding and decoding the bytes to and from the 2 or 4 lines than using a plain mono-canal SPI. On the SDI configuration, the first line gets the even bits while the second line gets the odd bits. On the SQI configuration, first line gets bits 0 and 4, second line bits 1 and 5, third line bits 2 and 6 and forth line bits 3 and 7. Quote Link to post Share on other sites
spirilis 1,265 Posted June 5, 2013 Share Posted June 5, 2013 Seems simple enough, especially SQI where you just make sure Px.0 is the first line, Px.1 second, etc... then do something like: PxOUT = byte; <strobe clock> PxOUT = byte >> 4; <strobe clock> or whatever... That might actually work best on a G2553 PW28 with PORT3 dedicated to the I/O lines somehow. But yeah, somehow I believe the code/instruction overhead would make it less worthwhile than using SPI at SMCLK=MCLK. Rei Vilo 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.