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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/03/04 10:47
Read: times


 
#65862 - Port extraction
Can any one help me with this part of the program. Using Keil uVision 2 assembler. Set the value in R0 of register banl 0 to #08 dec. Extract the information contained on pins P3.6 and P3.7 and store this in R1 of register bank 1. The information must be used in the manner described below:
If, the information derived from the switches connected to P3.6 and P3.7 are at any of the four possibilities, then the action described must be taken.

P3.6 P3.7
0 0 :Multiply the value stored in R0 of register bank 0 by 0 decimal stored in R1 of register bank 1.
P3.6 P3.7
0 1 :Multiply the value stored in R0 of register bank 0 by 1 decimal stored in R1 of register bank 1.

P3.6 P3.7
1 0 :Multiply the value stored in R0 of register bank 0 by 2 decimal stored in R1 of register bank 1.
P3.6 P3.7
1 1 :Multiply the value stored in R0 of register bank 0 by 3 decimal stored in R1 of register bank 1.

Output the result of this multiplication to port1.

Any help would be greatly appreciated!



List of 8 messages in thread
TopicAuthorDate
Port extraction            01/01/70 00:00      
   RE: Port extraction            01/01/70 00:00      
      RE: Port extraction            01/01/70 00:00      
         And so to work...            01/01/70 00:00      
   RE: Port extraction            01/01/70 00:00      
   RE: Port extraction            01/01/70 00:00      
   RE: Port extraction            01/01/70 00:00      
   RE: Port extraction            01/01/70 00:00      

Back to Subject List