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

Back to Subject List

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


 
Msg Score: +1
 +1 Good Answer/Helpful
#82811 - DPTR and I/O Ports
Responding to: ???'s previous message
Jason:
In normal usage there is not an immediate direct connection between the instructions to read a port pin value and the DPTR table look up MOVC instruction.

That said however, it is possible to read a port and then use the value from the port to perform some other work, function, or algorithm. This other activity that occurs after the port value has been read is logically connected via the flow of instructions in whatever program you may write. It is certainly possible that this instruction sequence could make use of a lookup table of some sort wherein the DPTR could come into play. How that would be useful is COMPLETELY dependent on what you need to have the port value control, how you choose to design an algorithm to address the control function, and how the design gets translated and implemented into code.

We could give you some help in ideas of how to implement this for your application......but you would first need to define more clearly how the port value/bits need to be used. Then you would have to take a stab at making your design and code instruction sequence to realize the algorithm. After this if you have a difficulty with the programming come and post it here and I am sure you can get help with getting through the difficulty.

Michael Karas


List of 14 messages in thread
TopicAuthorDate
DPTR for internal code            01/01/70 00:00      
   DPTR.......            01/01/70 00:00      
   Look at Instructions set            01/01/70 00:00      
   DPTR for code memory            01/01/70 00:00      
      Port scanning            01/01/70 00:00      
      DPTR and I/O Ports            01/01/70 00:00      
      Outputting and Inputting Bits            01/01/70 00:00      
         Jump Table?            01/01/70 00:00      
   It can Not            01/01/70 00:00      
   DPTR for code memory            01/01/70 00:00      
      Do the independent bit tests            01/01/70 00:00      
         very complex bit testing            01/01/70 00:00      
      Dptr for code memory            01/01/70 00:00      
   JB            01/01/70 00:00      

Back to Subject List