KM34Z128CLL5: IRDA

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KM34Z128CLL5: IRDA

跳至解决方案
1,236 次查看
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 解答
948 次查看
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 项奖励
回复
1 回复
949 次查看
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 项奖励
回复