MPC5606B : Driving of Micro Stepper Driver (MSD) through EMIOS function

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

MPC5606B : Driving of Micro Stepper Driver (MSD) through EMIOS function

404 Views
ninguc
Contributor I

Hello ,

 

In one of our application we need to drive the Micro Stepper Driver through EMIOS module.

 

I am little confused which mode of EMIOS will suit for Micro Stepper Driver.

 

The external Micro Stepper Driver (MSD) consists of 3 pins :

 

Enable Pin : Driven by GPIO port of MPC5606B

Direction Pin : Driven by GPIO port of MPC5606B

Pulse Pin : Driven by EMIOS port of MPC5606B

 

The MSD does not need the conventional PWM signal instead it needs edge triggered pulses of fixed number.

 

The application calculates the frequency and no of pulses to be fed to MSD. [ Duty cycle is fixed to 50%]

 

So with one pin from EMIOS to MSD I need to send a fixed number pulses and stop when the pulses expires.

eg : 10Khz with 25,000 pulses of fixed 50% duty cycle.

 

Let me know how i could use the EMIOS module to suit this function.

 

Regards,

Raghavendra P

Labels (1)
Tags (2)
0 Kudos
1 Reply

284 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

Unfortunately there is no HW support for sending fixed number of pulses on the MPC5606B eMIOS module.

You need to use some kind of SW way to stop the channel.

For example use one eMIOS channel to generate pulse output signal (with 50% duty and desired frequency).

Generated output signal will be externally connected to the other eMIOS channel input; this channel can be set for MCB mode counting external signal. After programmed number of pulses are counted, the channel flag is set (interrupt can be invoked if enabled) so you can stop the first channel.

BR,

Petr

0 Kudos