|
From: Dave M. <mc...@ne...> - 2005-06-20 04:36:08
|
On Jun 19, 2005, at 10:19 PM, J S wrote:
> Also, I have another quick question. How would you
> write the code if you didn't want to use the standard
> serial TXD pin on the 2051 and were to use a general
> I/O pin like P1.7? This would free up the built in
> serial pins so I can use them for communicating with a
> PC.
For this you'd have to use either an outboard UAR/T, or implement it
in software...shift, toggle pin, wait for one bit period, rinse,
repeat. It's easy to do and there's code floating around everywhere
for that...google is your friend.
Of course if the point is to have a text LCD and a free serial port,
what I'd do is use a standard parallel-interface (no, not "PC parallel
printer port") HD44780-based LCDs that are so well-known and loved in
this field.
-Dave
--
Dave McGuire "I wonder what 'Error Code 1' means. That's
Cape Coral, FL what it said when it started smoking."
-Jonathan Patschke
|