+ Reply to Thread
Results 1 to 6 of 6

Thread: Newbie uOLED 96 PROP SD card question

  1. #1

    Default Newbie uOLED 96 PROP SD card question

    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....· of my uOLED PROP!!!
    Hans
    Last edited by ForumTools; 10-02-2010 at 05:06 AM. Reason: Forum Migration

  2. #2

    Default

    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
    Last edited by ForumTools; 10-02-2010 at 05:06 AM. Reason: Forum Migration

  3. #3

    Default

    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
    Last edited by ForumTools; 10-02-2010 at 05:06 AM. Reason: Forum Migration

  4. #4

    Default

    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
    Last edited by ForumTools; 10-02-2010 at 05:06 AM. Reason: Forum Migration

  5. #5

    Default

    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.
    Last edited by ForumTools; 10-02-2010 at 05:06 AM. Reason: Forum Migration

  6. #6

    Default

    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...
    Last edited by ForumTools; 10-02-2010 at 05:06 AM. Reason: Forum Migration

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts