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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/10/04 13:27
Read: times


 
#70114 - branching ports through memory mapping
Hello,

Here is my question consdiering use of state machine for multi-tasking;

1) P2.0 & P2.1 are used as input bits, waiting for low signal.

2) In the main program controller is waiting for low to come and as soon as low comes on any of the bit controller simply remove that bit from the scan list.
One of doing this is to use CJNE or JB commands but i want to make use of the following
INC A
MOVC A, @A+PC
RET
;
DB 00000001B ; Bit 0 <- 0
DB 00000010B ; Bit 1 <- 1

so that the code can be used for monitoring more bits and checking different states for a individual bit.



List of 7 messages in thread
TopicAuthorDate
branching ports through memory mapping            01/01/70 00:00      
   RE: branching ports through memory mapping            01/01/70 00:00      
      RE: branching ports through memory mapping            01/01/70 00:00      
         RE: branching ports through memory mapping            01/01/70 00:00      
            Simplifying            01/01/70 00:00      
   RE: branching ports through memory mapping            01/01/70 00:00      
      Plz close this thread            01/01/70 00:00      

Back to Subject List