View Single Post
  #2   Spotlight this post!  
Unread 11-03-2008, 20:11
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Command to enter program mode?

The older RCs used to automatically enter program mode when you tried to download... both good and horrible.

You can take a pwm cable, and cut the red and yellow (or white) wire. Reconnect one end of the red wire to one end of the yellow wire. Leave the other pair disconnected. Then stick the end with the connected yellow wire into a digital I/O, and the end with the connected red wire into the program header.

Diagram:
Code:
DIO             PH

B -------------- B
R --          -- Y
Y -------------- R
In software, set the pin to high (1) in the initialization - don't forget to make it an output. When you want to enter program mode, set the pin to low.