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

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 667
Post ATmega8 AVR Development Board (HCDVBD0009)
Image

Image

Description:

A simple low cost development board for experimenting with Atmel's popular ATmega8A 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 [url=http://hobbycomponents.com/index.php/usbtinyisp-in-circuit-avr-atmel-programmer.html[/url](HCARDU0002).


1.Microcontroller chip:ATmega8

2.MiniUSB interface or pin power supply, on-board AMS1117-3.3 chip, jumper sets supply voltage to 3.3V or 5V.

3.On-board crystal oscillator, external crystal with 8M by default.

4.All the IO port are leaded out and marked.

5.On-board ISP interface.

6.Reliable reset circuit.

7.AD converter reference voltage with filter inductor and capacitor.


Software:

Windows
[url=http://www.atmel.com/tools/ATMELSTUDIO.aspx]Atmel AVR Studio[/url].

WinAVR (Includes avrdude command line programmer).

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

Example code (Written in AVR Studio):

Code:
/* FILE:    ATmega8_Development_board_Test_Program.cpp
   DATE:    19/07/13
   VERSION: 0.1
   
REVISIONS:

19/07/13 Created version 0.1


This is a simple program that will slowly pulse DIO pin PB3 high and low
repeatedly. 

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)
   {
      /* Set DIO pin PB3 high */
      PORTB = 0b00001000;
      /* Wait a little */
      for(Delay=0; Delay <=50000; Delay++);
 
      /* Set DIO pin PB3 low */
      PORTB = 0b00000000;
      /* Wait a little */
      for(Delay=0; Delay <=50000; Delay++);
   }

return 1;
}


Fri Jul 19, 2013 10:32 am
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