Hi,
I am using KM34Z128Cll5 for my project. I want to make use of IRDA using UART1 and cross-bar.
Tried doing the following:
PORT_Init (PORTD, PORT_MODULE_ALT4_MODE, PIN1); /*Enabling the Xbar output 3*/
PORT_Init (PORTD, PORT_MODULE_ALT0_MODE, PIN2); /*Comparator 0 input*/
SIM_MISC_CTL|=0x0200;
UART_Init (UART1, UART_MODULE_POLLMODE_CONFIG(2400,24e6));
XBAR_Init (XBAR_MODULE_NO_EDGE_DETECT_CONFIG, PRI_LVL2, NULL);
CMP_Init(CMP0,CMP_FILTER7_MODULE_EN_SAMPLE_PER_255_DAC_EN_CONFIG(21),IN1,IN7_DAC);
XBAR_Path (XBAR_CMP0OUT,XBAR_UARTRXINP);/*Comparator 0 output connected to the RX input of UART*/
XBAR_Path (XBAR_UARTMODTX,XBAR_OUT3);/*Uart output TX connected to the Xbar out3*/
UART_PutStr(UART1,"HELLO WORLD :-)");
Here: How do we know that UART1 RX is connected to the XBAR and UART1 Output is connected to the XBAR?
I am not able to get any data output.
Please Help me out in this.
Solved! Go to Solution.
Hi, Midhun,
I see that you are using the processor KM34ZII5, I suggest you download the "KM34P144M75SF0RM.pdf" also called
from the website:
This is the IRDA part diagram for transmitter:
for receiver:
Obviously, you have to set the quadTimer so that it can output 38KHz carrier and modulate the SCI output. The other RM for KM3x is vague and unclear about the IRDA part, I suggest you try to develop code based on the above diagram.
BR
XiangJun Rong
Hi, Midhun,
I see that you are using the processor KM34ZII5, I suggest you download the "KM34P144M75SF0RM.pdf" also called
from the website:
This is the IRDA part diagram for transmitter:
for receiver:
Obviously, you have to set the quadTimer so that it can output 38KHz carrier and modulate the SCI output. The other RM for KM3x is vague and unclear about the IRDA part, I suggest you try to develop code based on the above diagram.
BR
XiangJun Rong