kinetis kea ftm0 mode register

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

kinetis kea ftm0 mode register

1,284 Views
fabrizioborra
Contributor I

I'm using a Kinetis S9KEAZN32AVLC.

I see that FTM0 channel 0 status and control register (FTM0_C0SC) has some bits write protected (MSB MSA ELSB ELSA).

To write these bits the write protect bit must be = 1 (default condition at power on reset) but the MODE register of FTM0 timer doesn't exist.

What is the meaning of a protection bit in a register that doesn't exist?

Thank You.

Labels (1)
0 Kudos
Reply
3 Replies

1,138 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hi Fabrizio

Your answer can be found at the reference manual. You can find the link below.

The image below is the register, you can access though this syntax: FTM0->MODE  |= FTM_MODE_WPDIS_MASK;

pastedImage_2.png

And here is a brief description of the protection bit:

pastedImage_3.png

Reference Manual: https://www.nxp.com/docs/en/reference-manual/KEA8RM.pdf 

Greetings

Omar

0 Kudos
Reply

1,138 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Fabrizio Borra,

You can find the answer in "3.9.1.1 FTM overview" of S9KEA64Z64M20SF0RM.

FTM overview.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,138 Views
mjbcswitzerland
Specialist V

Hi

In the S9KEAZN32 there is a register FTM0_MODE at the address 0x40038054 with the WPDIS bit - default is '1' according to the user's manual. However, as you probably are aware, the FTMx_MODE is only implemented in FTM2 (and not in FTM0 and FTM1). Therefore you should avoid accessing FTM0_MODE (I think that it will give a hard fault if tried).

Basically it means that the FTM0 and FTM1 have reduced features and so you can't set its registers to write protect mode as you can with FTM2. Therefore - as all FTMs - FTM0 comes up with no write protection and you should not try to protect it since it is not supported.

Regards

Mark

Complete Kinetis solutions for professional needs, training and support: http://www.utasker.com/kinetis.html
Kinetis KEA64:
- http://www.utasker.com/kinetis/FRDM-KEAZ64Q64.html
- http://www.utasker.com/kinetis/TRK-KEA64.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