Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 28, 2024, 07:51:55 07:51


Login with username, password and session length


Pages: [1]
Print
Author Topic: flow control in pbp or proton  (Read 5883 times)
0 Members and 1 Guest are viewing this topic.
falcon _bd
Active Member
***
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« on: March 13, 2009, 10:25:16 10:25 »

How to implement software (XON/XOFF)  flow control in pic basic pro or proton for serin, serout .

I am trying to connect pic16f877A and  SIM300CZ module.   




Thanks in advance
Logged

Opast
Newbie
*
Offline Offline

Posts: 32

Thank You
-Given: 31
-Receive: 19


« Reply #1 on: March 13, 2009, 01:58:41 13:58 »

Xon, Xoff (software flow control) mode or DTR/DSR mode (hardware flow control). 
In proton using Hardware USART command:
hserout [20] ‘XOFF…STOP TALKING
hserout [17] 'Xon

Using software command in Proton
Rsout 20 'Xoff
Rsout 17 'Xon

I got the numbers from http://www.asciitable.com/

It should be enough info for you to get started.
« Last Edit: March 13, 2009, 02:02:00 14:02 by Opast » Logged
falcon _bd
Active Member
***
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« Reply #2 on: March 13, 2009, 03:46:03 15:46 »

But I use serin, serout command.

Is it necessary more then 3 wire for serial communication with software flow control

Please tell me in details 
Logged

Opast
Newbie
*
Offline Offline

Posts: 32

Thank You
-Given: 31
-Receive: 19


« Reply #3 on: March 13, 2009, 04:02:13 16:02 »

I never used flow control but it does require 3 wires in / out and flow control wire.  For more info on Serout just open Proton manual page 360.  Flow control uses Fpin.

SerOut PORTA.0/PORTA.1, 84, [17]
porta.0 is serout pin
porta.1 is flow control pin
84 is 9600 baud / 8 bit true
17 is Xon

« Last Edit: March 13, 2009, 04:15:10 16:15 by Opast » Logged
falcon _bd
Active Member
***
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« Reply #4 on: March 14, 2009, 11:11:23 11:11 »

The Fpin connect with which pin in serial port  (RTS or CTS).

show me the schematic of connections.
Logged

Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC