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

Back to Subject List

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


 
#88774 - Common project!
Responding to: ???'s previous message
Dear ray
i used this rtc in one of my project
but on that project
p1 was common for lcd data and rtc data/addr
p0 was reserved for keypad
At first i am sure you must discrete lcd control pins
from rtc control pins
it is not necessary using 74LS08 for isolating lcd.
If you don't read from lcd then db0-db7 are isolated from rtc.
because lcd and rtc routines don't execute in the same time
so it is enough to disable lcd when it doesn't need
and disable rtc when...
in addition when you want to reading a port
you must first write 0ffh on the port
Mov P1,#0FFh because of 8051 internal latch situation
(see datasheet)
so before movx a,@rx you must first send 0ffh to p0

you apply this matter in your following code!
MOV DATA0,#0FFH
MOV A,DATA0
JB ACC.7,not_ready

is the following code ok?

next1: CJNE A, #0BH, next2
MOV A, #42H
JMP write1
next2: CJNE A, #0CH, next3
MOV A, #42H ;i think 43H is right
JMP write1



...
...
...
at last

I Hope this will be useful for you!
Mehdi

List of 13 messages in thread
TopicAuthorDate
Problem interfacing DS12887 to 8051            01/01/70 00:00      
   CS?            01/01/70 00:00      
      !CS            01/01/70 00:00      
      Re: !CS            01/01/70 00:00      
   P0 is open drain            01/01/70 00:00      
      Re: P0 is open drain            01/01/70 00:00      
         SeriAL PORT            01/01/70 00:00      
         where?            01/01/70 00:00      
            re: where?            01/01/70 00:00      
               Used a scope?            01/01/70 00:00      
   Common project!            01/01/70 00:00      
      re: Common Project            01/01/70 00:00      
         I am sure this is helpful!            01/01/70 00:00      

Back to Subject List