PT2000 CLK problem on FRDMPT2000EVM

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

PT2000 CLK problem on FRDMPT2000EVM

Jump to solution
736 Views
Gelby
Contributor III

Hello, I'm using the FRDMPT2000EVM connected to my microcontroller board.

The connections betwheen the two boards are:

Reset, DRVEN, SCLK, MISO, MOSI, CS, VCCIO(3.3V), VCC5, CLK.

I'm sure the SPI communication is working ( I can read / write registers).

I verified with a scope meter on the CLK jumper(that is closed) on the eval board that the CLK signal is as per the specification (frequency 1MHz, duty cycle 50 %, voltage level 3.3V) but when I read the mainBackupClockStatus register (address 0x1A8) the bit 0 (loss_of_clock) is settled stating the external clock is not recognized, but I'm sure the clock is correct and correctly connected, I tried also to set the bit switch_to_clock_pin in the same register without success, please help me, where is the mistake?

Regards

Tags (1)
0 Kudos
Reply
1 Solution
580 Views
RafaR
NXP Employee
NXP Employee

Hello alessandrocorti

Good day!

If external clock fails: device automatically switches to backup clock

If external clock comes back: device usually does NOT auto-return

You must switch again manually

I hope this information has helped you, please let me know if you need help with anything else.

Have a great day and best of luck.

View solution in original post

0 Kudos
Reply
6 Replies
709 Views
RafaR
NXP Employee
NXP Employee

Hello alessandrocorti

Good day!

The PLL is locked about 25 us after the external CLK is enabled

Switch_to_clock_pin: this bit (active on rising edge) is used to provide a way to reset the loss of clock condition. If this bit is set during a loss of clock condition it is reset as soon as the clock manager switches the PLL input to the external reference. If this bit sets while there is no loss of clock, the bit resets immediately without any effect.

Could you confirm that the PLL does change when you try to perform the switch_to_clock_pin?

After the reset, try with a delay. Let the clock monitor stabilize.

I also recommend that you reread chapter 7.4.3 Clock monitor, flash enable, and DrvEn of the datasheet

I hope this information has helped you, please let me know if you need help with anything else.

Have a great day and best of luck.

0 Kudos
Reply
677 Views
Gelby
Contributor III

Thank you RafaR for you reply.

I tought that the PT2000 chip was able to switch alone to the external clock without the need to do manually the swith by the user software.

Anyway, as I stated before, I was trying to switch manually but after that, all the next registers accesses returned 0xAAAC like error code.

Today I tried changing the logic behind and hopefully I found the bug in my code, I had to add a 50 us delay betwheen a write register  access and a read register access, the new function that seems to work is now:

int PT2000ClockCheck(PT2000_Device *PT2000Device)

{

PT2000Device->extClkIsOk = PT2000MissingClkBitCheck(PT2000Device);

 

while( !PT2000Device->extClkIsOk )

{

PT2000Device->BkpClkStatReg.B.SwitchToClkPin = 1;

 

PT2000WriteRegister(PT2000Device, mainBackupClockStatus, PT2000Device->BkpClkStatReg.U);

delayus(50)); // Wait 50 micro seconds

PT2000Device->extClkIsOk = PT2000MissingClkBitCheck(PT2000Device);

}

 

return 0;

}

 

where the function PT2000MissingClkBitCheck is:

 

boolean PT2000MissingClkBitCheck(PT2000_Device *PT2000Device)

{

boolean CLKCheckResult = TRUE;

 

// Check CLK 1MHz

PT2000TransferData(PT2000Device, SpiCmdWrite, selectionRegister, COMMON_PAGE); // Set common page

 

PT2000Device->BkpClkStatReg.U = PT2000TransferData(PT2000Device, SpiCmdRead, mainBackupClockStatus, 0x00); // Read backup clock status register

 

if( PT2000Device->BkpClkStatReg.B.LossOfClk )

{

CLKCheckResult = FALSE; // If 1MHz CLK not there set results to 0

}

 

return CLKCheckResult;

}

 

Without the delayus(50) doesn't work.

Do you confirm I need that delay?

Is this correct or to be more safety must I set time delay longer?

In general, must I insert a delay betwheen two successive access on a register?

 

Best Regards

 

Tags (1)
0 Kudos
Reply
662 Views
RafaR
NXP Employee
NXP Employee

Hello alessandrocorti

Good day!

Do you confirm I need that delay?

Yes, it's perfect that you implemented it.

Is this correct or to be more safety must I set time delay longer?

More than 50 us is excessive, I think. You could give it another 20 us if you want to be sure; you shouldn't have any problems with 50 us.

In general, must I insert a delay betwheen two successive access on a register?

In general, this shouldn't be necessary; this delay was to give the PT2000 time to stabilize with the clock.

