Announcements

Equip yourself to optimize PSoc4 MCUs for Evs at the EV Webinar. Click here to register.

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

PSoC™ 4 Forum Discussions

Pragati
Level 1
Level 1
5 sign-ins First question asked Welcome!

hello everyone   I have tried to generate a 1msec delay using a timer in the cy8c4025azi413 controller plz help me.

 

 

Thank you

Pragati

0 Likes
2 Replies
MotooTanaka
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Hi,

Attached are samples I wrote a couple of years ago.

(1) test_timer_201006 

(2) sys_tick_test_201006

(1) uses a timer (2) uses the SysTick timer included in the ARM Cortex-M.

I prefer to use SysTick.

moto

0 Likes
Len_CONSULTRON
Level 9
Level 9
500 solutions authored 1000 replies posted 750 replies posted

Pragati,

How accurate to 1ms do you want this timer delay to be?

Depending on your answer, there are simple (low accuracy) and more complex/costly (high accuracy) solutions.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes