View Full Version : USART Question
tazntex
- 13th April 2010, 16:54
Reading the datasheet for the 16F628A, it mentions "the transmitter and receiver are functionally independent". Does this mean I can use RB1 (receiver pin) on the processor and use RB2 (transmit pin) for another application such as an input?
Thanks
Luckyborg
- 13th April 2010, 17:21
You are correct, each pin can be independently setup as input or outputs, optionally using either one as a usart.
Archangel
- 13th April 2010, 18:05
Reading the datasheet for the 16F628A, it mentions "the transmitter and receiver are functionally independent". Does this mean I can use RB1 (receiver pin) on the processor and use RB2 (transmit pin) for another application such as an input?
ThanksHi Taz.
It ain't quite so straight forward as it looks, and right now I do not have time to search, but look at BRUCE's posts for the last 3 or so months, he tells how to do it.
Bruce
- 13th April 2010, 18:29
I would test this to be sure. I'm pretty sure that once you set SPEN (RCSTA.7) these pins are dedicated to the hardware USART, and you lose control of them for digital I/O.
tazntex
- 13th April 2010, 19:04
Thanks for the reply from all of ya'll.
P.S. Joe, the change is not very popular around here!
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.