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.