Hi,
I'm programming an 18F4620 PIC, using Oshonsoft.
While trying to get SPI to work, I connected a Logic analyser.
In Oshonsoft the simulator uses a code line:
Define SIMULATION_WAITMS_VALUE = 1 'Comment in for SIM out for PIC
to speed it up to a sensible speed.
I've found that the Analyser only works when the PIC has the LINE commented in, so a 1x second LED flash flashes 1000x too fast.
I've been trying different clock settings, all failed. Now I'm looking at OSCCON and OSCTUNE. The program clock is set to 8Mhz and the PLLEN = 1, so 4x faster =32MHz
Can someone help me set these too registers correctly please?
Camerart.
I'm programming an 18F4620 PIC, using Oshonsoft.
While trying to get SPI to work, I connected a Logic analyser.
In Oshonsoft the simulator uses a code line:
Define SIMULATION_WAITMS_VALUE = 1 'Comment in for SIM out for PIC
to speed it up to a sensible speed.
I've found that the Analyser only works when the PIC has the LINE commented in, so a 1x second LED flash flashes 1000x too fast.
I've been trying different clock settings, all failed. Now I'm looking at OSCCON and OSCTUNE. The program clock is set to 8Mhz and the PLLEN = 1, so 4x faster =32MHz
Can someone help me set these too registers correctly please?
Camerart.