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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/18/04 13:11
Read: times


 
#65014 - 8051/8255 interfacing
I am trying to implement the following as a part of my code:

CNTPORT EQU 0F003H

Set_8255_mode2: ; Initialising 8255
push acc
mov a,#98h ;A:IN, B:OUT, C_u:IN C_l:OUT
mov dptr,#CNTPORT
movx @dptr,a
pop acc
ret

While trying to check this on the Keil, the keil doesnt show any output on the port after movx(it should show the accumulator value on P0??)
I feel the code is correct!!
Kindly help
Kapil


List of 24 messages in thread
TopicAuthorDate
8051/8255 interfacing            01/01/70 00:00      
   RE: 8051/8255 interfacing            01/01/70 00:00      
      RE: 8051/8255 interfacing            01/01/70 00:00      
         RE: 8051/8255 interfacing            01/01/70 00:00      
            RE: 8051/8255 interfacing            01/01/70 00:00      
               RE: 8051/8255 interfacing            01/01/70 00:00      
            RE: 8051/8255 interfacing            01/01/70 00:00      
               RE: 8051/8255 interfacing            01/01/70 00:00      
                  RE: Altera PLD example (image)            01/01/70 00:00      
               RE: 8051/8255 interfacing            01/01/70 00:00      
               RE: 8051/8255 interfacing            01/01/70 00:00      
                  more            01/01/70 00:00      
         RE: 8051/8255 interfacing            01/01/70 00:00      
         RE: 8051/8255 interfacing            01/01/70 00:00      
            RE: 8051/8255 interfacing            01/01/70 00:00      
            RE: 8051/8255 interfacing            01/01/70 00:00      
               RE: 8051/8255 interfacing            01/01/70 00:00      
               RE: 8051/8255 interfacing            01/01/70 00:00      
   RE: 8051/8255 interfacing            01/01/70 00:00      
   RE: 8051/8255 interfacing            01/01/70 00:00      
   Direct LCD to 8051 !!            01/01/70 00:00      
      RE: Direct LCD to 8051 !!            01/01/70 00:00      
         RE: Direct LCD to 8051 !!            01/01/70 00:00      
            RE: Direct LCD to 8051 !!            01/01/70 00:00      

Back to Subject List