ok thank you I understood my problem. Working with PIC which has GPIO port must describe this port as:
Code:
set_tris_a(XX);
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sun Jul 19, 2009 10:47 am
You don't have to do that. You can let the compiler set the TRIS for you.
It will set the TRIS automatically if you use the CCS functions, such as
output_low(), output_high(), etc. Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=38261
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