Post

3 followers Follow
0
Avatar

scaled_delay(31745UL); // 800ms delay

How do you get 800 ms from 31745 decimal?
scaled_delay(31745UL); // 800ms delay

Sid

Official comment

Avatar

The scaled_delay( ) function produces a delay with a duration that scales with input clock speed. Please see the Neuron C Reference guide for the complete formula used to calculate the delay.

In case of a 10Mhz clock, it makes 31745 x25.2 + 7.2 = 799981 microsec, which is about 800ms.
Karelle

Karelle Perrault
Comment actions Permalink

Please sign in to leave a comment.

2 comments

0
Avatar

What would you expect it to be? Which chip are you building this image for?

Mike Berke 0 votes
Comment actions Permalink