Walter, When I program something like this to set the TRIS register, the MPC generates a syntax error, file not found. #include<12c508.h> void main(void) { __TRIS(0x01,GPIO); } I probably do something wrong but I have no idea what it is. Hope you or someone else can help me. Kees. ----------------separator------------------------------------------ Van: Walter Banks Aan: PICLIST@MITVMA.MIT.EDU Datum: woensdag 10 december 1997 15:43 Onderwerp: Re: 12C508 & C-programming >MPC will generate the correct code when setting the >TRIS register. It can be accessed with the __TRIS maco >in the header files or through the standardized embedded >libray port initialization. > >Walter Banks > > >---------- >> From: Kees van Bruggen >> To: PICLIST@MITVMA.MIT.EDU >> Subject: 12C508 & C-programming >> Date: Tuesday, December 09, 1997 4:13 PM >> When I program the I/O ports is assembly I use the TRIS instruction >> to set the data direction of the pins. I am wondering how I should >> do this in C because there is no actual TRIS register.