Rabu, 27 Juni 2012

ATMEGA32 AVR course

this is a microcontroller course for atmega32 (the most chip used in practcal applications ) explained very simply .LEC (1) : http://www.mediafire.com/?ra9qyimd5ffu3k3  LEC (2) :http://www.mediafire.com/?s575hrb8ghh7lptLEC (3) : http://www.mediafire.com/?756db3de8255x93 LEC (4) : http://www.mediafire.com/?nezym2jaozqxy4y http://www.mediafire.com/?bqdw2m4i4agzj0w...

Watchdog Timer Concept

The Watchdog Timer is a timer connected to a completely separate RC oscillator within the microcontroller.If the watchdog timer is enabled, every time it counts up to the program end, the microcontroller reset occurs and program execution starts from the first instruction. The point is to prevent this from happening by using a specific command. The whole idea is based...

Simple Programmer for ATMEGA8

>> ATMEGA 8 used a lot in arduino kits and in this post we will show you how to make a simple programmer for atmega8. Main components : 1) components for the programmer.2) components for the boardSchematic diagram : The board circuit diagram :>> to use this programmer you have to use PonyProg  software which can be downloaded at the following link...

Real Time Clock using ATMega16

DescriptionThe ATMega16 chip has a real-time counter that operates asynchronously when a 32,768hz watch crystal is connected to it, providing a real-time clock. The watch crystal needs to connect to pins TOSC1(pin 28) and TOSC2(pin 29).    Hardware requirementsATMega1632,768 KHz crystalLCD display>> The following software (using codevision avr compiler...

Speed and Direction Control of a DC motor

>> The pulse width modulation (PWM) mode in timers of ATmega 16 have the main purpose of controlling the speed of a dc motor.>> This is a simple program where the PWM is used to gradually increase the speed of the dc motor until reach max speed.>> Also the speed of the dc motor is decreased gradually until the motor stops.Program Specification 1- The...

Selasa, 26 Juni 2012

STK 500 troubleshooting problems

 Problem  A problem occured while executing the command. make sure that you are using the correct programming method.current mode is ISP .............. SOLUTION  ( 1 )  Step 1:>> Go to the tab HW settings in the connection dialog and set the clock generator to max (3.6 MHZ) as shown in the following imageStep 2:>> Go to the main tab and...

Testing UART of Atmega16

Here is a simple program to test the UART communication of the atmega 16>> The UART in atmega 16 can send frames ranges from 5 bits to 9 bits>> In this program we use the assynchronous mode>> The frames used 8 and 9 bits.UART  transmitter code// USART initialization// Communication Parameters: 8 Data, 1 Stop, Even Parity// USART Receiver: Off//...

Testing SPI communication

Here is a simple code written in c to test the SPI communication using atmega16 the avr code vision compiler is used here.>> In SPI communication : one uc is programmed as a master (initiates communication) and the other uc is programmed as a slave.Here is the master C code// SPI initialization// SPI Type: Master// SPI Clock Rate: 1000.000 kHz// SPI Clock Phase:...
Two types of AVR programmers can be built :1)Parallel port2)Serial portSerial port programmer(reference: At-Prog) is shown here. Main advantage of using serial port is you can have cable length upto 2m. You can use PonyProg2000 software to program your AVR using this programmer. Serial port generates +- 12V on its pins, thus diodes and zener diode is used to clamp +12V to...
Two types of AVR programmers can be built :1) serial port.2) parallel port. PARALLEL PORT Following circuit diagram shows ultra simple AVR microcontroller (SOURCE: unkown). It requires very few components and its very simple to build on general purpose matrix PCB. You can use PonyProg2000 software to program your AVR using this programmer.NOTE: The ponyprog2000...

Getting started with Atmel microcontroller

Here is a simple course to learn how to start using atmel microcontrollers.We will use atmega16 microcontroller.Here is a link for atmega16 datasheet :datasheetCourse contents1- Introduction.2-Memories in uc.3-I/O ports.4-External and Internal interrupts.5-Timers.6-clock sources and sleep modes.7-reset sources and watch dog timer.8-communication using SPI or USART.9-dealing...