DSPRelated.com
Forums

How to set registers to zero before halt the processor?

Started by naay...@gmail.com November 19, 2008
Hi all,

How do I make the Timer and EV compare register values to zero, before halt the processor? I am working in TMS320F2812 eZDSP starter kit. I loaded my program which has some value in CMPR and EV Timer registers in DSP, I wish to bring those values to zero before going to halt the DSP in code composer. How do I achieve that?
Will it be possible to send inputs from the key board when the dsp is running? Will it acknowledge the same? Can any one of you please respond to me at the earliest?
regards


OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x
i would suggest you use a button and connect that to a hardware interrupt.
in the ISR for button response reset all the CMPR etc to 0 and use the assembly command ---> asm (" ESTOP0"); to halt the processor.

PS. button would also need debouncing

from computer keyboard u mean ?
yea but through serial communication from the computer

keyboard i guess has some small processor and a form of communication to the computer.
if u can hack that, may b use keyboard directly

n...@gmail.com wrote:
Hi all,

How do I make the Timer and EV compare register values to zero, before halt the processor? I am working in TMS320F2812 eZDSP starter kit. I loaded my program which has some value in CMPR and EV Timer registers in DSP, I wish to bring those values to zero before going to halt the DSP in code composer. How do I achieve that?
Will it be possible to send inputs from the key board when the dsp is running? Will it acknowledge the same? Can any one of you please respond to me at the earliest?

regards


OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x