
Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
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.______________________________
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______________________________
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______________________________