ARRGH i didn't notice how you did your code...
you mustCode:for digit = 1 to 5 current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07] SHIFTOUT datapin, clkpin, MSBFIRST, [digit] 'digit adress SHIFTOUT datapin, clkpin, MSBFIRST, [current] 'digit data PULSOUT load1, 3 next
enable the load line
use the shiftout
disable the load line
how about using something like
but more than likelyCode:for digit = 1 to 5 current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07] LOW Load1 SHIFTOUT datapin, clkpin, MSBFIRST, [digit] 'digit adress SHIFTOUT datapin, clkpin, MSBFIRST, [current] 'digit data HiGH load1 PAUSE 10 next
EDIT: It remind me a previous post => http://www.picbasic.co.uk/forum/show...tach%2A+max%2ACode:for digit = 1 to 5 current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07] LOW Load1 SHIFTOUT datapin, clkpin, MSBFIRST, [digit,current] HiGH load1 PAUSE 10 next




Bookmarks