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 / Topics / Problem with ISR code AT89c51RE2

Problem with ISR code AT89c51RE2

|

Microcontroller › 8051 › Problem with ISR code AT89c51RE2

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 8 months ago by abdullah.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 24, 2013 at 1:44 pm #4822
    Vish
    Participant

    Hi, could someone please tell me what is wrong with the code. I want to use keyboard interrupts in AT89c51RE2 to turn on an led when someone presses the button

     

    <code>

    ORG 0

    LJMP MAIN

     

    ;–ISR for INT

    ORG 003BH ;Vector Address for Keyboard interrupt

    setb P1.3 ;turn on LED

    RETI ;return from ISR

     

    ORG 0100H

    MAIN:

    clr p1.3

    mov 0B1h,00000001b ;enable keyboard interrupt

    mov 9Dh, 10000000b      ;Set KBF. 7 bit in KBF register to enable interrupt request

    mov 9Ch, 10000000b       ;Set KBLS7 to enable a high level detection on Port line 7.

    HERE: SJMP HERE

     

    end

    </code>

    May 24, 2013 at 10:04 pm #9821
    abdullah
    Participant

    i cannot make the hex file of the code given on this site for lcd based digital alrm clock using At89c51, i need the hex file file urgently and iam using keil software, i need the hex file urgently i am very close to the deadline. plz help

     

     

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • To couple or decouple February 10, 2026
  • ANOTHER OLD PROJECT REDO February 10, 2026
  • analog logic of shmidt trigger bjt circuit February 10, 2026
  • Buffer design? February 10, 2026
  • XLR splitter to mono. February 10, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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