Part Number: TMS320F2800137
Tool/software:
Hi,
We are doing POC on some fan, which sends 12 pulse per rotation. So what is the best way to calculate fan speed in this case?
Thanks in advance.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMS320F2800137
Tool/software:
Hi,
We are doing POC on some fan, which sends 12 pulse per rotation. So what is the best way to calculate fan speed in this case?
Thanks in advance.
Hi Ankit,
Could you try the EQEP Position Speed Example? for more details on the EQEP peripheral, please refer to the chapter 15 in the TRM : TMS320F280013x Real-Time Microcontrollers Technical Reference Manual (Rev. B)
Thanks and regards,
Madhava
Thanks Madhava for the reply.
From what I understand, EQEP requires multiple pins, but we only have one GPIO available for this task (to receive the pulse signal for checking fan speed). Could you suggest any alternative solutions?
Hi Ankit,
you could also try ECAP to capture the pulse width / frequency. ECAP basically timestamps the input digital waveform on the configured 4 sequential Edges, and can continue to do so for every such set. the timestamps are on the SYSCLK and the captures can be programmed to interrupt CPU. we can read the timestamp and calculate speed based on the selected edges + time stamps scaled to the SYSCLK frequency.
Try out the ECAP examples, meanwhile let I will check with EQEP experts if EQEP can be ran with single pin.
Thanks and regards,
Madhava