MKE02Z16VLC4 XTAL PIN

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

MKE02Z16VLC4 XTAL PIN

397 Views
AnangBohra
Contributor I

Hi,

I am working on a very simple project where I am reading inputs on nearly all the pins of the micro controller MKE02Z16VLC4 and sending the data over to serial port.

I am also not using any external clock source and the problem I am having is reading the input from XTAL pin.

I have disabled external crystal oscillator and configured the pin as input like all other pins. However, this pin always report HIGH no matter what i do. What am I missing?

I am using KDS and Processor expert.

Thanks

Anang

Labels (1)
0 Kudos
1 Reply

246 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Anang,

    I have help you create a project based on KDS and PE.

   When I connect PTB6, XTAL pin to GND, the GPIO PDIR according bit(bit 15) =0

pastedImage_2.png

When I connect PTB6, XTAL pin to 3.3V or 5V, the GPIO PDIR according bit(bit 15) =1

pastedImage_1.png

So, the XTAL pin is working.

Please refer to my attached code.

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos