Writing into (MC_CGM) clock divider register

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

Writing into (MC_CGM) clock divider register

619 次查看
jayashreepasane
Contributor III

Mcu is S32R274

I want to write into the clock generator module ((MC_CGM) divider register values Via DMA to generate different frequencies. Specifically I want to write into register CGM_AC14_DC0(which is not byte or half word accessible). But I want to write only into the CGM_AC14_DC0.DV0 value(which is 7 bit). As the neighbor bits are reserved. Can I  use the 8bit address which corresponds to CGM_AC14_DC0.DV0 to write the divider values alone?

Will I get any kind of exception if I do so?

@

0 项奖励
2 回复数

518 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

No, it is needed to use 32-bit write as reference manual indicates. Reserved bits are ignored during write.

pastedImage_1.png

518 次查看
jayashreepasane
Contributor III

Thanks for the reply. You are correct I cannot access byte (as document says)

0 项奖励