MC9S12XEP100, SCI2, RXD interrupt can't be triggered

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S12XEP100, SCI2, RXD interrupt can't be triggered

413 Views
xanderSU
Contributor I

The send function of SCI2  works, the wave on RXD pin by an oscilloscope also is right, but it can't run into the interrupt routine.  

Why?  Is there any other additional settings about SCI2, about PJ0 and PJ1? 

Thanks a lot.

 

 

All the initialize code about SCI2 now are:

//----------------------------------

SCI2SR2_AMAP = 0;  

SCI2BD =  32000000/16/9600;      

SCI2CR2_RIE = 1;  

SCI2CR2_RE  = 1;  

SCI2CR2_TE  = 1;                                      

SCI2SR2_AMAP = 1;

//----------------------------------

 

 

0 Kudos
Reply
2 Replies

362 Views
xanderSU
Contributor I

my project is attached, in which the SCI0 and SCI2 are initialized.   

And in other projects, I also tried SCI1.

The three SCI are the same in initialize, but the SCI0 and SCI1 all works, including TXD and RXD.   

Only the RXD function doesn't work, while the TXD funciton of SCI2 works.

 

I wonder, if there is some special settings about SCI2, even about the related pins, such as PJ0/PJ1. 

0 Kudos
Reply

377 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

please visit the page...

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/LAMA-s-S12XE-unofficial-examples/ta-p/11007...

and the example "XEP100 - SCI - ECHO - isr". There are more examples which can help you with you design.

will help you to make full picture about how it works.

If you still have any issue then full short project is good next step to see all dependencies.

(for example, in your setup I do not see asm CLI; // enable all i-bit maskable interrupts, I do not se interrupt function definition,....)

Best regards,

Ladislav

0 Kudos
Reply