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 CCS Technical Support

Problem with PIN_RF_13

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



Joined: 13 Apr 2010
Posts: 23

View user's profile Send private message

Problem with PIN_RF_13
PostPosted: Tue Feb 08, 2011 4:04 am     Reply with quote

Hello everyone,
I have this problem:

I use a PIC24FJ256GB110 and UART ports.
Code:

#include <24FJ256GB110.h>
#fuses HS,PR_PLL,NODEBUG,NOWDT,ICSP2, NOPROTECT, PLL5
#DEVICE ADC=10

#define BUTTON_1 PIN_D6

#pin_select U2TX = PIN_B15
#pin_select U2RX = PIN_F13
#use rs232(UART1, baud=1200, xmit=PIN_B15,rcv=PIN_F13, parity=N,errors, bits=8, STREAM=RS232)

#int_rda
void serial_isr1()
{
PIPPO = fgetc(RS232);
}


void main(void)
{
enable_interrupts(INT_RDA);
enable_interrupts(INTR_GLOBAL);

while(1)
 {

  if(!input(BUTTON_1))
    {
     fprintf(RS232,"hello");
   }

 }

}

TX=OK
RX=NO INTERRUPT

If use "rcv = PIN_F13", the interrupt does not work !!!
If use "rcv = PIN_F12 o other", the interrupt work !!!
I never had problems with other PIN, use other 2 UART, no problems

Why? There is a bug?
I designed my own PCB, to use the PIN and now I have to do it again?

Thanks to all
Alex
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