NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

β–² Clickβ˜†to star me to avoid losing contact

1. Introduction

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

This time we will configure PWM output based on RTD, without further ado, let’s get started.

2. Configuration Steps

1. Load the driver

For this experiment, we need to add these configurations yourself.

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

2. Port Configuration

Make the following configurations.

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

After entering 2 here, the following will be automatically recognized, select PTA2 as the EMIOS output pin, channel is EMIOS1_CH19_Y.

3. Mcl Configuration

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

Configure in the order shown in the image to enable EMIOS.

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

(1) Select EIOS_1

(2) Select EMIOS_CH_16 to configure the clock division for PWM output providing counter, at this point PWM frequency = 160M/1/4000/1/1 = 40K

(3) Enable debug mode and allow PWM exclusive access.

4. PWM Configuration

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

Configure the above settings as shown in the red box. At the same time

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

(1) Default division, configuration must be consistent with the MCL module configuration

(2) Duty cycle

(3) Clock source select system clock

3. API Interface

void Pwm_Init(const Pwm_ConfigType * ConfigPtr)//PWM initialization

void Mcl_Emios_SetCounterBusPeriod(uint16 logicChannel, uint32 period, boolean syncUpdate)//Set PWM frequency

void Pwm_SetDutyCycle(Pwm_ChannelType ChannelNumber, uint16 DutyCycle)//Set PWM duty cycle

4. Results

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

This article is from the “S32K312 Development Board Review Activity” Reviewer: Fu Chuchu

For more related content on the S32K312 development board review, please follow the blogger Dada Tong: Automotive Expert.

Welcome to follow the blogger Dada Tong:Automotive Expert

Learn more about automotive application knowledge!

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

Welcome to follow the Dalian Engineer Community – Dada Tong

πŸ‘‡πŸ‘‡πŸ‘‡

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core BoardNXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

ClickRead the original text to learn more details!

NXP S32K312 Development Board Review | Experience with the NXP S32K312 Series Core Board

Like

Collect

Share

Leave a Comment