Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 09:11:52 21:11


Login with username, password and session length


Pages: [1]
Print
Author Topic: 74LS373 Latch Problem with AT89C51  (Read 4757 times)
0 Members and 1 Guest are viewing this topic.
jeniusj
Junior Member
**
Offline Offline

Posts: 38

Thank You
-Given: 11
-Receive: 7


« on: June 05, 2009, 11:22:39 11:22 »

Actually I have to receive the 3-bytes thorough serial link and then these three bytes are then converted into parallel.
I use 74245 buffer and then use three 74LS373 latches....But the problem is that there is only first byte present at all the latches.Then I debug this by connecting two latches instead of three to check the 74LS373 working,The code is as below

org 0h
LE1 bit P1.1
LE2 bit P1.2

        mov P1,#00h   ;clear Port1
main: mov P2,#0AAh ;place dats on port2 which is data port for byte.
        setb LE1
        acall delay
        clr LE1

        acall delay  ; wait for sometime before placing the next data

        mov P2,#55h
        setb LE2
        acall delay
        clr LE2

       sjmp main

delay:  mov r2,#250
here  : djnz r2,here
          ret
end

When I dump the following code then is appear to be toggling on both latches......
I have tried many times but cant get the exact reason for this
Before that I have successfully interface the 74LS373 for data/address demultiplexing in 8051

Logged
manish12
Active Member
***
Offline Offline

Posts: 163

Thank You
-Given: 44
-Receive: 39


« Reply #1 on: July 15, 2009, 04:39:33 16:39 »

this could be solve your prob,

org 0h
LE1 bit P1.1
LE2 bit P1.2

        mov P1,#00h   ;clear Port1
main: mov P2,#0AAh ;place dats on port2 which is data port for byte.
        clr LE1
        acall delay
        setb  LE1

        acall delay  ; wait for sometime before placing the next data

        mov P2,#55h
        clr LE2
        acall delay
        setb  LE2

       sjmp main

delay:  mov r2,#250
here  : djnz r2,here
          ret
end
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC