- This topic has 1 reply, 2 voices, and was last updated 10 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Problem with ISR code AT89c51RE2
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>
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