Shop OBEX P1 Docs P2 Docs Learn Events
23K256 32KB ram chip driver — Parallax Forums

23K256 32KB ram chip driver

ElectrodudeElectrodude Posts: 1,670
edited 2011-12-22 19:37 in Propeller 1
Hi,

I'm trying to modify Tim Moore's N256S0830HDA SPI SRAM driver to work with 23K256 32KB ram chips. I simplified memtest.spin to only support 4 chips and to only test 8 bytes of memory. The first nibble gets missed by the driver and the last one is garbage. I hardly understand the Prop's counters and couldn't figure out how to delay the first clock pulse. I tried moving the mov ctra,ctramode on line 224 of spisram4.spin to different places and commenting nops when necessary, but I still couldn't get it to work.

Bill Henning's FlexMem is supposedly writing a driver for this, but I couldn't find it. If it was released, I would appreciate a link to it.

Thanks,
Electrodude

Comments

  • Bill HenningBill Henning Posts: 6,445
    edited 2011-12-22 16:10
    Hi,

    I got sidetracked with other projects :)

    I will try to dust it off in January; I did not get the counter version running yet.

    Merry Xmas,

    Bill
    Hi,

    I'm trying to modify Tim Moore's N256S0830HDA SPI SRAM driver to work with 23K256 32KB ram chips. I simplified memtest.spin to only support 4 chips and to only test 8 bytes of memory. The first nibble gets missed by the driver and the last one is garbage. I hardly understand the Prop's counters and couldn't figure out how to delay the first clock pulse. I tried moving the mov ctra,ctramode on line 224 of spisram4.spin to different places and commenting nops when necessary, but I still couldn't get it to work.

    Bill Henning's FlexMem is supposedly writing a driver for this, but I couldn't find it. If it was released, I would appreciate a link to it.

    Thanks,
    Electrodude
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-12-22 17:01
    Electrodude,

    I wrote both a single chip and an eight chip driver for the 23K256.

    There not anywhere near as nice as the other drivers around but one thing they do have going for them is they're easy to understand (IMO).

    I didn't use the counters at all. I doubt either the single chip or the eight chip driver would be hard to modify to use four chips.

    I hesitated to reply to this thread since I know there are so many better drivers. There are also links to other 23K256 drivers in the same thread where I posted my drivers.

    If you do decide to modify one of my drivers and need help understanding them, just let me know. I'll be glad to help out.
  • ElectrodudeElectrodude Posts: 1,670
    edited 2011-12-22 19:14
    @Bill Henning: can't wait!
    @Duane Degn: I'll try to made your 8 bit driver work with only 4 chips, but I would prefer to use counters because they're faster and I really should learn how to use them.
  • Mike GreenMike Green Posts: 23,101
    edited 2011-12-22 19:37
    The Winbond flash driver in the ObEx also handles up to two 23K256 SPI SRAM.
Sign In or Register to comment.