SAMIR_SBG
Newbie level 5

pic18f14k50
Hi,
I have made a small home made Eval board for PIC18F14K50 :







I have a PicKit 2 Programmer
I use CCS Compiler v4.088
I Uuse Proteus ISIS v7.4 SP3 for Simulation.
My problem is when I use Port_B5 to receiving a RS232 data it don't wok on ISIS and on my Eval Board but when I use another port like Port_B6 it work fine on ISIS and on my Eval board!!
Cans some one help me if i have an error in my source code?
CCS source Code to transmit a receiver character:
#include <18F14K50.h>
#fuses NOWDT,NOPROTECT,NOLVP
#fuses HS
#FUSES CPUDIV1
#use delay(clock=20M)
#use rs232(baud=57600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8)
#use fast_io (B)
void main()
{
char a;
while(1)
{
a=getc();
putc(a);
}
}
Hi,
I have made a small home made Eval board for PIC18F14K50 :







I have a PicKit 2 Programmer
I use CCS Compiler v4.088
I Uuse Proteus ISIS v7.4 SP3 for Simulation.
My problem is when I use Port_B5 to receiving a RS232 data it don't wok on ISIS and on my Eval Board but when I use another port like Port_B6 it work fine on ISIS and on my Eval board!!
Cans some one help me if i have an error in my source code?
CCS source Code to transmit a receiver character:
#include <18F14K50.h>
#fuses NOWDT,NOPROTECT,NOLVP
#fuses HS
#FUSES CPUDIV1
#use delay(clock=20M)
#use rs232(baud=57600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8)
#use fast_io (B)
void main()
{
char a;
while(1)
{
a=getc();
putc(a);
}
}