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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/25/01 11:43
Read: times


 
#15999 - RE: Question with port
The "pin levels" are saved in the stack. But the pin levels are probably affected by the value you wrote in the output latches earlier.
There are some fancy uses of the pair push pop:

Example 1: Force 0s in the P1 pins that are 0s at push time.
push p1 ; 'save the pins'
pop p1 ; write the latches

Example 2: echo in the serial port
push sbuf
pop sbuf

As a rule: push is a read operation, as Erik said, and pop is a write operation.

Regards,
Alfredo del Rio

List of 4 messages in thread
TopicAuthorDate
Question with port            01/01/70 00:00      
RE: Question with port            01/01/70 00:00      
RE: Question with port            01/01/70 00:00      
RE: Question with port            01/01/70 00:00      

Back to Subject List