eMyListsDDg gmail.com> writes: >=20 > new to using hi-tech c and would like to know which is preferred way to d= efine a pin for use. >=20 > one can use TRIS, PORT or LAT bits to define a pin to put a LED on, yes?= =20 >=20 > does one use one of the above or is it as simple as this? >=20 > #define LED1 RA0=20 >=20 > i'm a bit unsure which of the SFRs such as listed above that one would us= e. i'm using 16f88 >=20 Yes, it is that simple.=20 Make sure that you set corresponding TRIS bit to output, in your case:=20 TRISA =3D 0bxxxxxxx0; where x - 0 or 1 for simple use no need to do anything else. You should #include fi= le, it defines all different SFRs for the processor you use. =20 Sergey Dryga http://beaglerobotics.com --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .