Shop OBEX P1 Docs P2 Docs Learn Events
Thank you to whoever wrote Application Note AN012. — Parallax Forums

Thank you to whoever wrote Application Note AN012.

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2012-05-21 12:05 in Propeller 1
I'm not sure who you are, but Andre' LaMothe you made my life much easier with that Application Note in one of my last designs.

http://www.parallaxsemiconductor.com/sites/default/files/appnotes/AN012-SRAM-v1.0_0.pdf

Big Thank You!

OBC

Comments

  • jazzedjazzed Posts: 11,803
    edited 2012-05-21 09:34
    Looks like Andre' wrote the code about a year ago. He even includes a cache :)
  • average joeaverage joe Posts: 795
    edited 2012-05-21 09:52
    That is a great appnote! I've read it a few times trying to figure out how to do a couple different things. I will second the "Thank You!" now that someone mentioned it.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2012-05-21 09:58
    Ah! Didn't think to check the code for the name.. Duh!

    Thank You Andre' LaMothe!

    You'll see this circuit in a couple of the new GG products. This Appnote made it painless!
     
     SPI_CS    
     SPI_SCK   
     SPI_MOSI  
     SPI_MISO                                       3.3V (VCC)
                                                           
                        Microchip 23K256 32K SRAM      ┣─────┐
                                ┌──────────┐           │    0.1uF (bypass)
            SPI_CS ──────── CSn│1        8│Vcc ───────┫     
                                │          │           │    GND 
            SPI_MISO ────── SO │2        7│HOLDn ─────┘
                                │          │
                             NC │3        6│SCK ─────── SPI_SCK
                                │          │                                
                        ┌─── Vss│4        5│SI ──────── SPI_MOSI
                        │       └──────────┘
                        │
                        
                       GND
    
    
    OBC
  • jazzedjazzed Posts: 11,803
    edited 2012-05-21 11:02
    You'll see this circuit in a couple of the new GG products. This Appnote made it painless!

    Great! As a DIP I assume? Then people can use 1MB SPI Flash when they exhaust propeller memory instead of switching to another chip :)
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2012-05-21 11:23
    Yes, It didn't cost really anything to add this option to a couple products..
    jazzed wrote: »
    Great! As a DIP I assume? Then people can use 1MB SPI Flash when they exhaust propeller memory instead of switching to another chip :)

    Quickplayer "Extreme" has it connected as follows..
      SPI_CS                 = 19 ' SPI chip select (active low)
      SPI_SCK                = 16 ' SPI clock from master to all slaves
      SPI_MOSI               = 17 ' SPI master out serial in to slave
      SPI_MISO               = 18 ' SPI master in serial out from slave
    

    Can I use this with your C compiler?

    OBC
  • jazzedjazzed Posts: 11,803
    edited 2012-05-21 12:05
    ...
    Can I use this with your C compiler?

    OBC


    Yes, Propeller-GCC programs can use it. All you need is a config file to set the pins - the driver is already written.
    It will be faster than running from eeprom or sd card.
Sign In or Register to comment.