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
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
When I connect PTB6, XTAL pin to 3.3V or 5V, the GPIO PDIR according bit(bit 15) =1
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!
-----------------------------------------------------------------------------------------------------------------------