Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Relay and AVR Atmel Atmega 16

922 visualizaciones

Publicado el

Robo India presents the working and concept of electro mechanical switch Relay. It also explains how to use it with AVR family's microcontroller Atmel Atmega 16.

Publicado en: Ingeniería
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

Relay and AVR Atmel Atmega 16

  1. 1. Robo India http://roboindia.com
  2. 2. • Atmega16 have total of 40 pins 32 I/O pins.. PORT “A” = 8 Pins PORT “B” = 8 Pins PORT “C” = 8 Pins PORT “D” = 8 Pins
  3. 3. Port “X” DDRX PORTX PINX NOTE:- X is the name of port and it can be A, B, C or D .
  4. 4. • DDRX – For setting the direction i.e. Input or output. • PORTX – For setting output value of port. • PINX – For reading data available in port. NOTE:- X is the name of port and it can be A, B, C or D . Click here to visit -ROBO INDIA
  5. 5. DDRX= 0xFF; (O/P-Port) DDRX= 0x00; (I/P-Port) or DDRX = 0b 1 1 1 1 1 1 1 1 ; (O/P-Port) DDRX = 0b 0 0 0 0 0 0 0 0 ; (I/P-Port) NOTE:- X is the name of port and it can be A, B, C or D . Click here to visit -ROBO INDIA
  6. 6. 1.If if ( conditions ) { code to be executed } 2.For loop for(start ; condition ; step) {code to be executed} 3.While loop while( Condition) { code to be executed } Click here to visit -ROBO INDIA
  7. 7. Click here to visit -ROBO INDIA
  8. 8. Click here to visit -ROBO INDIA
  9. 9. Qn. What is RELAY ? ANS. RELAY is a electromechanical switch which use ELECTROMAGNET for switching operations. Click here to visit -ROBO INDIA
  10. 10. • #include <avr/io.h> • #include <util/delay.h> Click here to visit -ROBO INDIA
  11. 11. To share your views and queries please write us- Website: http://roboindia.com Email- info@roboindia.com Click here to visit -ROBO INDIA

×