Comparison problem


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default You haven't set the data direction for portb

    Hi,

    Add this line to the top of your code:

    TRISB = %xxxxxxx0

    Hope this helps.
    Regards

    Sougata

  2. #2
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Default

    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

  3. #3
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Question

    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

  4. #4
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    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

Similar Threads

  1. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 21:17
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 09:12
  3. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 22:04
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 23:59
  5. weird 12F629/675 problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th October 2004, 02:08

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts