Wath's correct FTMRH_FPROT for Kinetis KEAZN64

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Wath's correct FTMRH_FPROT for Kinetis KEAZN64

跳至解决方案
952 次查看
fabrizioefm
Contributor I

this is the Kinetis KEA64 datasheet (Document number: S9KEA64Z64M20SF0RM). On this page there is clearly a compilation error: does anyone have one or more more up-to-date revision? Thank you

pastedImage_3.png

标记 (1)
0 项奖励
回复
1 解答
797 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Fabrizio Ferrari,

    Thank you very much for your question, and tell us the doc bug.

    After check the KEAZN64 header file SKEAZN642.Hl

/* FPROT Bit Fields */
#define FTMRH_FPROT_FPLS_MASK                    0x3u
#define FTMRH_FPROT_FPLS_SHIFT                   0
#define FTMRH_FPROT_FPLS(x)                      (((uint8_t)(((uint8_t)(x))<<FTMRH_FPROT_FPLS_SHIFT))&FTMRH_FPROT_FPLS_MASK)
#define FTMRH_FPROT_FPLDIS_MASK                  0x4u
#define FTMRH_FPROT_FPLDIS_SHIFT                 2
#define FTMRH_FPROT_FPHS_MASK                    0x18u
#define FTMRH_FPROT_FPHS_SHIFT                   3
#define FTMRH_FPROT_FPHS(x)                      (((uint8_t)(((uint8_t)(x))<<FTMRH_FPROT_FPHS_SHIFT))&FTMRH_FPROT_FPHS_MASK)
#define FTMRH_FPROT_FPHDIS_MASK                  0x20u
#define FTMRH_FPROT_FPHDIS_SHIFT                 5
#define FTMRH_FPROT_RNV6_MASK                    0x40u
#define FTMRH_FPROT_RNV6_SHIFT                   6
#define FTMRH_FPROT_FPOPEN_MASK                  0x80u
#define FTMRH_FPROT_FPOPEN_SHIFT                 7

SO, the FPROT register should be the same as the KEA128:

pastedImage_4.png

About the KEA64 reference manual problem, I will report it to our according department, it will be updated in the next RM version.

Thank you again.

Have a great day,
Kerry

 

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
797 次查看
fabrizioefm
Contributor I

Through various documents found I was able to understand that it was similar to that of KEA128 and to be able to proceed with the project in the meantime, but I thank you very much for this post of confirmation. Greetings and thanks again

Fabrizio.

0 项奖励
回复
798 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Fabrizio Ferrari,

    Thank you very much for your question, and tell us the doc bug.

    After check the KEAZN64 header file SKEAZN642.Hl

/* FPROT Bit Fields */
#define FTMRH_FPROT_FPLS_MASK                    0x3u
#define FTMRH_FPROT_FPLS_SHIFT                   0
#define FTMRH_FPROT_FPLS(x)                      (((uint8_t)(((uint8_t)(x))<<FTMRH_FPROT_FPLS_SHIFT))&FTMRH_FPROT_FPLS_MASK)
#define FTMRH_FPROT_FPLDIS_MASK                  0x4u
#define FTMRH_FPROT_FPLDIS_SHIFT                 2
#define FTMRH_FPROT_FPHS_MASK                    0x18u
#define FTMRH_FPROT_FPHS_SHIFT                   3
#define FTMRH_FPROT_FPHS(x)                      (((uint8_t)(((uint8_t)(x))<<FTMRH_FPROT_FPHS_SHIFT))&FTMRH_FPROT_FPHS_MASK)
#define FTMRH_FPROT_FPHDIS_MASK                  0x20u
#define FTMRH_FPROT_FPHDIS_SHIFT                 5
#define FTMRH_FPROT_RNV6_MASK                    0x40u
#define FTMRH_FPROT_RNV6_SHIFT                   6
#define FTMRH_FPROT_FPOPEN_MASK                  0x80u
#define FTMRH_FPROT_FPOPEN_SHIFT                 7

SO, the FPROT register should be the same as the KEA128:

pastedImage_4.png

About the KEA64 reference manual problem, I will report it to our according department, it will be updated in the next RM version.

Thank you again.

Have a great day,
Kerry

 

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

0 项奖励
回复