Hello NXP Team,
I am working on an S32Z280 EVB using S32DS and RTD 2.0.1
My requirement is to generate a continuous output clock/square wave of approximately 4.9 MHz on an external pin.
I initially tried using eMIOS PWM with the following configuration:
MCU: S32Z280
RTD Version: 2.0.1
eMIOS Instance: eMIOS_1
Channel: CH4
Mode: OPWFMB
Timebase: EMIOS_PWM_IP_BUS_INTERNAL
PeriodCount: 100
DutyCycle: 50
eMIOS clock: 48 MHz
Pin mux configured to eMIOS_1_CH4 (PAD_007 / AD12)
Initialization code:
Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);
while (CLOCK_IP_PLL_LOCKED != Clock_Ip_GetPllStatus())
{
}
Clock_Ip_DistributePll();
Emios_Pwm_Ip_InitChannel(1U, &Emios_Pwm_Ip_I1_Ch4);However, I do not observe any waveform on the output pin using an oscilloscope.
My questions are:
Is eMIOS the recommended peripheral for generating a 4.9 MHz square wave on S32Z280?
Does OPWFMB mode require any additional master bus/timebase configuration?
Would GTM TOM/ATOM be a better solution for generating a stable 4.9 MHz output?
Could you provide an example configuration (eMIOS or GTM) for generating a ~5 MHz output signal on an external pin?
Is there any specific clock configuration required beyond enabling the eMIOS clock?
Any guidance or example project would be greatly appreciated.
Thank you.
BR,
Karthik
Hi,karthik_nikil
You can find the PWM example in the RTD package as the following picture. Each example corresponds to a different underlying module. You can try to use the module that generates the waveform you need based on your application requirements.
Joey_z_0-1781753790604.png
You can contact us at any time if still have other issue.
BR
Joey
Hi,karthik_nikil
Thank you for contacting us.
I have received your question and will help you to check it.
BR
Joey