Shop OBEX P1 Docs P2 Docs Learn Events
Newbie uOLED 96 PROP SD card question — Parallax Forums

Newbie uOLED 96 PROP SD card question

HansMHansM Posts: 6
edited 2008-10-08 23:12 in Propeller 1
Hello

I just recieved my uOLEd96 PROP. Controlling video works fine, I can do what I bought this for. Now I would like to simply write some data to the microSD card. As far as I understand I could use the FAT16 routines from the Object exchange, but the pins are different...

Am I correct if I simply change the lines in sdspiqasm.spin

do := basepin++
clk := basepin++
di := basepin++
cs := basepin

change into:

do:= 17
clk:= 15
di:= 16
cs:= 14

and then use fsrw.spin and sdspiqasm.spin and:

sdfat.mount(0)
sdfat.popen(string("newfilex.txt"), "w")
sdfat.pputc("D")
sdfat.pputc("a")
sdfat.pputc("t")
sdfat.pputc("a")
sdfat.pputc(13)
sdfat.pclose

Do I make any mistakes if I try this?? Thanks a lot for your help! I do not want to have a meltdown....confused.gif· of my uOLED PROP!!!
Hans

Comments

  • rjo_rjo_ Posts: 1,825
    edited 2008-10-06 20:21
    you won't have a meltdown ... you have to get the pin assignments right...and put them in the right place. if you have any problems just give a shout

    rich
  • HansMHansM Posts: 6
    edited 2008-10-08 18:18
    Rich,

    Thanks for your reply, makes me feel a little more secure, but...exactly the pin assignments and to put them at the right place. Did I read the available info right?? Hope you have experience with the uOLED 96 PROP?

    Thanks for your reaction!

    Hans
  • CarlosFandangoCarlosFandango Posts: 67
    edited 2008-10-08 22:20
    I'm working on exactly the same thing right now and have solved a load of problems (with help from this forum I might add!). I have modded many of the objects in the OBEX to suit my purposes and all is working well. If you are stuck on anything I might be able to assist you.

    -CF
  • CarlosFandangoCarlosFandango Posts: 67
    edited 2008-10-08 22:32
    Actually I just realised you are about to make the same mistake that I did. The uOLED-PROP schematic is misleading in respect of how the pins are connected to the SD socket, in so far as the DO and DI pins can be considered to be the wrong way round. You need to make the following mods to sdspiqasm:

    do := 16
    clk := 15
    di := 17
    cs := 14

    And it will function correctly. Also note that the uOLED-PROP will not run at 8MHz plus a PLL16x - it has to be 8MHz plus PLL8x (otherwise the system clock would be 128MHz which makes the prop unstable, or so I have been reliably informed). That means that the clock frequency in sdspiqasm should be set to 64_000_000 at the end of the object, as in

    clockfreq long 64_000_000

    otherwise it will not run at its maximum possible speed. At least, I believe this to be correct.
  • rjo_rjo_ Posts: 1,825
    edited 2008-10-08 23:12
    For this and for lots of other issues that you will run into get a copy of Prop-Basic... that's where I found the pin assignments.

    You also have make a change in one of the supporting objects... not on the right machine at the moment...
Sign In or Register to comment.