I would like to set a pin H in the PIC. However I determine which pin to set H programatically with something like:
Code:
output_high(var1);
where var1 is determined by the program.
PICC gives me an error: "Expressions must evaluate to a constant"
Can someone please tell me how to do this? (without using "if" loops)
Thank you in advance.
Regards
a.
Ttelmah Guest
Posted: Sat Jun 16, 2007 2:39 am
How about searching the forum!....
A search on 'How to use output_bit or output_high with a variable', will find one of the dozens of threads where a solution for this has been posted (including pointers to a couple of other threads).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum