Mikroc, Hardware connection, Making it simple – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 256: Page, Connecting pc and pic via rs485 communication line

Advertising
background image

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

248

MikroElektronika: Development tools - Books - Compilers

page

Hardware Connection

+

+

MAX232

C1+

V+
C1-

C2+

C2-

V-

T2out

R2in

R2out

T2in

T1in

R1out

R1in

T1out

GND

Vcc

+

+

RX

TX

RTS

GND

+5V

RS232 to RS485 converter

Shielded pair

less than 300m

long

LTC485

R0

DE

DI

GND

A

B

Vcc

RE

LTC485

R0

DE

DI

GND

A

B

Vcc

RE

4M

H

z

+5V

+5V

+5V

+5V

PIC16F877A

RA0/AN0

RA2/AN2/Vref-

RA3/AN3/Vref+

RA4/TOCKI

RA5/AN4

RE0/RD/AN5

RE1/WR/AN6

RE2/CS/AN7

Vdd

Vss

OSC1

OSC2

RCO/T1OSO

RC1/T1OSI

RC3

RD0/PSP0

RD1/PSP1

MCLR/Vpp/THV

RC2/CCP1

RA1/AN1

RB7/PGD

RB6/PGC

RB5

RB4

RB3/PGM

RB2

RB1

RB0/INT

Vdd

Vss

RD6/PSP6

RD7/PSP7

RD5/PSP5

RD4/PSP4

RC7/RX/DT

RC6/TX/CK

RC5

RC4

RD3/PSP3

RD2/PSP2

Connecting PC and PIC via

RS485 communication line

Up to 32 devices can

be connected to

RS485 line

4.7uF

4.7uF

4.7uF

4.7uF

Reset

10K

10K

620R

620R

Advertising
This manual is related to the following products: