I have a real time application running on a DSP. I want to call a function only when a particular key is pressed. How do I do this in CCS ? I have tried using getch() but this pops up a dialog box everytime this line is executed therefore interrupting my program. Any help will be appreciated. Tejas
Key Press - CCS
Started by ●April 3, 2004
Reply by ●April 3, 20042004-04-03
Tejas wrote:> I have a real time application running on a DSP. I want to call a > function only when a particular key is pressed. How do I do this in > CCS ? > I have tried using getch() but this pops up a dialog box everytime > this line is executed therefore interrupting my program. > > > Any help will be appreciated. > > TejasI've been down this road. You have two choices: (a) Spend a month figuring out how to do it within CCS. (b) Write another task into your application, and use a GPIO pin (better yet an interrupt pin if you can) to trigger the function. I chose (b), and I suggest it if you can get to the hardware. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com