Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Mr.Choba
PostPosted: Dec 23, 2009 - 07:24 PM
Newbie


Joined: Dec 23, 2009
Posts: 1


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. Smile

The link: http://attiny13.lars.stonerocket.co.uk/ ... -attiny13/

P.s. If you have a good example in C for blinking a LED, please tell me.
 
 View user's profile Send private message  
Reply with quote Back to top
Moronic
PostPosted: Mar 12, 2010 - 04:06 AM
Rookie


Joined: Oct 22, 2009
Posts: 45


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
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Moronic
PostPosted: Mar 12, 2010 - 04:08 AM
Rookie


Joined: Oct 22, 2009
Posts: 45


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
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Koshchi
PostPosted: Mar 12, 2010 - 04:27 AM
10k+ Postman


Joined: Nov 17, 2004
Posts: 13848
Location: Vancouver, BC

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.
 
 View user's profile Send private message  
Reply with quote Back to top
surenmadane
PostPosted: Apr 19, 2013 - 12:25 PM
Newbie


Joined: Mar 16, 2013
Posts: 6


Code:
Code:
#include <avr/io.h>     
#include <util/delay.h>


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;
}
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits