View Full Version : SEROUT and HSEROUT
karlosguay
- 13th February 2014, 17:06
I'm working with 18F6720 and RN171 (WiFly). I need send commands to RN171 with Uart.
Then I send
serout PORTC.6,N9600,["$$$"]
and RN171 don't reply
but if i send
DEFINE HSER_BAUD 9600
hserout ["$$$"]
then RN171 reply CMD (OK).
Where is the problem?? SEROUT and HSEROUT don't work equally??
best regards
pedja089
- 13th February 2014, 17:13
Try mode T9600 for serout.
karlosguay
- 14th February 2014, 08:59
with T9600 is the same
Charlie
- 14th February 2014, 14:27
It's likely in the configuration bits.
Post your complete code.
Mike2545
- 3rd September 2014, 22:13
Try SEROUT2
Demon
- 7th September 2014, 23:08
Is USART also using port c? (haven't checked datasheet from phone).
Analog on port c?
Configs ok?
Robert
Archangel
- 8th September 2014, 09:54
I need send commands to RN171 with Uart.
Then I send
Where is the problem?? SEROUT and HSEROUT don't work equally??
best regards
The short answer is No, UART is the HARDWARE serial port whereas serout & serout2 are bit banged serial routines. The hardware UART will receive or send data only on the Rx & Tx pins of the PIC. The bitbang serial ports will operate on nearly any port or pin. Debug is also a bitbang serial port and many will say the neatest and fastest of the bitbang routines. The UART will send & receive 2 bytes while code is doing something else. Not so with bitbang.
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.