Reply to topic  [ 1 post ] 
ATtiny13 AVR Development Board (HCDVBD0005) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 670
Post ATtiny13 AVR Development Board (HCDVBD0005)
Description:

A simple low cost development board for experimenting with Atmel's popular ATtiny13A microcontroller. It can be powered from an external 5V power supply, or via a USB port using a mini USB cable (not supplied). The board also has a convenient ISP header which is compatible with most ISP programmers including our USBTinyISP programmer (HCARDU0002).


Microcontroller: ATtiny13A

Mini USB interface or contact pitch power supply

All the IO port leads and marked

On-board ISP interface

Reliable reset circuit


Schematic:
Image

Software:

Windows
Atmel AVR Studio.

WinAVR (Includes avrdude command line programmer).

Example avrdude command line using USBTinyISP programmer: avrdude -c usbtiny -p attiny13 -U flash:w:MyProject.hex

Example code (Written in AVR Studio):

Code:
/* FILE:    ATtiny13_Development_board_Test_Program.cpp
   DATE:    28/06/13
   VERSION: 0.1
   
REVISIONS:

26/06/13 Created version 0.1


This is a simple program that will flash the built in LED's D1 & D2 fitted to
development board. These are connected to DIO pins PB3 & 4. 

You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used directly for the purpose of selling products that
directly compete with Hobby Components Ltd's own range of products.

THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER.
*/


#include <avr/io.h>

/* Used to create a very simple delay loop */
long Delay;

int main(void)
{
   /* Set all port B pins to outputs */
   DDRB = 0xff;

   while(1)
   {
      /* Turn on LED D2 and turn off LED D1 */
      PORTB = 0b00001000;
      /* Wait a little */
      for(k=0; k <=50000; k++);
 
      /* Turn on LED D1 and turn off LED D2 */
      PORTB = 0b00010000;
      /* Wait a little */
      for(k=0; k <=50000; k++);
   }

return 1;
}


Fri Jun 28, 2013 2:28 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD