Author Topic: how to use port pin as a variable?  (Read 7333 times)

blimon

  • Guest
how to use port pin as a variable?
« on: March 31, 2005, 12:25:04 pm »
for example, i have

#define SCL P1.6
#define SDA P1.7

i want this line to compile-->> SDA = SCL = 1;

what else must I do to use SCL and SDA as a variable?

anyone?

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: how to use port pin as a variable?
« Reply #1 on: April 01, 2005, 12:48:48 am »
setbit(SDA);
setbit(SCL);
clrbit(SDA);
clrbit(SCL);