manitooo
Full Member level 2
with winAVR :
manitooo
BTW : the datasheet are fully provided with sample code (both in C and Asm) for all the differents contained blocks...
Code:
#include <io.h>
void main (void)
{
int i;
DDRA |= 0x01; //< put bit 0 of port 1 in output
while(1) //< forever loop
{
PORTA = PORTA ^ 0x01; //< toggle bit 0 of PORT A
i = 0x3FF; //< dummy value to countdown
while(i--); //< dummy countdown for waiting then loop
}
}
BTW : the datasheet are fully provided with sample code (both in C and Asm) for all the differents contained blocks...