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, 1 month 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

  • Pic18f25q10 osccon1 settings swordfish basic July 18, 2025
  • Sump pit water alarm - Kicad 9 July 18, 2025
  • Anyone jumped from Easyeda std to Easyeda pro? July 17, 2025
  • turbo jet fan - feedback appreciated. July 17, 2025
  • More fun with ws2812 this time XC8 and CLC July 17, 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