I use a dspic33FJ128MC804,
My problem is
When I
1. Enable pin RB8 as output pin (TRISBbits.TRISB8 = 0 )
2. and set LATBBits.LATB8 = 1;
pin RB8 is set to 1. But after that it become 0, and 1 again, (As figure)
---------------------- -------------------------------
| | |
| | |
------------------ ------------------------------------------
Sometime when I set it to zero, but it become 1 ...
But if I use a VOM or Oscilloscope to observer the logic of this pin, It will become Zero permanently
---------------------
|
|
|
--------------------------------------------------------------------------------------
How can I solve this problem?
I've read some thread in forum, I disable JTAG (_FICD(JTAGEN_OFF) but problem is still can't solve .