Hi,
Add this line to the top of your code:
TRISB = %xxxxxxx0
Hope this helps.
Hi,
Add this line to the top of your code:
TRISB = %xxxxxxx0
Hope this helps.
Regards
Sougata
My friend sougata,
I do not think this is the problem!!!But I will try to do it now.
The problem is the the comparison.
temp is binary or not?
How can I do a comparison with temp and 90?
Thanks
Regards
Thanks
You are right.I should have cofigured the portb.o as input.
Do you have an idea how can I reduce my consuption?
I have 16f627 internal osc+lcd module+ds1820
When the pic do a mesurment for the ds1820 my current is 4.5mA and when it do not it is 3mA.
Any idea to reduce the curent?
Thanks
Best regards
Most of the time your program appears to be “PAUSE”ing. The first thing to do would be to use the NAP or SLEEP command instead of PAUSE. (Make sure and enable the WDT - See the manual)
Good Luck,
Paul Borgmeier
Salt Lake City, Utah
USA
Bookmarks