PDA

View Full Version : Help modifying an object.



Dgswaner
04-22-2008, 12:18 PM
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

Oldbitcollector (Jeff)
04-22-2008, 12:24 PM
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 (http://ucontroller.com/Propeller%20Protoboard%20Designs%20for%20the%20Beg inner.pdf)
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us (http://propeller.warrantyvoid.us)
Got an SD card? - PropDOS (http://www.orrtech.net/propdos/)
A Living Propeller FAQ - The Propeller Wiki (http://propeller.wikispaces.com/)
(Got the Knowledge? Got a Moment? Add something today!)

Dgswaner
04-22-2008, 12:44 PM
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