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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

841 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

721 次查看
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 项奖励
回复