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.

Help me fix my code for serial communication with PIC16F628A

Status
Not open for further replies.

raceman

Newbie level 4
Joined
Mar 14, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,326
hi all,

i am using a PIC16F628A chip in a serial communication project but I have a problem,

this code doesn't work, could anyone till me what is the problem with it??

CMCON = 7 ' Dis able the analog comparator
TRISA = 0
TRISB = %00000010

define HSER_RCSTA 90h
DEFINE HSER_TXSTA 20h
DEFINE HSER_BAUD 2400
DEFINE HSER_SPBRG 25


B VAR BYTE


MAIN:

HSERIN [DEC B]
PORTA = B
GOTO MAIN
END
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top