Hi Rudy,
Why do you think I'll be seeing a dark line. I think that as
long as the 8 bit word keeps shifting a bit at a time, I'll
always be able to see the entire message.
{Quote hidden}>> I'm trying to find a way of displaying a message in a 5x7 LED
>> array. Basically, I don't have a good idea of how this is
>> usually done, but since I have worked a little bit with the
>> 16C84, I thought I give it a try.
>>
>> I was thinking about having a message array 32 bits long by
>> 5 bit wide containing the information I want to display. I would
>> then take each one of the 32 bit words and rotate sequentially
>> bit by bit and display the 7 most significant bits after each
>
>And see a dark line every 8 leds (horizontal) ? I would not do that.
>Just shift every line (of 4 * 8 bits) one bit to the left. you could shift
>the new data (one bit) in when shifting the right-most byte. Repeat this
>for every line.
Why are you using the rrf instruction?
{Quote hidden}>A 32-bit rotation (Left) :
>
>movwf {data to shift in}
>rrf {data to shift in}
>rlf {line1+3}
>rlf {line1+2}
>rlf {line1+1}
>rlf {line1+0}
>rrf {data to shift in}
>rlf {line2+3}
>rlf {line2+2}
>rlf {line2+1}
>rlf {line2+0}
>
>etc.
>
>{data to shift in} contains 5 bit of data. Bit 0 is the bit shifted into
>line #1. Bit 1 is the bit shifted into line #2. etc etc etc.
^
|
What 5 bits here are you talking about?
{Quote hidden}>
>{Line1+3} is the right-most byte to be displayed (bit 0 at the right-most
>position, bit 7 at the left-most).
>
>Greetz,
> Rudy Wieser
>
>P.s.
> Need more info ? Just tell me.
>