WHY KW36 LED IS ON WHEN LED PIN CONNECTED TO PTB0?

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

WHY KW36 LED IS ON WHEN LED PIN CONNECTED TO PTB0?

跳至解决方案
3,741 次查看
nidhintomy
Contributor IV

My leds are on when led pin (eg. PTA16 - LED Green) is connected to PTB0 ( J2[1] - J2[10] are shorted ).

From data sheet PTA16 and PTB0 are default disabled.

1. Then how this is happened ?

2. What line of code should i used to solve this issue ?

 

Best Regards,

Nidhin

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
3,724 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

I don't know why you connect PTA16-PTB0. The voltage of PTB0 will light the GREEN LED. You can have a look at the circuit of LEDs.

FRDM-KW36 Q2 PTA16.png

在原帖中查看解决方案

0 项奖励
回复
7 回复数
3,737 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Nidhin,

Did you check the value of PTB0?

PTB0 R44 FRDM-KW36.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
3,729 次查看
nidhintomy
Contributor IV

Hi @Robin_Shen 

The Voltage at PTB0 = 1.5V

I erase the KW36. But still led is ON.

 

Best Regards,

Nidhin

0 项奖励
回复
3,725 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

I don't know why you connect PTA16-PTB0. The voltage of PTB0 will light the GREEN LED. You can have a look at the circuit of LEDs.

FRDM-KW36 Q2 PTA16.png

0 项奖励
回复
3,709 次查看
nidhintomy
Contributor IV

Hi @Robin_Shen 

PTB0 pin can be configured as I2C0_SCL.

Does the voltage at PTB0 affect the I2C functionality ?

 

Best Regards,

Nidhin

0 项奖励
回复
3,682 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

no. I2C pins need those external pull-up resistors. 

39.4.1 I2C protocol.png

0 项奖励
回复
3,722 次查看
nidhintomy
Contributor IV

Hi @Robin_Shen 

I have a adc sample project in which i use PTB3 as adc input. The led3(red led) is on when i give input to pin PTB3. Due to led3 on i will get less voltage to adc input.

How to avoid this type of conflict with led?

Also, how to disable or make voltage 0 in pin PTB0?

 

Best Regards,

Nidhin

0 项奖励
回复
3,715 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Please use other external ADC input without other circuits. 

LED3 PTB3 FRDM-KW36.png

If you want to light up the LED when the ADC input is higher than the voltage, please change the output of LED control pins after read the ADC result.

0 项奖励
回复