PWM & DCC (model trains)

tfoote:
I would like to make my Own DCC system. It uses PWM to send packets of data to the trains. However, Arduino operates at 5V. I need the PWM to be 12V. How do i step up that voltage but still keep the integrity of PWM?
Thanks
tfoote

Well don't reinvent the wheel, see what others have been doing. A quick goggle coughed up this promising site:

http://opendcc.sourceforge.net/

Here is another link showing a arduino wired to a DCC interface using a TI H-drive chip:

http://www.oscale.net/en/simpledcc

Lefty