Hi Erich,
At TAFE Western Sydney we use Pic axe 28x2 as the microcontroller board for
the mechatronic projects, usually a small robot with 3 ultrasonic sensors (HC-SR04)
and 2 motors and the drive chip is L293D.
I am trying to switch the microcontroller board to FRDM KL25Z as it offers
more speed and hardware resources.
My plan is to run the motors using TPM2_CNT with 2channels of PWM signal of 4
kHz as L293 is only capable of running up to 5 kHz.
As for 10 us signal for the Ultrasonic trigger pulse and capture of eco
signal TPM0_CNT with 3 channels for trigger and 3 channels for the eco capture.
If it not possible uses TPM1_CNT with 2 channels for the trigger pulse. (I
prefer to have 3 trigger and 3 capture channels)
I am having trouble setting up 2 PWM channels using TPM2_CNT. When I try to configure
the second channel on the TPM2 it gives out an error.
Thanks,
Kesara De Costa