Controller working after crstal failure in MKE04Z64VLH4

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

Controller working after crstal failure in MKE04Z64VLH4

670 Views
prasannanaik
Contributor III

Hi,

   I am using MKE04Z64VLH4 in a product.I am operating the microcontroller in FEE mode with 8 MHz crystal stepped up using FLL to 40 MHz . I am using PIT module to generate a 625 usec delay and toggling a port pin in PIT interrupt. While testing the behaviour of product on crystal failure, i had following strange observations:

1) Microcontroller operates even when crystal has been disconnected (Does it switch automatically to internal FEI mode or something?)

2) The 625 usec delay becomes 712 usec on crystal disconnection.

Test Process:

1) The crystal was disconnected by connecting one leg of crystal to a jumper and disconnecting that jumper in run time (Not an ideal way to connect crystal but i wanted to test it)

2) Measure 625 usec pulse on a Digital Storage Oscilloscope to check the state of microcontroller (Should be Idle when controller becomes dead)

Thanks and best regards,

Prasanna

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

575 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

If you are not setting the loss of clock interrupt, the PLL can continue working but it can lose the signal easily, I have done the same on other devices with the same ICS module and some of them works some minutes, some of them works just for a few seconds, If you use the  loss-of-clock interrupt you can detect this problem

Regards

Vicente Gomez

0 Kudos
Reply

575 Views
prasannanaik
Contributor III

Hi Vicente,

     Thanks for the reply, in our application we have enable the loss of clock interrupt but after disconnecting the crystal microcontroller still works same as before. I have kept it for 3 hours approximately but PLL does bot loses its signal and no interrupt came for loss of clock. PIT module still toggles the port pin in its PIT interrupt  In any case it is possible and How?

Thanks and best regards

Prasanna

0 Kudos
Reply

575 Views
mjbcswitzerland
Specialist V

Hi

The ICS in the KE04 doesn't have a PLL, but instead just the FLL. The FLL will continue oscillating even if its external reference is removed (which it locks its frequency too and doesn't derive its frequency from) but will oscillate at its natural rate rather than being locked to the reference.

Check the details about the lock and and loss of lock flags to check that they are reacting as expected:

pastedImage_3.png

pastedImage_4.png

Regards

Mark

Complete Kinetis solutions for professional needs, training and support: http://www.utasker.com/kinetis.html
Kinetis KE:
- http://www.utasker.com/kinetis/FRDM-KE02Z.html
- http://www.utasker.com/kinetis/FRDM-KE02Z40M.html
- http://www.utasker.com/kinetis/FRDM-KE04Z.html
- http://www.utasker.com/kinetis/FRDM-KE06Z.html
- http://www.utasker.com/kinetis/FRDM-KE15Z.html

uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market
Request Free emergency remote desk-top consulting at http://www.utasker.com/services.html

Open Source version at https://github.com/uTasker/uTasker-Kinetis

0 Kudos
Reply