OK, this is just too wrong!
Somtimes you're told things that stick as Hard-Facts, and you never look for the alternative.
Like, ...You have Shattered my World!If you're using the USART, it has to be TRUE levels
Thanks,
 
 
		OK, this is just too wrong!
Somtimes you're told things that stick as Hard-Facts, and you never look for the alternative.
Like, ...You have Shattered my World!If you're using the USART, it has to be TRUE levels
Thanks,
DT
 
 
		I've never used this for sending inverted data with the USART, but it's really handy for
using the TX pin as an output on a 16F690.
With the USART setup to receive data, you can flip BAUDCTL.4 to set or clear the
hardware USART TX pin. Without it, you're stuck with the TX pin at logic 1 whenever the
USART is enabled.
 
 
		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
 inverting USART ?
 inverting USART ?
		Hi:
The 18F25J11 is not included in PBP. May be in the P250d.exe upgrade.?
Greetings...
Ruben de la Pena V.
 
 
		Maybe you could do this using some form of Dallas 1-wire communication. Use optoisolators to change the voltage levels. The 1-wire communication protocol is already set up for parasitic power management.
Tim Barr
 
 
		If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks