Updates:
Status: Started
Owner: robhamerling
Comment #1 on issue 158 by robhamerling: Serial hardware init() should
include pin direction settings
http://code.google.com/p/jallib/issues/detail?id=158
Sorry for handling this issue so late!!
I was convinced that adding explicit direction setting of TX and RX pins in
the serial hardware libraries was not necessary! The datasheet of the
16f87/88 indeed says so (DS3487C section 11.0, page 97), but datasheets of
other PICs (e.g. 16f88x, DS41291 section 12.1.1, page 153) tell me that by
enabling the USART the RX and TX pins are configured automatically for
USART use. I have not read all datasheets, it could be this is valid only
for enhanced USARTs.
The proof of the pudding is in the eating: I have done some tests with
different PICs and even for the 16f88 it was not needed. See the attached
sample program.
So a fix seems not appropriate.
Rob.
Attachments:
16f88_serial_hardware_echo.jal 1.4 KB
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.