STM did not work?

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

STM did not work?

1,397 次查看
xiexiaopeng
Contributor II

I have configuration the STM of s32f74 like this

STM_0.CR.R = 0x80F00000; 
STM_0.CHANNEL[0].CCR.R = 0x80000000;

but I read the count ,but they always are zero.

TIME_READ[2]=STM_0.CNT.R; 

where is wrong?

pastedImage_1.png

0 项奖励
回复
1 回复

1,236 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

if you want to set FRZ and TEN bits, you must write STM_0.CR.R = 0x00000003; Numbering in reference manual could be confusing.

If you have any other questions, please feel free to write back.

Regards,

Martin

0 项奖励
回复