Hi guys,
Stumbled across it while trying to figure out how do I use the USART. I was afraid that I couldn't do what I was trying to do with a smaller chip, so I was shopping up the line. Just caught my eye. I did mention it once briefly on another post, but no one picked up on it, so I figured it must not be a big deal to anyone else..
The reason for the need is related to a project that has been driving me to spend inordinate amounts of time on this forum and in front of my computer typing cryptic things that make casual observers believe that I know what the hell I'm doing.
I had asked some questions about model train DCC communication systems where they alternate the polarity of DC voltage to the tracks at different frequencies to communicate to on-board decoder/driver boards. I found a number of good DIY programs, but they were assembly and very hard for me to pull apart and modify for my purposes. I have spent the past few months learning mimic the parts of the system that I needed for my uses.
Essentially, I need to talk to a number of modules over only two wires that also carry the 12 VDC power.
The need for the inversion function is that I can't guarantee the installed polarity of other parts on the system, and in order to make it more robust, it takes power through a bridge rectifier and taps the comm sensing off of the power lines before the bridge through limiting resistors. The first part of the code looks for the idle levels on the line and sets the RX accordingly.
The project currently resides on a 16F628A and is working fairly well. I am looking at running the input through a XOR gate as a selectable inverter to control weather to invert the incoming signal or not.
http://www.fairchildsemi.com/ds/NC/NC7S86.pdf
mark




Bookmarks