Ygon
Joined: 31 May 2015 Posts: 1
|
Problem with simulation RS232 Pickit2 with CCS |
Posted: Sun May 31, 2015 12:26 pm |
|
|
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);
} |
|
|