timers

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

cross mob
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
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

View solution in original post

0 Likes
2 Replies
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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
Beta tester 500 solutions authored 1000 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