ATmega328P AVR Development Board (HCDVBD0008)

Atmel microcontroller development boards and accessories
Post Reply
admin
Site Admin
Posts: 865
Joined: Sun Aug 05, 2012 4:02 pm

ATmega328P AVR Development Board (HCDVBD0008)

Post by admin » Fri Jul 19, 2013 10:48 am

Image

Image

Description:

A simple low cost development board for experimenting with Atmel's popular ATmega328P 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).


1.Microcontroller chip:ATmega328P

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
Atmel AVR Studio.

WinAVR (Includes avrdude command line programmer).

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

Example code (Written in AVR Studio):

Code: Select all

/* FILE:    ATmega328P_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;
}

Post Reply

Return to “Atmel”