two square waves 90deg using one tcmpw block for stepper motor

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
ToPh_1104671
Level 2
Level 2
First like received

I'm used to msp430 counters with set/reset or toggle settings.
But on proc-ble could this be done using just one tcpmw counter, or is two needed?

   

Or I should use one timmer-isr? and toggle the pins in software, as a stepper motor rpm is pretty low.

   

on a PSOC the OV & UN using up/down mode could been routed to flipflops, to create this 90deg signal?
​Attached is the picture of counter wise stepping on in1 and in2 (ic is a LB1848MC)

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are here in the PRoC furum. A PRoC can only perform what you want using two TCPWM components.

   

In the PSoC 42xx BLE world there are UDB - based components which you may use for your purpose quite better. There you find flip-flops and look-up-tables that will help you generating the two desired waveforms with the appropriate frequency.

   

A timer isr would be the easiest solution and will probably work up to 1kHz but might get distorted by the BLE interrupts.

   

 

   

Bob

0 Likes