You are here

Millis() arduino function alternatetive for psoc4 | Cypress Semiconductor

Millis() arduino function alternatetive for psoc4

Summary: 4 Replies, Latest post by zeta on 15 Dec 2013 01:06 PM PST
Verified Answers: 1
Last post
Log in to post new comments.
EngineerBro's picture
23 posts


 I’m trying to figure out how to get delta time in a loop. How can this be done? Should I use a timer? I tried to just have an interrupt fired with known clock frequency but think I have to many interrupts firing and there conflicting?

user_119377051's picture
866 posts

What is your delta-time? Is it a interval time of events?

I think, you would be measure time-span by the Timer

It is better rather than "interrupt fired with known clock frequency"

The PSoC/ARM M0 architecture allows Multi-interruptions,

Good coded interrupts will get work.

user_14586677's picture
7646 posts

Just flip a pin at beginning and end of loop, and observe with a scope. Thats typically a low

burden instruction.


Regards, Dana.

user_78878863's picture
2553 posts

Or use a free-running counter, and use its capture function.

user_39759791's picture
357 posts

 you could start a timer at the beggining of the program with an apropiate clock source and leave it running then check its value inside the millis() function

Log in to post new comments.