gopalakrishnan
Joined: 18 Jun 2010 Posts: 25
|
8x8 running message display |
Posted: Mon Jan 03, 2011 1:26 am |
|
|
Code: |
main(){
char cnt, col;
set_tris_b(0); /* set port_b as outputs */
set_tris_a(0); /* set port_a as output */
port_b = 0; /* ZERO port_a & port_b */
port_a = 0;
for( ;; )
{
col = 1;
for(cnt = 0;cnt < 5;cnt++)
{
port_b = pat[cnt];
port_a = col;
delay_ms(1);
col<<=1; } } }
|
hai to all I want to know what is the purpose of col<<=1 ? What is column masking ? |
|