Tuesday, December 8, 2009

blinking led with attiny13

/*****************************************************
Project : blinking led
Version :
Date : 1/6/2007
Author : SIVA JOGI NAIDU
Chip type : ATtiny13
Clock frequency : 8.000000 MHz
Memory model : Tiny
External SRAM size : 0
Data Stack size : 16
*****************************************************/
#include
#include
void main(void)
{
PORTB=0x00;
DDRB=0x1F;
TCCR0A=0x00;
TCCR0B=0x00;
TCNT0=0x00;
OCR0A=0x00;
OCR0B=0x00;
GIMSK=0x00;
MCUCR=0x00;
TIMSK0=0x00;
ACSR=0x80;
ADCSRB=0x00;
while (1)
{delay_ms(500)
PORTB = 0xFF;
delay_ms(500)
PORTB = 0x00;
};
}

No comments:

Post a Comment

Popular Posts