Well,
This project has developed a bit from the early start.
The initial bit was a learning curve on communications. The project itself was to create a 3 phase sinewave to drive a reactive power compensation board.
I changed from I2C to SPI and use 3 DACs to output the 3 phases shifted by 120 degrees.
Photos to follow. I used a free PCB software to produce the board. If anyone is looking for a free package, PCB Artist is really good.
Because I needed to have it switchable for 50 and 60 hz and to get the timing correct, I used a PAUSEUS command to get my delays. Is there any issues with that command? It seemed to work ok up to a couple of hundred uSecs, but after that the PIC would not run. I ended up putting in a for next loop and adjusting the number of times the loop executed to get the correct timing.
Sorry cant post the code at the moment as its on my work computer.
Thanks
aajgss
Bookmarks