Hi Guys, my first time posting in the forum so please be gentle with me.
I'm pulling my hair out with an apparently simple task of reading a ds18b20 on portb.10 of an P32MX534F064H clicker board.
4k7 pullup attached to portb.10 DQ line from the 3v3 supply. (i've also tried various other values)
JTAG is disabled.
Code is identical to Mikroe sample code which works fine on a PIC18F clicker 2 board
I can get the readings out of the ds18b20 when running the primary oscillator at 8Mhz with no PLL only if i put a resistor >10k to 0V on the DQ line. (very strange)
If i speed things up using the PLL it gets progressively worse the faster it goes. i.e corrupt readings.
I put a one wire analyser on the DQ line and that confirmed the faster i ran the processor the more invalid instructions the analyser was detecting.
Trien another clicker board just in case - same thing.
My question is ....... Is their anything i'm doing wrong with the configuration of portb.10 on the P32MX534F064H ?
Is the port not pulling the DQ line to 0V
Any help would be much appreciated.