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: www.piclist.com/techref/io/serials.htm?key=serial
Search entire site for: 'serial com'.

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

flavicon
face
part 0 16 bytes
</x-html>

1999\10\25@041156 by Don McKenzie

flavicon
face
> 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:
http://www.dontronics.com/convert.html
For Parallax code:
http://www.dontronics.com/see.html

Don McKenzie  spam_OUTdonTakeThisOuTspamdontronics.com http://www.dontronics.com

Don's Download Dungeon:   http://www.dontronics.com/download.html
Australian Electronics Ring http://www.dontronics.com/aering.html
Win $500USD Cash. Micro design contest:  http://www.simmstick.com

1999\10\25@123218 by Dan Creagan

flavicon
face
part 0 16 bytes
</x-html>

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

flavicon
face
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>
<STYLE></STYLE>

</HEAD>
<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
list.</FONT></DIV>
<DIV><FONT face=Courier size=2>Henk Tobbe VK2GWK</FONT></DIV>
<BLOCKQUOTE
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>&nbsp;</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>&nbsp;</DIV>
   <DIV><FONT face=Arial size=2>regards</FONT></DIV>
   <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

</x-html>


'serial com'
1999\12\12@205653 by soon lee
flavicon
face
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

1999\12\12@215552 by Tony Nixon

flavicon
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
;
; BAUD RATE SETTINGS
; 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

Loop
         call Receive          ; -> RxHold

         movf RxHold,w
         movwf txreg

         goto Loop
;
; ----------------------------
; RECEIVE CHARACTER FROM RS232
; ----------------------------
; 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
         return

--
Best regards

Tony

http://www.picnpoke.com
.....salesKILLspamspam@spam@picnpoke.com

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