-2
\$\begingroup\$

I'm trying to use black fin 533, to create a delay of 1ms using one of its timers, I read the datasheet but I can't understand how to set a 1ms delay. here is the datasheet http://www.analog.com/media/en/dsp-documentation/processor-manuals/ADSP-BF533_hwr_rev3.6.pdf

Please I need clarification of timer width and timer period.

\$\endgroup\$
12
  • \$\begingroup\$ It Does not even sound like you have decided upon how to use the timer let alone made an attempt at writing code to configure the timer. Please decide on how you want to use the timer (there are 3 of them) then rephrase your question to be more specific. For example, these timers may be used to dim lights. Or make music. Or control servo motors. \$\endgroup\$
    – st2000
    Oct 19, 2016 at 7:17
  • \$\begingroup\$ I just want to make a delay of 1ms. is that possible with those timers ? I need to monitor the status flag correct ? but how to adjust the period,..etc to make a 1ms delay. by polling only, not by interrupts \$\endgroup\$
    – Andre
    Oct 19, 2016 at 7:19
  • \$\begingroup\$ Hardware timers get their time base from the processor's oscillator. You have to know how fast the processor is running. Or you can guess, pick numbers to load into the timers, try and time, say, 10 seconds. If it works, great! If it doesn't, make another guess. It would be quicker if you already knew the processor's clock. \$\endgroup\$
    – st2000
    Oct 19, 2016 at 7:23
  • \$\begingroup\$ #define CLK_IN 12288000 /* Input clock in Hz */ \$\endgroup\$
    – Andre
    Oct 19, 2016 at 7:25
  • 1
    \$\begingroup\$ Good, you have taken the first step in figuring out how to use the timers. Now if you have a specific problem with the timers please re-phrase your question. Otherwise read page 62+ of the manual you linked to. Stackexchange comments are not a good place to chat. Comments are meant to help people refine their questions and answers. \$\endgroup\$
    – st2000
    Oct 19, 2016 at 7:36

1 Answer 1

0
\$\begingroup\$

Please I need clarification of timer width and timer period.

In general terms, if the timer is configured to generates a train of pulses, the width the output is active is normally referring to as the duty cycle. This is called Pulse Width Modulation (PWM) and can be useful in modulating the brightness of a, for example, LED.

Some or all the timers in this chip can also measure the pulse width of external signals. Such a feature can be used to decode, for example, serial communication signals.

When a timer is configured to generates a train of pulses, the period is the time between the same event in that train of pulses. For instance the time between, say, the rising edge of the clock of a 1KHz signal is 1ms.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.