FRDM-KL03Z in KDS: Can't Set the MS0A Bit Register

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

FRDM-KL03Z in KDS: Can't Set the MS0A Bit Register

457 Views
sarastout-grand
Contributor III

I am using the following line of code to set the MS0A bit:     TPM_BWR_CnSC_MSA(tpmbase,0,1);

This does not seem to work. As a result I can't get into Output compare mode. Any suggestions? I set the  ELS0A bit in the same manner (TPM_BWR_CnSC_ELSA(tpmbase,0,1);) and that works just fine.

What am I doing wrong?

Sara

0 Kudos
2 Replies

348 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Sara,

Could you please show your project,

or share a simple project which I can reproduce the problem on my side.

BR

Alice

0 Kudos

348 Views
sarastout-grand
Contributor III

Hi Alice,

I figured it out. Apparently, you can’t set the individual bits in the CnSC register…you have to set them all at once. When I did that, the MS0A bit would set properly.

Thanks anyway!

Sara

Sara Stout-Grandy, M.Eng., Ph.D., P.Eng.

Senior Hardware Designer

20 Angus Morton Dr., Bedford,

NS, Canada, B4B 0L9

902-450-1700, x278

0 Kudos