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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/25/10 10:34
Read: times


 
#177439 - Explanation
Responding to: ???'s previous message
Yes, an input to a pin externally, a pin which is a part of a 10-pin header connector which looks like the one's in the image:



The example program when executed, turns on a LED on pressing of a button, apart from that, it says:

The program also monitors P4.0. If P4.0 is high, it sets P4.1 low. If P4.0 is low, P4.1 is set high.
The purpose of this part of the program is to show how to access the higher ports. Ports 4-7 are not available on all SFR pages, so the SFRPAGE register must be set correctly before reading or writing these ports.

How To Test:

1) Download code to a 'F120 target board
2) Ensure that the J1 and J3 headers are shorted
3) Push the button (P3.7) and see that the LED turns on
4) Set P4.0 high and low using an external connection and check that
the output on P4.1 is the inverse of P4.0


Therefore, how do i use the external connection with a single pin ?

List of 13 messages in thread
TopicAuthorDate
Regarding header connector            01/01/70 00:00      
   well, if you posted a link ...            01/01/70 00:00      
      Explanation            01/01/70 00:00      
         for what?            01/01/70 00:00      
            To check...            01/01/70 00:00      
               Inputs always related to something else            01/01/70 00:00      
            School work            01/01/70 00:00      
               Board Used            01/01/70 00:00      
                  Avoid "it" unless you have already defined what "it" is.            01/01/70 00:00      
                     Thank You            01/01/70 00:00      
                     could be misread without the addition            01/01/70 00:00      
   Like This            01/01/70 00:00      
      Nice            01/01/70 00:00      

Back to Subject List