CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Problem with simulation RS232 Pickit2 with CCS

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ygon



Joined: 31 May 2015
Posts: 1

View user's profile Send private message

Problem with simulation RS232 Pickit2 with CCS
PostPosted: Sun May 31, 2015 12:26 pm     Reply with quote

Hello everybody.
I'm doing some tests with an example that I got from this site using 18F4550 with RS232 bus, programming in CCS and the Pickit2 recorder.

My problem is that it appears the messages in the UART Tool interface Pickit2 programmer. I recorded, I have given some research on the site of the CCS and it seems has no errors in my program.
Can anyone help me?

Thanks in advance.
Code:

#include <18F4550.h>
#fuses HS,NOWDT,PUT,BROWNOUT,NOLVP,CPUDIV1
#use delay(clock=4M)
#use RS232(baud=9600,xmit=PIN_B7,rcv=PIN_B6,PARITY=N,BITS=8,STOP=1)
void main()
{
int i;

delay_ms(500);
printf("Iniciando...");

for(i=0; i<=10; i++)
  {
   printf("%u\r\n", i);
   delay_ms(100);
  }

while(1);
}
lilyhad



Joined: 25 Jun 2015
Posts: 1

View user's profile Send private message

PostPosted: Thu Jun 25, 2015 10:41 am     Reply with quote

try change xmit=PIN_B7,rcv=PIN_B6 to:

xmit=PIN_C6,rcv=PIN_C7
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group