Author |
Message |
Topic: communication with PC through RS232 |
circle
Replies: 6
Views: 12047
|
Forum: General CCS C Discussion Posted: Sat Jan 08, 2005 11:50 pm Subject: PIC still can only received 00H |
#include <16f877.h>
#fuses NOWDT, NOLVP, PUT, NODEBUG, XT
#use delay (clock=4000000)
#USE RS232(BAUD=9600, XMIT=PIN_C6, RCV=PIN_C7,PARITY=N,BITS=8,STREAM=COM_1)
void main()
{
char c ... |
Topic: communication with PC through RS232 |
circle
Replies: 6
Views: 12047
|
Forum: General CCS C Discussion Posted: Fri Jan 07, 2005 8:33 pm Subject: Thank you and anther question |
Thank you.But there is something wrong with my ICD2,it can't programe
MCU.When I want to put my program into PIC16F877,How should I
set appropriatel configuration bits for MCU?By far,I setup all ... |
Topic: communication with PC through RS232 |
circle
Replies: 6
Views: 12047
|
Forum: General CCS C Discussion Posted: Fri Jan 07, 2005 2:31 am Subject: communication with PC through RS232 |
The following are my ccs program:
#include <16f877.h>
#use delay (clock=4000000)
#USE RS232(BAUD=9600, XMIT=PIN_C6, RCV=PIN_C7,PARITY=N,BITS=8,STREAM=COM_1)
void main()
{
char c;
... |
|