[TUT] Basics Programming ATtiny13

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, I made this tutorial about programming on the ATtiny13. Most of it is now in Assembly, but I want to add C also in the future.

What do you think?

If you see mistakes, please report them. :)

The link: http://attiny13.lars.stonerocket...

P.s. If you have a good example in C for blinking a LED, please tell me.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Great Article.

How about a tutorial on how to setup the STK500 to program an ATtiny13?

Visit AVR Assembler site http://avr-asm.tripod.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Great Article.

How about a tutorial on how to setup the STK500 to program an ATtiny13?

Visit AVR Assembler site http://avr-asm.tripod.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there something wrong with the explanation in the manual?

Quote:
SPROG1.
Connect RST on PORTE to PB5 on PORTB.
Connect XT1 on PORTE to PB3(XTAL1 on 2323) on PORTB.

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Code:

#include       
#include  


int main(void) 
{ 
  

  DDRB = 0b11111111; 

  for ( ; 1==1 ; )  
  { 
    
   // leds spin clockwise 

    PORTB = 0b11101100; 
    _delay_ms(1000); 

    PORTB = 0b11101010; 
    _delay_ms(1000); 

    PORTB = 0b11101001; 
    _delay_ms(1000); 

    PORTB = 0b11110001; 
    _delay_ms(1000); 

    PORTB = 0b11011001; 
    _delay_ms(1000); 

    PORTB = 0b11011010; 
    _delay_ms(1000); 

    PORTB = 0b11011100; 
    _delay_ms(1000); 

    PORTB = 0b11110001; 
    _delay_ms(1000); 


  } 

return 1; 
}