Hi All,
I'm currently using Picaxe Editor 6.1.0.0 and playing with a Maxim 7219 LED Driver chip and EVERYTHING is working quite good so far...
However, regarding the SHIFTOUT command, i can't seem to get the "LSBFirst_L" option to work.
Using "MSBFirst_L" works fine and i see the appropriate LED patterns light up as i expect.
When i change to LSBFirst_L, no LEDs come on at all.
Is this a bug in the new editor??????
I'd prefer to send my data LSB first to make my code easier to read in future if i can see the LSB nibble is sent before the MSB nibble when sent to the LEDs.
At the moment, i am sending my code "backwards" to make it appear correctly on the LEDs.
Yes, I have confirmed all my wiring order of the row/column bits are all in correct order. ;-)
NOTE: i'm not using the hardware spi pins etc, just some basic Port.C pins.
Here's my code setup, and this works until i try to use the LSBFirst_L option ;-(
I'm currently using Picaxe Editor 6.1.0.0 and playing with a Maxim 7219 LED Driver chip and EVERYTHING is working quite good so far...
However, regarding the SHIFTOUT command, i can't seem to get the "LSBFirst_L" option to work.
Using "MSBFirst_L" works fine and i see the appropriate LED patterns light up as i expect.
When i change to LSBFirst_L, no LEDs come on at all.
Is this a bug in the new editor??????
I'd prefer to send my data LSB first to make my code easier to read in future if i can see the LSB nibble is sent before the MSB nibble when sent to the LEDs.
At the moment, i am sending my code "backwards" to make it appear correctly on the LEDs.
Yes, I have confirmed all my wiring order of the row/column bits are all in correct order. ;-)
NOTE: i'm not using the hardware spi pins etc, just some basic Port.C pins.
Here's my code setup, and this works until i try to use the LSBFirst_L option ;-(
Code:
#PICAXE 40X2
#NO_DATA
#NO_TABLE
;
;
; Assign the Control signals from PICAXE to MAX7219
SYMBOL Clock_pin = C.7
SYMBOL Load_pin = C.6
SYMBOL Data_pin = C.5
;
;
; Setup all the port bits to a clean state...
dirsA = $FF ;11111111, set PortA to all OUTPUTS
dirsB = $FF ;11111111, set PortB to all OUTPUTS
dirsC = $FF ;11111111, set PortC to all OUTPUTS
dirsD = $FF ;11111111, set PortD to all OUTPUTS
outpinsA = $00 ;00000000, clear PortA outputs to all 0's
outpinsB = $00 ;00000000, clear PortB outputs to all 0's
outpinsC = $00 ;00000000, clear PortC outputs to all 0's
outpinsD = $00 ;00000000, clear PortD outputs to all 0's
;
;======================================
; All the 7219 config codes are done here, and all work!
;======================================
;
SHIFTOUT Clock_pin, Data_pin, MSBFirst_L, ($01, $14) : PULSOUT Load_pin, 1 ; <---- Works perfectly!
;
SHIFTOUT Clock_pin, Data_pin, LSBFirst_L, ($01, $14) : PULSOUT Load_pin, 1 ; <---- Does not Work at all!
;
;At the moment i need to send out a "41" instead of "14" to make the correct LED come on, but in future, this backward data makes
;my whole LED map unclear to determine which led and in what order they will turn on/off
;I'd really prefer to use LSBFirst to do this reversal and keep things clear ;-)
;