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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/27/03 18:06
Read: times


 
#61441 - RE: AT89LS8252 dual dptr problem
Responding to: ???'s previous message
hi,
are you sure that DPTR1 has not been selected as current DPTR before you do setb acc.2? And so you do not keep DPTR0 but just re-load DPTR1 which is modifyed by write_spi_byte() then.
When you need to save DPTR by some reason either use PUSH/POP for DPH and DPL or TOGGLE select bit! In example above I suggest you to use xrl A,#4 (or direct XRL WMCON,#4 as Michael suggests) instead setb/clr acc.2

Good days!

List of 7 messages in thread
TopicAuthorDate
AT89LS8252 dual dptr problem            01/01/70 00:00      
   RE: AT89LS8252 dual dptr problem            01/01/70 00:00      
   RE: AT89LS8252 dual dptr problem            01/01/70 00:00      
   RE: AT89LS8252 dual dptr problem            01/01/70 00:00      
      RE: AT89LS8252 dual dptr problem            01/01/70 00:00      
         RE: AT89LS8252 dual dptr problem            01/01/70 00:00      
   RE: AT89LS8252 dual dptr problem            01/01/70 00:00      

Back to Subject List