KM34Z128CLL5: IRDA

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

KM34Z128CLL5: IRDA

Jump to solution
1,233 Views
raveendranmidhu
Contributor I

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.

1 Solution
945 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Midhun,

I see that you are  using the processor KM34ZII5, I suggest you download the "KM34P144M75SF0RM.pdf" also called

  • Kinetis KM34: 75MHz Cortex-M0+ 256KB Flash (100-144pin)

       

from the website:

http://tinyurl.com/p9uzgqt

This is the IRDA part diagram for transmitter:

pastedImage_0.png

for receiver:

pastedImage_1.png

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

View solution in original post

0 Kudos
Reply
1 Reply
946 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Midhun,

I see that you are  using the processor KM34ZII5, I suggest you download the "KM34P144M75SF0RM.pdf" also called

  • Kinetis KM34: 75MHz Cortex-M0+ 256KB Flash (100-144pin)

       

from the website:

http://tinyurl.com/p9uzgqt

This is the IRDA part diagram for transmitter:

pastedImage_0.png

for receiver:

pastedImage_1.png

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

0 Kudos
Reply