This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm using TMS320F28335 micro and Code Composer Studio V3.3 for the project development.
I need to generate SCI Receive interrupt whenever characters received through UART.
So, I have done the required SCI Receive interrupt configuration in my source code.(Please refer attached Application_Sci.c file)
Multiplexed GPIO11 is used for the SCI Receive operation.2781.SCI_Rx.zip
Settings for the interrupt enable is done in main.c file.
But, Interrupt is not triggered? However, the configuration settings looks correct.
Anyone come across such problem?.
Regards,
Karthick
Hi Karthick,
I took a look at your sources. It does appear that you have the PIE setup correctly to generate SCI RX interrupts, but I think you might have included the wrong file in your zip. All I see are application_isr.c and main.c. I can't find any SCI init code (which must be where the problem lies). Could you post your init code for me to look over?
Trey
Hi Trey,
Thanks for the immediate reply.
oops. I forgot to attach the sci configuration file.
Now I have attached the Application_sci.c which includes the sci settings.7558.SCI_Rx.zip
Regards,
Karthick PH
Karthick,
I took a look and your SCI initialization looks good. I'm beginning to think this isn't a problem with interrupts, but possibly with baud rate. When you send characters to the device, are you able to see them in the receive buffer? Inversely, if you transmit a character does the bit time match up with what you think it should be (9600 Baud = 104uS)? If you aren't seeing anything in the recieve buffer and your transmit bit time isn't 104uS, then you have a problem with your baud rate configuration.
Trey
Hi Trey,
Thanks for the valuable suggestion.
I have resolved the issue. The problem is I have configured the GPIO11 pin for PWM6 module in the InitEPwm6Gpio() function.
Also I have used the same GPIO11 pin for the SCIRXDB (SCI receive in B channel) interrupt.
In main.c file I have called InitSci() function prior to InitEPwm6Gpio() function. Such that, PWM6 have been configured.
So, after this I configured GPIO11 only for SCI receive; then interrupt got triggered.
Once again, I appreciate your suggestions on this.
Thanks
Karthick PH