4 separate PIC's with NCO modules. Done..... Why add unnecessary hardware?
4 separate PIC's with NCO modules. Done..... Why add unnecessary hardware?
Dave Purola,
N8NTA
EN82fn
I have a project I was using 3 PICs for 3 NCOs. I updated it adding a touch screen to replace buttons & LEDs, and while at it, replaced 3 PICs with a single PIC18F27Q43 (have to use MPLABX & XC8 since PBP doesn't yet cover that part). That still leaves one more NCO for you.
and 3 extra PIC chips does not count as extra hardware, but CD4536 does?![]()
Please,Please explain how you are going to get a single CD14536 to support 4 independent frequency's. I must be REAL stupid.....
Dave Purola,
N8NTA
EN82fn
Either 4 pics or 4 CD4536...
He meant that in either case you need 4 chips. PIC's need also programming but CD.. need some parts.
Ioannis
CD does not need any extra part. Frequency input of all 4 is connected to PICs HPWM output, which allows to do some extra things - since all these frequencies will be driving stepper motors, having them controlled by master clock (HPWM) will allow to make smooth startup and stopping![]()
I still think you can do it with Timers. For a Timer 2/4/6, adjust the PR2 for your frequency. For Timer 1/3/5, adjust TMR1H_L for your frequency. Clear the IF & Toggle the output, and reset TMR1H_L in the ISR. For TMR2/4/6, you don't even need to reload PR2. Newer PICs with HLT can to that in the background without so much as an interrupt.
Bookmarks