I really wonder if the skimask's example will work because is the same shiftout command.
I have also ordered a couple of the modules (the high power ones) but will be delay and cannot test them right now.
Ioannis
I really wonder if the skimask's example will work because is the same shiftout command.
I have also ordered a couple of the modules (the high power ones) but will be delay and cannot test them right now.
Ioannis
Skimask,
Thankyou for doing that... From the little bit of C that I have learnt in the last 24 hours, that looks good.
I did try nSEL last night with a couple of code attempts, but I did not try it consistantly.
I did also try to use the SSP last night for a short period. No luck yet, but I didn't expect it to be easy, I haven't used the SSP yet.
I am off to work now, but will try again later today.
Thanks for the assistance.
Last edited by davewanna; - 9th June 2008 at 23:09.
I am just getting started on this again tonight...
I the example from Skimask above, the variable CMD is I assume an array of 16 bits? so I should declare..
Am I correct?Code:CMD VAR bit[16]
My next question is how do I get my word variable into series of 16 bits?
Code:dout = $D0F7 for n = 16 to 0 step -1 CMD[n] = %dout.15 dout << 1 next n
Keep in mind I am almost certain that the above example will not work... It's just to show that I am trying, not just asking everyone else to make my project for me...
My current attempt is....
This results in ... 1000000111101110 ... and I want ... 1100000011110111 ...Code:cmd var byte[15] dout = $C0F7 ... lcdout $fe,$C0," " for n = 16 to 1 step -1 CMD.0[n] = dout.15 dout = dout << 1 lcdout $fe,14,bin dout.15 next n
i.e. It has chopped the 1 off the start, and added a 0 on the end...
Bookmarks