Searching \ for 'serial com' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: 'serial com'.

Truncated match.
PICList Thread
'serial com'
1999\10\25@040326 by PSL

part 0 16 bytes

1999\10\25@041156 by Don McKenzie

> PSL wrote:
> Hello People
> Do any one know of any sites that explain what is serial com
> explain things like baud rate, inverted polarity..all that stuff.
> thanks
> regards

Need RS-232 routines for PICmicros without UARTs?

Basic Stamp Compatible PIC Source Book/Disk On-Line Version Free!
Now converted to MicroChip Code, still available in Parallax Code.

A collection of ready-to-use assembly language routines
based on the instruction set of the BASIC Stamp ¨ single-board
computer by Scott Edwards Electronics.
Serin (receive data) receives a byte or string of bytes serially.
Optionally filters incoming data to a particular range of ASCII
characters, such as numbers.

Serin (convert # data) converts a numeric text string received
by Serin into a 16-bit number.
Serin (check qualifiers) determines whether text received by
Serin matches a table of qualifiers (password).  

Serout (send data) transmits a byte or string of bytes serially
Serout (format # data) converts a 16-bit number into a counted
string for transmission by Serout.  

Includes useful schematics.
For MicroChip code:
For Parallax code:

Don McKenzie

Don's Download Dungeon:
Australian Electronics Ring
Win $500USD Cash. Micro design contest:

1999\10\25@123218 by Dan Creagan

part 0 16 bytes

1999\10\26@165520 by Agnes en Henk Tobbe

part 0 1650 bytes
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>

<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 face=Courier size=2>Steve Thackeray did a very good
short tutorial on this list on 28th Ausgust 1999.</FONT></DIV>
<DIV><FONT color=#000000 face=Courier size=2></FONT><FONT face=Courier size=2>So
go to the archive and read it. If you cannot get there I'll mail you a copu off
<DIV><FONT face=Courier size=2>Henk Tobbe VK2GWK</FONT></DIV>
style="BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
   <DIV><FONT face=Arial size=2><BR>&nbsp;</DIV></FONT>
   <DIV><FONT face=Arial size=2>Hello People</FONT></DIV>
   <DIV><FONT face=Arial size=2>Do any one know of any sites that explain what
   is serial com</FONT></DIV>
   <DIV><FONT face=Arial size=2>explain things like baud rate, inverted
   polarity..all that stuff.</FONT></DIV>
   <DIV><FONT face=Arial size=2>thanks</FONT></DIV>
   <DIV><FONT face=Arial size=2>regards</FONT></DIV>


'serial com'
1999\12\12@205653 by soon lee
Hi everyone

Can anyone please explain how to setup the TXD and RXD function in F877..
or if you come accross any example can you please sent me the link



1999\12\12@215552 by Tony Nixon

picon face
soon lee wrote:
> Hi everyone
> Can anyone please explain how to setup the TXD and RXD function in F877..
> or if you come accross any example can you please sent me the link
> thanks
> regards

This code is written for a 16C74, but it should still work.

One difference with the 16F877 is the RCSTA register which has a ADDEN
bit, but this is disabled on powerup.

; enable ASYNC TX/RX
; 38400 - spbrg = 25, brgh = 1
; 19200 - spbrg = 12, brgh = 0
; 9600  - spbrg = 25, brgh = 0
         movlw b'01xxxxxx'
         movwf portc
         bsf status,rp0
         movlw b'10xxxxxx'   ; x = depends on your application
         movwf trisC

         movlw d'12'         ; 19200 baud
         movwf spbrg
         movlw b'00100000'    ; brgh = low
         ; movlw b'00100100'   ; brgh = high
         movwf txsta         ; enable Async Transmission, set brgh
         bcf status,rp0      ; ram page 0
         movlw b'10010000'
         movwf rcsta         ; enable Async Reception
         movf rcreg,w        ; flush receive buffer
         movf rcreg,w        ; maybe not needed
         movf rcreg,w

; Perhaps put a powerup settling time delay here

; program start
; receive a character and echo it back

         call Receive          ; -> RxHold

         movf RxHold,w
         movwf txreg

         goto Loop
; ----------------------------
; ----------------------------
; This routine does not return until a character is received.

Receive   nop
         btfss pir1,rcif     ; (5) check for received data
         goto Receive

         movf rcreg,w
         movwf RxHold        ; tempstore data

Best regards


More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...