EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / here i am writing the ISR for

here i am writing the ISR for

|

Microcontroller › AVR › copying rfid tag no in an array for comparision › here i am writing the ISR for

February 22, 2011 at 11:31 am #5582
dagakshay
Participant

here i am writing the ISR for your code which might help you out check it

 

uchar i; // declare i as a gloabl unsigned char


ISR(USART_RXC_vect) 

 {

 i++;

if(i = =13)

  {

   mybyte=UDR;

   if(mybyte[1]= = 65`)

       LED=(1<<LED0);

   if(mybyte[1]= =70)

       LED=(1<<LED1);

   if(mybyte[1]= = 51)

       LED=(1<<LED3);

   _delay_ms(1000);

  LED=0;

  i=0;

  }

else

mybyte=UDR;

} /* end of ISR*/

 

checkout and let me know weather it has worked???

RSS Recent Posts

  • 100uF bypass Caps? May 19, 2025
  • how to work on pcbs that are thick May 19, 2025
  • Fuel Auto Shutoff May 18, 2025
  • Actin group needed for effective PCB software tutorials May 18, 2025
  • compatible eth ports for laptop May 18, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise