Shop OBEX P1 Docs P2 Docs Learn Events
Help modifying an object. — Parallax Forums

Help modifying an object.

DgswanerDgswaner Posts: 795
edited 2008-04-22 05:44 in Propeller 1
I'm trying to get the PropDOS object to work, but to do so I need to change the pin assignments. it's written in assembly so I can't tell were and what to change. I would really appreciate some help.

the defaults are:

p0--DO
p1--CLK
p2--DI
p3--CS

I need:

p16--DO
P17--CLK
p18--DI
p19--CS

There aren't any constants that I can change and I already had my 0-3 pins soldiered as well as 16-19. It's actually the SDSPIASM.SPIN that I need changed.

Thanks I really appreciate it.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster

DGSwaner

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-04-22 05:24
    Why not change the pin assignments in the CON section of PropDOS itself?

    Personally, I'm a fan of using 16..19 for SD because it opens 0..7 for things
    like game controllers, and it most compatible with Hydra stuff (games)

    OBC

    CON
      '' I/O SETTINGS
    
       _clkmode  = xtal1 + pll16x
       _xinfreq  = 5_000_000
      
      '' Adjust for typical location of the keyboard. Usually 26 on the demoboard
      
       keyboard  = 26
       video     = 12
       
      '' Typical Demoboard/Protoboard Configuration
      
       spiDO     = 16
       spiClk    = 17
       spiDI     = 18
       spiCS     = 19
    
    




    Dgswaner said...
    I'm trying to get the PropDOS object to work, but to do so I need to change the pin assignments. it's written in assembly so I can't tell were and what to change. I would really appreciate some help.

    the defaults are:

    p0--DO
    p1--CLK
    p2--DI
    p3--CS

    I need:

    p16--DO
    P17--CLK
    p18--DI
    p19--CS

    There aren't any constants that I can change and I already had my 0-3 pins soldiered as well as 16-19. It's actually the SDSPIASM.SPIN that I need changed.

    Thanks I really appreciate it.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • DgswanerDgswaner Posts: 795
    edited 2008-04-22 05:44
    wow oddbit I think I owe you dinner or something, for wasting so much of your time tonight. and I think I need to go to bed, I'm making too many dumb mistakes. Sorry it's not PropDos but "FAT16 routines with secure digital card layer" Object http://obex.parallax.com/objects/92/ I was going to use PropDos but it requires a keyboad, which I can't easily connect because of connections I have added. This object doesn't have constants for the pin settings. I think I'll Just rewire my board tomorrow, that way I won't be limited on other objects too.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster

    DGSwaner

    Post Edited (Dgswaner) : 4/22/2008 5:58:32 AM GMT
Sign In or Register to comment.