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
Hello Sara,
Could you please show your project,
or share a simple project which I can reproduce the problem on my side.
BR
Alice
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