Writing into (MC_CGM) clock divider register

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

Writing into (MC_CGM) clock divider register

591 Views
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 Kudos
2 Replies

490 Views
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

490 Views
jayashreepasane
Contributor III

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

0 Kudos