Thanks for the clarification. Is there a way to utilize the oscillator that is supplying the clock for the PIC to also supply the clock pulse for the A6280, and use the SPI functions as well? Or would SPI not work at all in this example? It's a shame that the A26281 just comes in a QFN package, considering it has its own internal PWM counter.
I was just curious if it was possible or not. I'll have to play with the examples above and see what I can get out of it. I've never used the CCP module, but I like the idea of not having to rely on any external clock sources.
Ok, I got around to trying the example in this thread. I had to change a piece or two because I'm using a PIC12F683. The main changes were to change TRISB to use TRISIO (since there is only one GPx PORT), and of course the SHIFTOUT command to use the correct pins on that port as well.
I'm getting no results, and it doesn't seem that the CCP module is working correctly. Is there a way I can test this individually?
Bookmarks