AnsweredAssumed Answered

MPC5746R eMIOS OPWFM immediate update

Question asked by Cecilia C on Oct 30, 2017
Latest reply on Nov 1, 2017 by Cecilia C

Hi, I am not able to get the immediate update working for OPWFM or OPWFMB. When I change mode to run update on next period it works as expected (second image below). In my test I change the period each 100ms and the period toggles between the two values 800 and 0xFFF. When running on immediate update the period becomes very large (first image below). What is required to make immediate update working??

 

Another question: What is the maximum frequency that can be used for eMIOS? I would like to have a period time of 1 microsecond, but when testing I can't get it to be less than 2 us.

 

I am running the eMIOS on 100 MHz and I have the following configuration:

 

eMIOS_0.MCR.B.MDIS = 0; // enable modul
eMIOS_0.MCR.B.GPRE = 9; // set global divider
eMIOS_0.MCR.B.GPREN = 0; // disable global prescaler

eMIOS_0.C14.B.UCPREN = 0; // disable channel prescaler
eMIOS_0.A14.B.A = 400;
eMIOS_0.B14.B.B = 800;
eMIOS_0.C14.B.BSL = 3; // set internal clock as clock source
eMIOS_0.C14.B.MODE = 0x19; //Flag on B update on next period, requires FORCMB
//eMIOS_0.C14.B.MODE = 0x18; // Not working
eMIOS_0.C14.B.EDPOL = 0; // triggering on a rising edge
eMIOS_0.C14.B.UCPRE = 0; // set channel prescaler
eMIOS_0.C14.B.UCPREN = 1; // enable channel prescaler
eMIOS_0.C14.B.FEN = 1;

 

eMIOS FLAG using MODE 0x18

 

eMIOS FLAG using MODE 0x19

 

Thanks,

Cecilia

Outcomes