In the below prgm what does 0x22000000 signifies. I compared with MSCR but couldnt identify.
#include "main.h"
const uint32 swVersion=1;
uint8 main_func()
{
uint8 mainFnxRetVal;
uint8 i;
mainFnxRetVal =0;
i =0;
SIUL2_MSCR204.reg = 0x22000000; //--> Pin GPIO
SIUL2_MSCR203.reg = 0x22000000; //--> Pin GPIO
/* Main While Loop */
while(1){
i=(uint8)(~i);
SIUL2_GPDO204.reg = (uint8)i;
waitTim0Ticks(1000000);
SIUL2_GPDO203.reg = (uint8)i;
waitTim0Ticks(1000000);
}
ManualTest_Function();
/*The above code need to be coded as an jump statement*/
return mainFnxRetVal;
}
Hi b55689
You are saying oERC and oDC is set to high.
Actually MSCR is 16 bit and pin used is 203. Please can you explain in detail.
Thanks
Naveen
Hi,
Size of the MSCR register is 32-bit. Look at the reference manual or use debugger and look directly to the memory. Information you can see on the picture are only bits you can set. Reserved bits are not shown.
Regards,
Martin
Hello,
I can verify Martin's answer. Take a look at MPC5777MRM.pdf
This thread worked well for me in explaining the numbers.
Regards
Hi,
The value 0x22000000 sets Output Edge Rate Control and Output Drive Control of the associated pin. Look at the MSCR register in reference manual.
Output Edge Rate Control is set to Strong drive (50 ohm/10 ns)
Output Drive Control is set to Push-pull
Regards,
Martin