18F2550 and Blink Led - Page 2


Closed Thread
Page 2 of 2 FirstFirst 12
Results 41 to 50 of 50
  1. #41
    Join Date
    Mar 2008
    Posts
    59


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    "The weak pull-up is automatically turned off when the port
    pin is configured as an output."
    So this means all of the wpu are turned off on portb if any pin is a output on portb? I guess I thought because the data sheet said "The weak pull-up is" not "The weak pull-ups are turned off it meant just that one pin.

    Thank you very much for clearing that up.

  2. #42
    Join Date
    May 2013
    Location
    australia
    Posts
    2,380


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    So this means all of the wpu are turned off on portb if any pin is a output on portb?
    no it means
    if (INTCON2<7>) is set then all portb pull ups are off
    if (INTCON2<7>) is clear then all portb pull ups are on and that no pin that is an output can have a pull up
    Warning I'm not a teacher

  3. #43
    Join Date
    Aug 2011
    Posts
    408


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    If there's any confusion on how to set the pin direction, I like to think of it this way... the TRIS register is short for TRI-STATE register.
    If a pin is tri-state, it's floating, so it must be an input. Setting the TRIS bit = 1 enables the tri-state, so 1=input, 0=output.

  4. #44
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    Have to get back to this thread
    still having same issue of Block overflow
    but forgot how I've fixed it......

  5. #45
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    It is interesting - it will compile for some 18F series, but not for others.

    For example, it will compile for 18F1220, but not for 18F1320, but will for 18F1520
    It will compile for 18F2439 but not for 18F2550.
    It will compile for 18F24K50, but won't compile for 18F24K22.

    For testing purposes, I took my daughters laptop, where no PBP was ever installed, downloaded the trial version and it is absolutely the same...

  6. #46
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    If you have #CONFIG / #ENDCONFIG block within your code then you'll likely need to adapt that based on which device you're compiling for since CONFIG bits aren't the same on each and every device.

    I will try it if you can post the complete code that you're trying to compile.

  7. #47
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    No, it is not about this.
    just selecting MCU type, even with empty code window, and hitting compile, gives that error.

  8. #48
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    Very interesting find.

    Started windows sandbox (virtual machine)
    Downloaded latest PBP trial in it, installed.
    downloaded 5.45 IDE in it, also installed.
    18F2550 compiles just fine!

    So what this means, some of installed software, somehow prevents PBP from working correctly?

  9. #49
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    Solved!
    Mplab tools 8.84 were installed and code now compiles fine!

  10. #50
    Join Date
    Aug 2011
    Posts
    408


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: 18F2550 and Blink Led

    If you're using MPLAB V8 then the last version was v8.92 (https://ww1.microchip.com/downloads/...B_IDE_8_92.zip)
    For MPLABX you want MPLABX v5.35 (https://ww1.microchip.com/downloads/...-installer.exe)

Members who have read this thread : 5

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