Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/13/03 09:52
Read: times


 
#36307 - 8255 again!
Hi All

I connect an 8255 and an At89c51 as follows,

D0..D7 to P1.0..P1.7
WR.......to P3.0
Rd.......to P3.1
A0.......to P3.2
A1.......to P3.3
RS.......to P3.4
CS.......to P3.5
Port a .....LED

Now I write code as follows,

org 00h
clr p3.5 ; start communication
clr p3.2 ; selct port a
clr p3.3 ; select port a
setb p3.1 ; No read
clr p3.0 ; Write

mov dptr,#----; What address do I specify?
mov a,#00h ; To make LED come on
movx @dptr,a ;To make LED come on
loop:
ajmp loop

Can some one tell me what is the address I should specify to the DPTR?

regards
Pramod



List of 7 messages in thread
TopicAuthorDate
8255 again!            01/01/70 00:00      
RE: 8255 again!            01/01/70 00:00      
RE: 8255 again!            01/01/70 00:00      
RE: 8255 again!            01/01/70 00:00      
RE: 8255 again!            01/01/70 00:00      
RE: 8255 again!            01/01/70 00:00      
RE: 8255 again!            01/01/70 00:00      

Back to Subject List