Currently browsing

April 2012

ATmega 16 problem PC2 to PC5 always high

ATmega 16 problem PC2 to PC5 always high I have about 5 atmega 16 microcontrollers with PC2 to PC5 pins are always high even if i programmed them as outputs and make PORTC=0x00.this problem occurs when the JTAG interface is enabled in ATmega 16. To get rid from this problem …

ATMEGA32 AVR course

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/?s575hrb8ghh7lpt LEC (3) : http://www.mediafire.com/?756db3de8255x93 LEC (4) : http://www.mediafire.com/?nezym2jaozqxy4y http://www.mediafire.com/?bqdw2m4i4agzj0w LEC (5) : http://www.mediafire.com/?gop9q9lgwdsq8me LEC (6) : http://www.mediafire.com/?t8il5gg2qcom6aj   LEC (7) …

Watchdog Timer Concept

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 …

Simple Programmer for ATMEGA8

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 board Schematic diagram :  The board circuit diagram : …

Real Time Clock using ATMega16

Real Time Clock using ATMega16 Description The 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 requirements ATMega16 32,768 KHz crystal LCD …

JSP vs Servlet

A somewhat oversimplified view of servlets is that they are Java programs with HTML embedded inside of them. A somewhat oversimplified view of JSP documents is that they are HTML pages with Java code embedded inside of them. For example, compare the sample servlet shown below: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public …

Testing UART of Atmega16

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 …

What Is CGI?

As you traverse the vast frontier of the World Wide Web, you will come across documents that make you wonder, “How did they do this?” These documents could consist of, among other things, forms that ask for feedback or registration information, imagemaps that allow you to click on various parts …

Testing SPI communication

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 …

Speed and Direction Control of a DC motor

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 …

STK 500 troubleshooting problems

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 …

There Is Always Something More to Learn

When interviewing potential software engineers, most people care for technical competence, for some degree (as a proof of the ability to finish a project), and for a social fit with the current team. Further aspects worth looking for include: amount and kind of project experience; experience in different roles and …