Try it and find out....
Hi n,
It may be possible?
C
Hi N,Exactly what chip and timer are you talking about. For a PIC18 PRE and POSTSCALE are usually timer parameters that some have and others don't. Using the K42 processor series as an example: TMR2 does and TMR3 does NOT.
Hi P,Do you have a copy of the datasheet? Mine is revision D from 2010. Document # DS39616D, titled:
PIC18F2331/2431/4331/4431Data Sheet
I'll see if I can get a few 40 pin 4431 chips. Those are sort of old and don't have support in MCC so it's back to doing a manual config.Hi C and N,
Some nice equipments there!
From the D/S I thought I'd found the settings for what I want, which is an 8mHz external crystal set to x4 PLL. and the internal Oscillator for the CCP1 section.
My settings stopped TMR1.
Here's the OSH oscillator PORTC.2 showing CCPR1 1mS and PORTD.7 is a isec flash in the MAIN LOOP, and the LOG, which shows the result from each setting change. The bottom, shows nothing as the TMR1 stopped.
I hope you can follow it.
C

Hi N,I'll see if I can get a few 40 pin 4431 chips. Those are sort of old and don't have support in MCC so it's back to doing a manual config.
The 4431 is pin compatible with one of my Q84 boards, so I can just drop it on that.
View attachment 317838
What board are you using? A PICDEM MC?
Don't worry about that, I can easily get some and I have a some XC8 compatible code to play with so I can see what's possible without using BASIC.Hi N,
I've just seen some in Mouser, I presume I could buy a couple and have them delivered to you. I'm in the UK, and the postage is E20, so a couple would be £40ish, and a bit too much for this really, I'm not sure what it would be where you are.
It may be easier if you use MPLAB, if you've got it (I don't use it) and set the settings there, as a test.
I try my settings in the Oshonsoft simulator, which works well.
My PCB, has been designed by me over years, and made orinted in China, then I stick the bits on.
C
Hi N,XC8 compatible code
Hi N,Don't worry about that, I can easily get some and I have a some XC8 compatible code to play with so I can see what's possible without using BASIC.
You may need to reconsider the MCU you chose for your project, then.Hi N,
The reason I needed to know if both oscillators can work at the same time, is time controlled INTERRUPTs, where I thought I needed PRE and POST-SCALING, but I've been testing and I think I have found that I don't.
I haven't finished checking, but I'll post my results.
C
Hi C,You may need to reconsider the MCU you chose for your project, then.
Hi Mr C,You mean 8MHz and 32MHz?
8mHz and 32mHz mean something else.
Be aware that if you have two crystals on the same board, one will try to pull the other into synchronization.
Some people have impediments they cannot overcome. It is not for want of trying; some things are just not in the realm of possibility for some people. It may feel good to rant, but it surely does not have the intended effect.Will you please stop typing 8mHz and 32mHz?
The period of one 8mHz cycle is 125 seconds. The period of one 32mHz cycle is 31.25 seconds.
The period of one 8MHz cycle is 125 nanoseconds. The period of one 32MHz cycle is 31.25 nanoseconds.
That is 9 orders of magnitude difference.