• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Logic analyser only works when running fast! SPI, 18F46K20, Oshonsoft.

Not open for further replies.


Active Member
I have a program on an 18F46K20 and trying to get SPI working.

I have a Logic analyser connected between a PIC and a compass module controlled by SPI.

I've tried various things: by altering the PIC timing, and changing the SSPCON1 settings. It's running with an oscillator speed of 8MHz x4.

When using Oshonsoft simulator I use the line:
Define SIMULATION_WAITMS_VALUE = 1 'Comment in for SIM out for PIC
I can get a reading on the analyser, only if I comment in this line, making the PIC run 1000x too fast.

Any ideas please?
Not open for further replies.

Latest threads

EE World Online Articles