getting a tris definition for a pin?
Posted: Sun Mar 17, 2013 11:52 am
I have a #option that defines a pin...
From that, is there a way to get/create a way to access the TRIS.n for that pin?
dim SCI_CK_TRIS as ??????
If not, can some sort of macro work (ie SCI_CK_TRIS_HIGH()/SCI_CK_TRIS_LOW())?
I don't want to compute it at runtime. I'm looking for a method that lets me control the tris for the pin in a single instruction, and that will change if I change the #option for the pin definition.
Code: Select all
#option SCI_CK_PIN = PORTD.7
dim SCI_CK as SCI_CK_PIN.SCI_CK_PIN@
dim SCI_CK_TRIS as ??????
If not, can some sort of macro work (ie SCI_CK_TRIS_HIGH()/SCI_CK_TRIS_LOW())?
I don't want to compute it at runtime. I'm looking for a method that lets me control the tris for the pin in a single instruction, and that will change if I change the #option for the pin definition.