Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

On chip timer - ashr...@rediffmail.com - Mar 5 8:59:02 2009

hi all
i'm using adsp2181 ezkit lite board. As we all know 2181 has only 1 timer.
my requirement is to use this timer for 2 purposes using status condition.

i'm using timer for UART and i need to use the same timer for generating some
control pulses for my project.

my idea is to use a status check.
i.e. if dm(status)=1 then the timer is dedicated to UART and 
if dm(status)=0 the timer is used by the pulse routine.

Please let me know whether my idea is right and can i proceed.

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: On chip timer - Mike Rosing - Mar 5 13:49:51 2009

On Wed, 4 Mar 2009, a...@rediffmail.com wrote:

> hi all
> i'm using adsp2181 ezkit lite board. As we all know 2181 has only 1 timer.
> my requirement is to use this timer for 2 purposes using status condition.
>
> i'm using timer for UART and i need to use the same timer for generating
some control pulses for my project.
>
> my idea is to use a status check.
> i.e. if dm(status)=1 then the timer is dedicated to UART and
> if dm(status)=0 the timer is used by the pulse routine.
>
> Please let me know whether my idea is right and can i proceed.

Nothing wrong with that.  Another way is to let the timer generate 
interrupts on your shortest time scale which you use to set flags.  Then 
either routine can test the flags to see if time has gone by enough.

If the UART timing is not critical and the pulse timing is, then yet 
another way would be to use the timer for the pulse routine only, but let 
it set flags continuously.  That way the UART will be running on your 
pulse time base, but you won't care, you'll probably have to let a lot of 
pulse times go by before doing anything.

There are many other ways to go about it too.  One thing you might think 
about is how many other things will you be asked to do on this project, 
and how will you expand the timer to do more than just two things?

Patience, persistence, truth,
Dr. mike

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: On chip timer - Jaime Andres Aranguren Cardona - Mar 9 6:46:13 2009

Hi,

Unless you know beforehand when are you going to use the UART or not, I'd r=
ecommend you dedicate the timer to the UART and generate your pulses in a d=
ifferent manner.

Regards,

=20
Jaime Andr=E9s Aranguren Cardona
j...@ieee.org
j...@computer.org

________________________________
From: "a...@rediffmail.com" <a...@rediffmail.com>
To: a...@yahoogroups.com
Sent: Wednesday, March 4, 2009 8:23:50 AM
Subject: [adsp] On chip timer
hi all
i'm using adsp2181 ezkit lite board. As we all know 2181 has only 1 timer.
my requirement is to use this timer for 2 purposes using status condition.

i'm using timer for UART and i need to use the same timer for generating so=
me control pulses for my project.

my idea is to use a status check.
i.e. if dm(status)=3D1 then the timer is dedicated to UART and=20
if dm(status)=3D0 the timer is used by the pulse routine.

Please let me know whether my idea is right and can i proceed.=20
=20=20=20
=20=20=20=20=20=20

______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )