Quote Originally Posted by aratti View Post
Yes place a led with 1K in series from pin 9 to gnd.

But, I am more interested on how many IO pins you are using. Now If you have inputs pins floating (not connected) this can produce wierd result.

I noted in your code, that you are not setting the tris registers, please do it. Set all non used pins as output and place them to a logic zero.

Example (I assume you are using only the serial pins) :

TrisA = %00000000
PortA = 0

TrisB = %00100000 ' if the only input is pin 10 Rx
PortB = 0

TrisC = %00000000 ' if none of the portC pins are used
PortC = 0

The above code has to be written on top of your code. It will set all non used port as outputs @ logic zero, avoiding to leave inputs floating.

If your arrangement is different modify the tris command to suite your need.

Al.
I did that now but still nothing usful, it seems that the data is coming out from the max but it wont register at all i do get something when i send like 200 times with 10ms