Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
...About my other question...I think a 470 ohm pull resistor for DS12887 IRQ is fine right?
Which pin is it? Sometimes the peripheral function on a pin can over-ride the TRIS register setting.The pin is configured as an analog input but God knows what the heck was wrong with it!
I see. The only thing that could cause that pin to source current, short of a hardware fault, would be if it was set as an output and set high.@Kchriste, i have connected it to AN0 with an external reference of 2.56 V.
Syed,
Why are you running the PIC on 3.3V and everything else on 5V?
R2 in your diagram doesn't make sense to me.
Is MCLR enabled in software? If so, you need a pullup resistor on it too.
CS & MOT on the DS12887 should both be tied to ground. The way you've done it will work due to the built in pulldown on MOT, but tying both to ground would be more conventional.
As mentioned by Mike, if you intend to operate the PIC of 3.3V and the DS12887 from 5V, then R1 should be pulling up to 3.3V and not 5V.
The problem with doing that is that a 5V part driving a 3.3V powered PIC could cause the internal diodes (from the IO pin to Vdd) of the PIC to conduct, leading to all sorts of strange behavior.The PIC is running on 3.3V so that my project can be upgraded.
The problem with doing that is that a 5V part driving a 3.3V powered PIC could cause the internal diodes (from the IO pin to Vdd) of the PIC to conduct, leading to all sorts of strange behavior.