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

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

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

Jump to solution
919 Views
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

Labels (1)
Tags (2)
0 Kudos
1 Solution
902 Views
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

View solution in original post

0 Kudos
7 Replies
915 Views
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 Kudos
907 Views
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 Kudos
903 Views
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 Kudos
887 Views
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 Kudos
860 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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

39.4.1 I2C protocol.png

0 Kudos
900 Views
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 Kudos
893 Views
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 Kudos