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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/14/02 06:31
Read: times


 
#30718 - RE: Write to 8 different I/O pins in 89C
write a function let's say

ldsrf(char sfr);

and put in the function the code to send the bits to the diferrent pins

In order to act as a register make the definition

#define SFR=val ldsfr(val)

and hopefully you will be able to use a sfr initialisation-like intruction

SFR=100;

will generate the ldsfr(100) function...

Good luck!

List of 6 messages in thread
TopicAuthorDate
Write to 8 different I/O pins in 89C52            01/01/70 00:00      
RE: Write to 8 different I/O pins in 89C52            01/01/70 00:00      
RE: Write to 8 different I/O pins in 89C52            01/01/70 00:00      
RE: Write to 8 different I/O pins in 89C52            01/01/70 00:00      
RE: Write to 8 different I/O pins in 89C            01/01/70 00:00      
RE: Write to 8 different I/O pins in 89C            01/01/70 00:00      

Back to Subject List