Newbie uOLED 96 PROP SD card question
HansM
Posts: 6
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
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
Comments
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
-CF
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.
You also have make a change in one of the supporting objects... not on the right machine at the moment...