HI Henrik
I've looked lookup in the manual (I found a copy on the net, then realised there's one in the demo-program...doh).
So are we saying that to make the seven segment display show a '3' our loop count would be:00000011 '3' but that would LOOKUP a stored value of :%01001111 and display that?
So we'd have to 'load in' somewhere a table of values:
%01001111 3 b3
%01011011 2 b2
%00000110 1 b1
%00111111 0 b0
So:
FOR B0 = 0 TO 3 ' Count from 0 to 3
LOOKUP B0,[%00111111],B1 ' Get character number B0 from string to variable B1
SEROUT 0,N2400,[B1] ' Send character in B1 to Pin0 serially
NEXT B0 ' Do next character
*Shouldn't SEROUT be something like PAROUT (parallel out) namely display all seven bits on seven pins at once.*
Dave (struggling but trying).
Bookmarks