PWM & DCC (model trains)

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

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

I can get past the programming. What i'm looking for is how do i boost the power from 5v to 12v

tfoote:
I can get past the programming. What i'm looking for is how do i boost the power from 5v to 12v

Build this interface I guess: http://www.oscale.net/en/simpledcc

Lefty