PDA

View Full Version : Multiple versions



P. Short
07-11-2007, 02:14 PM
Right now there are two versions of the source code firmware file (one for regular use, one for PWM), and there will shortly be a third version (DC-only PWM mode). This will become more and more of a mess to keep updated (ensuring that bug fix in one version ends up correctly implemented in the others), so I intend to go back to one source file, with DEFINE statements to select between the various options. There will be one line that the user will have to change to enable PWM use, and one other line to enable DC operation.

--

Phil

Mrplow123
07-11-2007, 03:45 PM
That is a great idea. It will make things alot cleaner and easier to follow.

cmurray
07-11-2007, 06:24 PM
What about baud rate
and internal vs external clock.

Just trying to be difficult.

joel

And don't loose that diagnostic code.
Got a feeling a lot of people are going to be using it this year.

P. Short
07-11-2007, 06:35 PM
There is already a DEFINE for baudrate, as well as one for the clockrate. Changing the clock source takes a one line change, I think, in the __CONFIG statement.

--

Phil

FireGod
07-11-2007, 09:50 PM
What is the difference between the DC PWM and the AC PWM code?

P. Short
07-11-2007, 10:14 PM
In AC PWM mode the PWM is synchronized to the AC power line (more specifically to the zero-crossing), in DC PWM mode it is free-running (so the zero-crossing signal is ignored).

--

Phil

tconley
07-11-2007, 11:34 PM
Thank you for all that work so i can do my project