Thanks, I'll try this.
> As it came it was 0x27 Dec 39 but I had to double it for pbp to 0x4e dec 78.
$27 is the code not counting the R/W bit. Some people shift this one bit and add the R/W bit...
Type: Posts; User: kenif; Keyword(s):
Thanks, I'll try this.
> As it came it was 0x27 Dec 39 but I had to double it for pbp to 0x4e dec 78.
$27 is the code not counting the R/W bit. Some people shift this one bit and add the R/W bit...
During the pandemic I had to lay out boards using the chips to hand, in this case 16F1503.
Not enough pins for a parallel LCDout, so I used I2C LCDs intended for Arduino. How difficult could it be?...
This sort just saved my butt, thank you.
As the PICs get faster, speed is less of a consideration.
OK, thank you. Left panel was a narrow browser window issue. My programming machine has a serial terminal taking up the right third :)
No, only that I no longer have an FSR compile error.
And just found it has 2x FSRs...
NCO on PIC16F1508.
Interrupts
This project uses NCO and needs an interrupt to flush the accumulator. For historical reasons I'm using ASM_INTS.BAS. This brain doesn't appear to have an FSR, and I...
Me too.
Bit late (15 years), but the same problem. I need to generate an exponential decay and PBP has no ^/exp function.
There are several ways to do this, but none of them are particularly...
Yes, I posted the default. I tried lots of combinations but was trying to get this chip to run at 64 MHZ, when the max is 32.
You guys are right as usual. It had define OSC 64 for historical reasons.
Here's the story: This is the guts for a lung ventilator.
I designed all the boards, and do firmware everywhere else, but...
Can't find anything on forum.
The default config doesn't work, nor any of my attempts to fix it.
Latest IDE, latest PBP Gold 3.1. Current Microchip everything.
This board worked fine with a...
What everyone else says, plus:
Declare a ground star point and make all grounds radiate from that point - no daisy chains.
You should be able to trace ground noise origin with a scope....
Thanks, I'll look into that.
Microchip TC74.
We used this for the TO-220 packaging - it is screwed to a motor where it is difficult to put a PCB.
Yes, it works fine. At the moment we have a 900 us read (Honeywell pressure sensor), but at 400k it's about 225 us, and saving the extra time would be useful.
This project requires a 100k device and a 400k device on the same bus.
The I2C slow command appears to be compile only.
Is there a way to change fast to slow and back again at runtime?
Thanks.
That would be why, then.
Thanks.
Another win for the manual :)
Hi,
Having problems with the one line IF THEN LABEL not returning.
Is this a call or an absolute jump?
Thanks guys.
HIGH and LOW do not require any port setup. They set as output automatically, see the manual.
You don't need the ANSELs.
If you're on 3V3 try a smaller value pullup, which wouldn't hurt on 5V.
Check the leading edge with a scope.
If you have a lot of capacitance on those tracks pullup should be smaller, as low as...
Thanks, Henrik, that did it.
I'll be back on this project in a couple of days and you saved a lot of brain hurt.
Ken
Great timing as this exact problem has just consumed about 5 hours and I seem to hit a similar brick wall with every new PIC.
18F27J53 ~ outputs OK, inputs always read 0.
I know what the problem...
Magic, thank you. Upgraded to PBP3 and it all works on 18F27J53.
CCP1/2 had to go to CCP4/5/6, and now we have three PWMs over USB (which was the object of using this device).
As getting USB...
Bruce, once again you saved my bacon.
The real mystery is how this input worked for the last three years... going back through the old code now.
Thanks,
Ken.
Here's an interesting one.
Have 3 switches into a 16F876A; 10K pullups, 470pF slugs, active low.
Pins are high on scope. Existing product, worked forever. Tried new PICs.
After upgrading to...