The C2R-CHY allows you to replace the factory radio in 2005-2006 Chrysler, Dodge and Jeep vehicles. The C2R-CHY provides Accessory, Parking Brake, Reverse, Parking light and VSS outputs. The C2R-CHY auto detects the factory amplifier in the vehicle and turns it on via the C2R-CHY's remote input wire.
Very nice unit for installing an aftermarket radio. I have only one issue with the unit. The VSS signal seems to not be 100% stable. I've been working with PAC on this issue, so I may update this later with more information.
MUST HAVE THIS UNIT IF:
You want to install an aftermarket radio, and continue to use the vehicles OEM Boston Acoustic Amp.
You want to install an aftermarket Navigation unit which requires a VSS Signal.
You can use the attached Mplab files and and program the C2R-CHY to turn on Chrysler radios. The edge connector pinout for the C2R-CHY is in the Chryslerturnon.c file. Use the latest Microchip C18 compiler, which i think is ver 3.06.
The blue/white wire when connected to +12volts will send a CAN message to turn on the radio. Some radios need an extra message to keep the radio happy, otherwise it will turn on and off every few seconds. I left that code out on purpose so people can just add to it. No fun unless its a challenge.
Here is bits and pieces that can be added to the previous files. I can't give everything, but at least you can see how the speed pulse is generated using Timer2. This is old code so variable names don't match.
Since thats the only thing your chip is doing I would sway against an ISR in favor of polling.
Personal preference, but for such a simple task as monitoring the VSS tone wheel's state I prefer a poll to an ISR.
Also, switching to an polling over an ISR clears up the INT pins for more important tasks (should they exist).
However, I certainly would not float multiply! I mean, you can, you obviously have the processing time to do so, but can I recommend bit_shift instead? Look at the result of x = 2 >> 3 compared to x = 2 * .125. The only difference is the >> comes rounded for you (in the case of using a float to store), and its is dozens of times faster. Downside is that is only works for powers of 2, which your magic number (0.00390625) is.
My projects rarely have time for such isrs and almost never have the luxury of float division. So, other then that stuff,
ok new to this and prolly confused but am i understanding that the C2R-CHY can be programmed to turn on a factory nav unit? I have one that I was wanting to try to install in a older vehicle.
I would love to have this file as well.. I work in a radio repair shop and we have issues when we get these Chrysler CAN radios in as we cannot test them on the bench. If someone could come up with a Ford solution that would be even more awesome.