I'll have a look at that errata sheet as you suggest.
Incidentally, DT: What program do you use for PIC simulation? It looks like a handy tool to have.
I'll have a look at that errata sheet as you suggest.
Incidentally, DT: What program do you use for PIC simulation? It looks like a handy tool to have.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
It's Proteus VSM, and it's extremely handy.
My breadboards are all covered in a layer of dust.
They don't get used much anymore.
DT
That was my initial reaction too.
But I've since found that it is EXTREMELY inexpensive, if you consider the value vs. cost.
You can't even buy a decent Digital O-Scope for that much.
But Proteus gives you Multiple 4ch-DSO's, 32ch-logic analyzers, voltmeters, ammeters, virtual terminals, signal generators, pattern generators, power supplies, I2C debuggers, SPI debuggers, frequency counters ...
There's a whole boat load of PIC's to choose from, plus all the other chips and discrete parts.
You can simulate multiple PIC's in the same circuit simultaneously.
And with PBP 2.60a, it integrates right into the MPLAB IDE for step by step debugging.
$479 gives you all that and either the 16F's or 18F's.
Can't get much cheaper than that.
I should be getting a commission, I sound like a commercial.
P.S. You can download the Demo Version and run your PBP programs on the sample circuits. You just can't modify the circuit.
Take a test drive.
<br>
<br>
Last edited by Darrel Taylor; - 17th August 2010 at 20:57. Reason: .
DT
Would it be possible to easily change one of these example routines to use the MSSP module for I2C Master?
In my program I change the clock speed from 12MHz to 250kHz, and it takes about 50ms to execute an I2CWRITE command at the slower speed. I measured the I2C clock to be about 800µs which is 1,2kHz... that's not much. I'm guessing that the PBP command includes it's own set of hardcoded delay... I'd like to save power, and if running I2C at 100kHz, I could get the PIC back to sleep 100 time faster.
I'm understanding quite well changes to make in registers to configure the hardware part, but I must say that when it get to assembler I don't understand too much of it right now...
Bookmarks