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

Status
Not open for further replies.

camerart

Well-Known Member
Hi,
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?
Camerart.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…