Hi all,
Can someone explain the following code,kindly explain line by line.Since i'm new to hardware programming.
/* Initialize timer for GPIO toggling timing */ enable_timer( 0 );
counter = 0; FIO2SET = 1 << counter; // #define FIO2SET (*(volatile unsigned long *)(FIO_BASE_ADDR + 0x58)) while ( 1 ) { if ( timer0_counter >= (0x20 * counter) ) { FIO2SET = 1 << counter; counter++; if ( counter > 8 ) { counter = 0; timer0_counter = 0; FIO2CLR = 0x000000FF; } } } return 0; }
Chethan
So what "logics", exactly, are you not "getting"?
You do have a working understanding of the 'C' programming language, don't you?
blog.antronics.co.uk/.../
Maybe not: http://www.keil.com/forum/58482/