cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

Hello everyone,

   

I'm using PSoC 5LP(CY8C586LTI-LP038) with PSoC Creator version 3.3.

   

Iam trying to capture the PWM from Futaba R617FS. As of now only one channel is connected as input to the PSoC.

   

The timer with period 16.043 ms is used. Trigger mode is Rising edge, capture mode is Falling edge,interrupt is enabled only on the Terminal Count. ISR will Send Character 'A' , whenever it is raised.

   

Pin_2 is been used to monitor the output.

   

The questions are:

   

1. In the attached project "Timer_1"  configuration, how the Reset functionality works? I have followed the explanation provided in data sheet but not able to find the solution.

   

2. Irrespective of the Channel 1 input Terminal count interrupt should be raised or not ?

   

3. The APIs  as given in the attached project Timer_1_STATUS, and Timer_1_EnableTrigger(), how are they functioning in the attached project?

   

please provide explanations for the same.

   

Thank you in advance. 

0 Likes
1 Solution
rola_264706
Honored Contributor II

Also update your Psoc Creator to Psoc Creator 4.0 SP 1. I am sending you an example for you to study there is a PDF file to explain it.

View solution in original post

0 Likes
5 Replies
rola_264706
Honored Contributor II

Add a Sync component to insure trigger is correct.

0 Likes
rola_264706
Honored Contributor II

Also update your Psoc Creator to Psoc Creator 4.0 SP 1. I am sending you an example for you to study there is a PDF file to explain it.

View solution in original post

0 Likes
Bob_Marlowe
Expert II

Keep in mind that the "reset" function of a timer component is asynchronous. So the signal has to stay for a low to high transition of the clock to reset. Solutions are

   

Using a Pulse Converter component (Digital -> Utilities)

   

Using software to stop, reload and restart the timer.

   

Last, but not least: Current version of Creator is 4.1 (not 4.0)

   

 

   

Bob

Anonymous
Not applicable

Thank you Bob Marlowe and bobgoar for response.

   

I checked the project you uploaded and it clarified many doubts. I read the datasheet too. In most of the example projects provided in PSoC creator, the reset is given a Logic low. So how  the timer is getting reloaded? Is Timer resets on its own? Can you please provide some more explanation about the reset. It would be helpful for me.

   

Thank you in Advance.

0 Likes
Bob_Marlowe
Expert II

Resetting the Timer Component does a bit (or byte?) more than just reloading the counter. The reload is done at tc automatically. On some (different) timer components you may specify explicitly when a reload should be performed.

   

My best experiences for measuring times are done with a Counter Component. This has got a capture feature which saves the current value, gives me an interrupt and allows for reading of the captured value while the counter still runs. An enable input allows for counting only the high-phase of the incoming signal. Count input is an internal clock. When high precision is needed this clock should be crystal-based.

   

 

   

Bob