PIC18F452 and problem with if statement


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking Something stupid with input ranges ... and Compiler.

    Hi,

    Did you remember PbP " classic " number input and output range is 0 - 65535 ( 16 Bits ) ??? for negative values you could use ABS () care your number do not exceed 15 bits. see manual for explanation.

    Multiple IF Then s ... can be replaced by the SELECT CASE command ...

    Note that's an answer for PBP using !!! I think you're not exactly using PBP ... so, may be you're not on the bestForum to get the right answer ...

    Alain
    Last edited by Acetronics2; - 5th July 2006 at 11:33.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Alain is right. I guess you use PROTON.


    It remind me something so far... if you set the Watchdog timer you may have to use

    WATCHDOG = 0

    But i can be wrong to, i saw few new update for that one so, if you're using the latest upgrade, it shouldnt, hum hum, give you some problem. Anyways i've never use that one too long to have great solution.

    The best place for you is bellow
    www.picbasic.org/forum
    Last edited by mister_e; - 5th July 2006 at 15:18.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Stephan P.'s Avatar
    Stephan P. Guest


    Did you find this post helpful? Yes | No

    Default

    Yes i am using proton, sorry for that. Go to the other forum.

    THX Stephan

Similar Threads

  1. problem whit pic18f452
    By ocastrillo in forum General
    Replies: 3
    Last Post: - 9th March 2007, 17:18
  2. PIC18F got some weird problem?
    By NatureTech in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 19th February 2007, 17:18
  3. PIC18F452 Compile Problem
    By scottl in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 21st October 2006, 11:47
  4. Replies: 5
    Last Post: - 26th March 2006, 20:26
  5. interupt & Sleep Problem - HELP!!
    By Santana in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd November 2004, 11:39

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