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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/21/06 04:00
Modified:
  07/21/06 04:04

Read: times


 
#120732 - Yes and no
Responding to: ???'s previous message
Ali said:
i mean to say without any inturrpts....
i just give 0 volt to a pin..is it detected by mcu???

Depends on what you mean be "detected":

If you mean, that something is done automatically "behind" the execution of instructions of program, like it's done when an interrupt is invoked, then no.

But if you mean, that it can be detected somehow, by the execution of a suited instruction as part of program, then yes. In this case you can use a mov-instruction to move the actual state of involved port line into the carry bit, for instance. Or you can read the whole 8bit port.

But take care: There's no latch, which stores the pulling down of port line anyhow! You can only read the actual state being present at port pin during the execution of mov-instruction. So, if you read the port pin not often enough you can easily overlook the pulling down of port line! That's why this interrupt methode is often used.

Reading a certain port pin all the time in order to detect a change of state is called "polling", by the way.

Kai

List of 10 messages in thread
TopicAuthorDate
basic question            01/01/70 00:00      
   Maybe ... but probably not            01/01/70 00:00      
      good question            01/01/70 00:00      
         but from a ghost            01/01/70 00:00      
         Good question indeed            01/01/70 00:00      
   very likely            01/01/70 00:00      
      Man, Erik, you have GOT TO proofread ...            01/01/70 00:00      
   In the case of a generic 805x,            01/01/70 00:00      
   Yes and no            01/01/70 00:00      
      thanks kai            01/01/70 00:00      

Back to Subject List