I have code for to shiftout data (works)
I use the variable PLL which is 16 bit (1 word).Code:enable_pin var portb.7 ' set for the enable pin data_pin var porta.1 ' set for the data pin clock_pin var porta.0 ' set for the clock pin PLL var Word high enable_pin shiftout data_pin , clock_pin , 0 , [PLL\16] low enable_pin
Now I want to send first the 16 bit (PLL1) and after to send 11 bit (PLL)
But don't work.
PLL var Word
PLL1 var Word
high enable_pin
shiftout data_pin , clock_pin , 0 , [PLL1\16]
shiftout data_pin , clock_pin , 0 , [PLL\11]
low enable_pin
How to send the first 5 bit(msb) and after to send the others 11 bit(lsb) with shiftout
Bookmarks