Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Serin and Serout code Help

Status
Not open for further replies.

MangoKid

Junior Member level 1
Joined
Dec 8, 2010
Messages
17
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Activity points
1,393
Currently I am working on a project that involes serial communication between one PIC and another. The task is to flash an led at a rate (77) sent via serial. the code is as follows.

Sender: PIC 16F877A

CLEAR
DEFINE OCS 4
TRISA = %000000000


LOOP1:
SEROUT PORTA.0, 3, [77]
GOTO LOOP1:
END

Receiver: PIC 12F683

CLEAR
ANSEL = 0
CMCON0 = 7
X VAR BYTE
HIGH GPIO.2
INPUT GPIO.1

LOOP1:
SERIN GPIO.1, 3, X
GPIO.3 = 1
PAUSE x
GPIO.3 = 0
GOTO LOOP1
END

any help would be appreciated thanks a lot
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top