Emulate a UART Over an I/O Expander
Zaggy
Posts: 10
I have a Philips PCF8574P 8 bit I/O expander on my I2C bus. This expander connects to a DMC-8 motorcontroller, that accepts commands at TTL levels running at 9600,8,N,1. I am getting the signals to the DMC-8, but no luck yet. Is it possible to emulate an UART over an expander? If so, any help would be greatly appreciated. Also, should I being sending LSB or MSB first?
Joe
Joe
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
This is not easy, but the Javelin can do it. However, if you now try to get an I/O expander output pin to toggle that fast -- well, you need to send into the I/O expander at least 8 times faster, right? I don't think the I2C bus can run that fast.
That's the basics of your problem in a nutshell. You MUST connect the DMC-8 directly to a Javelin pin for this to work.
PS Has anyone worked with a BL233 chip?
Thanks
Joe
Yes, you are correct about the I2C and I am currently using it. I am sorry I did not explain why I was doing this. I wanted to extend the I2C bus to over 300 feet and keep my cable count down to my remote unit to one cable. But this plan was getting crazy, so I have decided to go with 3 cables and forget extending the I2C bus. I plan on using a protocol that is built for the distance. I plan on going from RS232 to RS 422/485 and back to RS232 and where needed, to I2C.
Joe