I hope this information has helped you, please let me know if you need help with anything else.

Have a great day and best of luck.

0 Kudos
Reply
587 Views
Gelby
Contributor III

Hello RafaR, 

thank you for your reply, just the last question because I have yet a doubt,

In general must I every time switch manually to the external clock pin or should the PT2000 switch automatically when the external clock is recognized?

Thanks 

Regards.

0 Kudos
Reply
581 Views
RafaR
NXP Employee
NXP Employee

Hello alessandrocorti

Good day!

If external clock fails: device automatically switches to backup clock

If external clock comes back: device usually does NOT auto-return

You must switch again manually

I hope this information has helped you, please let me know if you need help with anything else.

Have a great day and best of luck.

0 Kudos
Reply
563 Views
Gelby
Contributor III

Hello RafaR,

I understand what you say.

I think In my case the problem is that at the startup the external clock is not recognized by the PT2000 because the microcontroller board that feed the clock is not powered at the same time the PT2000 is, so the PT2000 startup first without external clock, then the microcontroller begin to feed the clock but at this moment I must switch the clock manually.

I hope in the final board with the PT2000 and the microcontroller powered up at the same time, the PT2000 could recognize the clock at the startup phase.

Thanks again and Best Regards

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2369652%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPT2000%20CLK%20problem%20on%20FRDMPT2000EVM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2369652%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I'm%20using%20the%26nbsp%3BFRDMPT2000EVM%20connected%20to%20my%20microcontroller%20board.%3C%2FP%3E%3CP%3EThe%20connections%20betwheen%20the%20two%20boards%20are%3A%3C%2FP%3E%3CP%3EReset%2C%20DRVEN%2C%20SCLK%2C%20MISO%2C%20MOSI%2C%20CS%2C%20VCCIO(3.3V)%2C%20VCC5%2C%20CLK.%3C%2FP%3E%3CP%3EI'm%20sure%20the%20SPI%20communication%20is%20working%20(%20I%20can%20read%20%2F%20write%20registers).%3C%2FP%3E%3CP%3EI%20verified%20with%20a%20scope%20meter%20on%20the%20CLK%20jumper(that%20is%20closed)%20on%20the%20eval%20board%20that%20the%20CLK%20signal%20is%20as%20per%20the%20specification%20(frequency%201MHz%2C%20duty%20cycle%2050%20%25%2C%20voltage%20level%203.3V)%20but%20when%20I%20read%20the%26nbsp%3B%3CSPAN%3EmainBackupClockStatus%20register%20(address%200x1A8)%20the%20bit%200%20(loss_of_clock)%20is%20settled%20stating%20the%20external%20clock%20is%20not%20recognized%2C%20but%20I'm%20sure%20the%20clock%20is%20correct%20and%20correctly%20connected%2C%20I%20tried%20also%20to%20set%20the%20bit%20switch_to_clock_pin%20in%20the%20same%20register%20without%20success%2C%20please%20help%20me%2C%20where%20is%20the%20mistake%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2371059%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PT2000%20CLK%20problem%20on%20FRDMPT2000EVM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2371059%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20RafaR%2C%3C%2FP%3E%3CP%3EI%20understand%20what%20you%20say.%3C%2FP%3E%3CP%3EI%20think%20In%20my%20case%20the%20problem%20is%20that%20at%20the%20startup%20the%20external%20clock%20is%20not%20recognized%20by%20the%20PT2000%20because%20the%20microcontroller%20board%20that%20feed%20the%20clock%20is%20not%20powered%20at%20the%20same%20time%20the%20PT2000%20is%2C%20so%20the%20PT2000%20startup%20first%20without%20external%20clock%2C%20then%20the%20microcontroller%20begin%20to%20feed%20the%20clock%20but%20at%20this%20moment%20I%20must%20switch%20the%20clock%20manually.%3C%2FP%3E%3CP%3EI%20hope%20in%20the%20final%20board%20with%20the%20PT2000%20and%20the%20microcontroller%20powered%20up%20at%20the%20same%20time%2C%20the%20PT2000%20could%20recognize%20the%20clock%20at%20the%20startup%20phase.%3C%2FP%3E%3CP%3EThanks%20again%20and%20Best%20Regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2370872%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PT2000%20CLK%20problem%20on%20FRDMPT2000EVM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2370872%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20alessandrocorti%3C%2FP%3E%0A%3CP%3EGood%20day!%3C%2FP%3E%0A%3CP%3EIf%20external%20clock%20fails%3A%20device%20automatically%20switches%20to%20backup%20clock%3C%2FP%3E%0A%3CP%3EIf%20external%20clock%20comes%20back%3A%20device%20usually%20does%20NOT%20auto-return%3C%2FP%3E%0A%3CP%3EYou%20must%20switch%20again%20manually%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20information%20has%20helped%20you%2C%20please%20let%20me%20know%20if%20you%20need%20help%20with%20anything%20else.%3C%2FP%3E%0A%3CP%3EHave%20a%20great%20day%20and%20best%20of%20luck.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2370665%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PT2000%20CLK%20problem%20on%20FRDMPT2000EVM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2370665%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20RafaR%2C%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%20for%20your%20reply%2C%20just%20the%20last%20question%20because%20I%20have%20yet%20a%20doubt%2C%3C%2FP%3E%3CP%3EIn%20general%20must%20I%20every%20time%20switch%20manually%20to%20the%20external%20clock%20pin%20or%20should%20the%20PT2000%20switch%20automatically%20when%20the%20external%20clock%20is%20recognized%3F%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3CP%3ERegards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2370332%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PT2000%20CLK%20problem%20on%20FRDMPT2000EVM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2370332%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20alessandrocorti%3C%2FP%3E%0A%3CP%3EGood%20day!%3C%2FP%3E%0A%3CP%3E%3CU%3EDo%20you%20confirm%20I%20need%20that%20delay%3F%3C%2FU%3E%3C%2FP%3E%0A%3CP%3EYes%2C%20it's%20perfect%20that%20you%20implemented%20it.%3C%2FP%3E%0A%3CP%3E%3CU%3EIs%20this%20correct%20or%20to%20be%20more%20safety%20must%20I%20set%20time%20delay%20longer%3F%3C%2FU%3E%3C%2FP%3E%0A%3CP%3EMore%20than%2050%20us%20is%20excessive%2C%20I%20think.%20You%20could%20give%20it%20another%2020%20us%20if%20you%20want%20to%20be%20sure%3B%20you%20shouldn't%20have%20any%20problems%20with%2050%20us.%3C%2FP%3E%0A%3CP%3E%3CU%3EIn%20general%2C%20must%20I%20insert%20a%20delay%20betwheen%20two%20successive%20access%20on%20a%20register%3F%3C%2FU%3E%3C%2FP%3E%0A%3CP%3EIn%20general%2C%20this%20shouldn't%20be%20necessary%3B%20this%20delay%20was%20to%20give%20the%20PT2000%20time%20to%20stabilize%20with%20the%20clock.%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20information%20has%20helped%20you%2C%20please%20let%20me%20know%20if%20you%20need%20help%20with%20anything%20else.%3C%2FP%3E%0A%3CP%3EHave%20a%20great%20day%20and%20best%20of%20luck.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2370208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PT2000%20CLK%20problem%20on%20FRDMPT2000EVM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2370208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20RafaR%20for%20you%20reply.%3C%2FP%3E%3CP%3EI%20tought%20that%20the%20PT2000%20chip%20was%20able%20to%20switch%20alone%20to%20the%20external%20clock%20without%20the%20need%20to%20do%20manually%20the%20swith%20by%20the%20user%20software.%3C%2FP%3E%3CP%3EAnyway%2C%20as%20I%20stated%20before%2C%20I%20was%20trying%20to%20switch%20manually%20but%20after%20that%2C%20all%20the%20next%20registers%20accesses%20returned%200xAAAC%20like%20error%20code.%3C%2FP%3E%3CP%3EToday%20I%20tried%20changing%20the%20logic%20behind%20and%20hopefully%20I%20found%20the%20bug%20in%20my%20code%2C%20I%20had%20to%20add%20a%2050%20us%20delay%20betwheen%20a%20write%20register%26nbsp%3B%20access%20and%20a%20read%20register%20access%2C%20the%20new%20function%20that%20seems%20to%20work%20is%20now%3A%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CP%3E%3CSPAN%3Eint%3C%2FSPAN%3E%20%3CSPAN%3EPT2000ClockCheck%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3EPT2000_Device%3C%2FSPAN%3E%3CSPAN%3E%20*PT2000Device)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPT2000Device-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3EextClkIsOk%3C%2FSPAN%3E%3CSPAN%3E%20%3D%20PT2000MissingClkBitCheck(PT2000Device)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Ewhile%3C%2FSPAN%3E%3CSPAN%3E(%20!PT2000Device-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3EextClkIsOk%3C%2FSPAN%3E%3CSPAN%3E%20)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPT2000Device-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3EBkpClkStatReg%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EB%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3ESwitchToClkPin%3C%2FSPAN%3E%3CSPAN%3E%20%3D%201%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EPT2000WriteRegister(PT2000Device%2C%20%3C%2FSPAN%3E%3CSPAN%3EmainBackupClockStatus%3C%2FSPAN%3E%3CSPAN%3E%2C%20PT2000Device-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3EBkpClkStatReg%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EU%3C%2FSPAN%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Edelayus(50))%3B%20%3C%2FSPAN%3E%3CSPAN%3E%2F%2F%20Wait%2050%20%3C%2FSPAN%3E%3CSPAN%3Emicro%3C%2FSPAN%3E%3CSPAN%3E%20seconds%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPT2000Device-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3EextClkIsOk%3C%2FSPAN%3E%3CSPAN%3E%20%3D%20PT2000MissingClkBitCheck(PT2000Device)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Ereturn%3C%2FSPAN%3E%3CSPAN%3E%200%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Ewhere%20the%20function%20PT2000MissingClkBitCheck%20is%3A%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Eboolean%3C%2FSPAN%3E%20%3CSPAN%3EPT2000MissingClkBitCheck%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3EPT2000_Device%3C%2FSPAN%3E%3CSPAN%3E%20*PT2000Device)%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CP%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eboolean%3C%2FSPAN%3E%3CSPAN%3E%20CLKCheckResult%20%3D%20TRUE%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E%2F%2F%20Check%20CLK%201MHz%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPT2000TransferData(PT2000Device%2C%20%3C%2FSPAN%3E%3CSPAN%3ESpiCmdWrite%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3E%3CSPAN%3EselectionRegister%3C%2FSPAN%3E%3CSPAN%3E%2C%20COMMON_PAGE)%3B%20%3C%2FSPAN%3E%3CSPAN%3E%2F%2F%20Set%20common%20page%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EPT2000Device-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3EBkpClkStatReg%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EU%3C%2FSPAN%3E%3CSPAN%3E%20%3D%20PT2000TransferData(PT2000Device%2C%20%3C%2FSPAN%3E%3CSPAN%3ESpiCmdRead%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3E%3CSPAN%3EmainBackupClockStatus%3C%2FSPAN%3E%3CSPAN%3E%2C%200x00)%3B%20%3C%2FSPAN%3E%3CSPAN%3E%2F%2F%20Read%20backup%20clock%20status%20register%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Eif%3C%2FSPAN%3E%3CSPAN%3E(%20PT2000Device-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3EBkpClkStatReg%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EB%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3ELossOfClk%3C%2FSPAN%3E%3CSPAN%3E%20)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECLKCheckResult%20%3D%20FALSE%3B%20%3C%2FSPAN%3E%3CSPAN%3E%2F%2F%20If%201MHz%20CLK%20not%20there%20set%20results%20to%200%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Ereturn%3C%2FSPAN%3E%3CSPAN%3E%20CLKCheckResult%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EWithout%20the%20delayus(50)%20doesn't%20work.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EDo%20you%20confirm%20I%20need%20that%20delay%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%20this%20correct%20or%20to%20be%20more%20safety%20must%20I%20set%20time%20delay%20longer%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIn%20general%2C%20must%20I%20insert%20a%20delay%20betwheen%20two%20successive%20access%20on%20a%20register%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EBest%20Regards%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2369833%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PT2000%20CLK%20problem%20on%20FRDMPT2000EVM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2369833%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3Balessandrocorti%3C%2FP%3E%0A%3CP%3EGood%20day!%3C%2FP%3E%0A%3CP%3EThe%20PLL%20is%20locked%20about%2025%20us%20after%20the%20external%20CLK%20is%20enabled%3C%2FP%3E%0A%3CP%3ESwitch_to_clock_pin%3A%20this%20bit%20(active%20on%20rising%20edge)%20is%20used%20to%20provide%20a%20way%20to%20reset%20the%20loss%20of%20clock%20condition.%20If%20this%20bit%20is%20set%20during%20a%20loss%20of%20clock%20condition%20it%20is%20reset%20as%20soon%20as%20the%20clock%20manager%20switches%20the%20PLL%20input%20to%20the%20external%20reference.%20If%20this%20bit%20sets%20while%20there%20is%20no%20loss%20of%20clock%2C%20the%20bit%20resets%20immediately%20without%20any%20effect.%3C%2FP%3E%0A%3CP%3ECould%20you%20confirm%20that%20the%20PLL%20does%20change%20when%20you%20try%20to%20perform%20the%20switch_to_clock_pin%3F%3C%2FP%3E%0A%3CP%3EAfter%20the%20reset%2C%20try%20with%20a%20delay.%20Let%20the%20clock%20monitor%20stabilize.%3C%2FP%3E%0A%3CP%3EI%20also%20recommend%20that%20you%20reread%20chapter%207.4.3%20Clock%20monitor%2C%20flash%20enable%2C%20and%20DrvEn%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FMC33PT2000.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Edatasheet%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20information%20has%20helped%20you%2C%20please%20let%20me%20know%20if%20you%20need%20help%20with%20anything%20else.%3C%2FP%3E%0A%3CP%3EHave%20a%20great%20day%20and%20best%20of%20luck.%3C%2FP%3E%3C%2FLINGO-BODY%3E