On port b pull ups enabled. Somehow port_b_pullups and port_a_pullups are mixed.
Main problem...
output_high(PIN_Ax or PIN_Cx) do not work as should and output_low does not work at all.
I tried use standard IO and fast and setting tris registers. ... does not fix problem.
Compiler version is 4.093
Thank you in advance !
mkuang
Joined: 14 Dec 2007 Posts: 257
Posted: Fri Dec 18, 2009 9:26 am
Let's see your program.
If you enable the pull-ups but later use the output_high or output_low functions the compiler will set those pins as outputs, overriding the fact that these IOs are initially inputs.
IF you use standard IO then you do not have to set any tris.
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