| Home » Diverses rubriques » Archive forum sujets |
|
|
|
|
Cablage RS232 du handshake avec un PIC
|
|
Salut,
Je cherche un schema de cablage entre un MAX232 et un PIC (16F877 dans mon cas) pour gerer le handshaking (RTS/CTS etc). Si quelqu'un a ca dans un coin ... J'utilise le compilateur CCS. Merci bien,
Matthieu.
Numéro de l'article: 80352
| De: Matt
| Date: 2002-06-26 18:10:19
|
|
|
Re: Cablage RS232 du handshake avec un PIC
|
|
Pas de PBM, J'ai utilisé le RTS pour le RS485 et avec CCS. tu peux utiliser la broche B1 pour le RTS et tu pgm : #use rs232(baud=4800, xmit=PIN_C6, rcv=PIN_C7,ENABLE=PIN_B1) Mais tout est bien décrit dans le manuel CCS à la page 165. "What is an easy way for two or more PICs to communicate? There are two example programs (EX_PBUSM.C and EX_PBUSR.C) that show how to use a simple one-wire interface to transfer data between PICs. Slower data can use pin B0 and the EXT interrupt. The built-in UART may be used for high speed transfers. An RS232 driver chip may be used for long distance operations. The RS485 as well as the high speed UART require 2 pins and minor software changes. The following are some hardware configurations." Eric
Numéro de l'article: 80371
| De: AMI
| Date: 2002-06-26 23:23:24
|
|
|
Re: Cablage RS232 du handshake avec un PIC
|
|
et au niveau du cablage (ma question en fait)
to high mon
Numéro de l'article: 80377
| De: Matt
| Date: 2002-06-27 07:44:40
|
|
|
Re: Cablage RS232 du handshake avec un PIC
|
|
pour le schéma , le module ICD de Microchips tedonne un bon exemple. http://perso.wanadoo.fr/claude.dreschel/commentfaire/fichiers/icd_MPLAB.pdf
Eric
Numéro de l'article: 80413
| De: AMI
| Date: 2002-06-27 19:51:19
|
|
|