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;
//----------------------------------
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.
Hi,
please visit the page...
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