Get Adobe Flash player
FacebookTwitterGoogle+
English Arabic French German Italian Portuguese Russian Spanish

Did you know?

An Electric eel can produce an electric shock of up to 650 volts at one ampere.
 

Help us stay online:

small donate

 RS232 Connector EndThis is basic example on how to send and receive one character over AVR UART peripheral. It is easy to understand and if you have not worked with UART on microcontroller before, it is good starting point. In article AVR serial port UART register usage we have explained details of register usage. Here we will give one example in order to see complete project and test this on your microcontroller.

 

 

Read more...

INT0 taster AVRWhen reading pin state it is often needed to react very fast on pin state change.
For this purpose external interrupt is used. External interrupt occurs when dedicated pin changes state. It can be triggered on rising, falling, or both edges of signal state. In this example we will use external interrupt  of AVR microcontroller INT0.  

 

 

 

Read more...

push button debouncing exampleThis article will use one digital input pin (PortA pin 3) to readout state of push-button connected to it. Pull-up resistor must be connected to this pin to differentiate voltage on pin when push-button is pressed and when it is released. In short period of time when push-button is pressed, voltage on input pin connected to is very noisy and this can make problems. This is shown on picture on left side. Microcontroller would interpret this as multiple push-button pressing and releasing. To eliminate this we use debouncing.

 

Read more...

pwmUsing PWM with microcontroller is often needed in projects. Whether you want fine control of electromotor speed, or you want to change intensity of LED lamp or you simply need analog output and do not want to buy expensive Digital/Analog converter (DAC), PWM is ideal solution. In this example we will show how to configure and change parameters of PWM output on AVR microcontroller.

 

 

Read more...

Subcategories

  • I/O pins

     

    Tutorials of how to drive input/output pins of AVR microcontroller are placed here. GPIO pin you need for every microcontroller for interaction with outside world. Detailed description of register usage with example code writen for codevision AVR compiler is placed here for you to download, test and learn thru examples.

     

  • Introduction

     

    General talk about AVR microcontrollers. Here is description of this microcontroller family. Discussion on what compiler to use and why. Basic steps what you need to start programming microcontrollers. This is starting point when you did not work with AVR before. It will guide you thru simple examples from basic steps to advanced level programming.

     

  • Fuse Bits

     

    Fuses are an extremely important part programming a chip, but are rarely explained thoroughly. You only need to set them once, but if you don't do it right, it's a disaster! Here you will get all needed information on how to correctly program fuse bits.

     

  • AVR UART

     

    Articles explainin usage ir Uart and practical examples will be places in this category

     

  • AVR Analog/Digital converter ADC

     

    Examples on AVR ADC module usage in various modes will be placed here.

     

  • AVR PWM

     

    Using PWM with microcontroller s often needed in projects. Whether you want finecontroll of electromotor speed, or you want to change intensity of Led lamp or you simply need analog output and do not want to buy expensive Digital/Analog converter (DAC) PWM is ideal solution. In this category we will place examples that show how to configure and change parameters of PWM output on AVR microcontroller.

     

  • AVR external interrupts

     

    When reading pin state it is often needed to react very fast on pin state change.
    For this purpose external interrupt is used. External interrupt occurs when dedicated pin changes state. It can be triggered on rising, falling, or both edges of signal state. Here are placed examples that use external interrupt  of AVR microcontroller.