Re: 18F2550 and Blink Led
Quote:
"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.
Re: 18F2550 and Blink Led
Quote:
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
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.
Re: 18F2550 and Blink Led
Have to get back to this thread :D
still having same issue of Block overflow
but forgot how I've fixed it......
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...
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.
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.
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?
Re: 18F2550 and Blink Led
Solved!
Mplab tools 8.84 were installed and code now compiles fine!
Re: 18F2550 and Blink Led