Hi Salah: Maybe you could set your fuses configuration to INTRC_IO . Your are using INTRC config wich doesn't release the RA6 and RA7 for I/O ... Maybe that's your problem. I used many times the serial routines of the CCS compiler in many diferent pins and it always worked ok. As stated in the CCS compiler manual , the SCI will be used only if you assign the SCI pins. Good luck Fabio Pereira ----- Original Message ----- From: "Salah" To: Sent: Tuesday, September 10, 2002 11:59 PM Subject: [PIC]: PIC16F628 > Hi list! > would you tell me what is wrong with the following code please ! > > *************************************************** > #include <16F628.h> > #include > #fuses INTRC,NOWDT,PUT,NOPROTECT,NOBROWNOUT,NOLVP,NOMCLR > #use fast_io(A) > #use fast_io(B) > //#use fast_io(C) > #use delay(CLOCK=4000000) > #use rs232(baud=9600,xmit=PIN_A7,rcv=PIN_A6) > > void Ini(void); > > > void main() > { > > Ini(); > while(1) > { > printf("\nTest "); > } > } > > > void Ini(void) > { > port_b_pullups(TRUE); > setup_timer_1(T1_DISABLED); > setup_timer_2(T2_DISABLED,0,1); > setup_vref(FALSE); > setup_comparator(FALSE); > > set_tris_a(0x00); //All OutPut > set_tris_b(0x00); //All OutPut > } > ************************************************ > > I am just trying to use RA7,RA6 instead of RB1,RB2 for the serial > communication . > any comments,ideas please? > > Best Regards, > Salah. > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.