Hello,
Me again. This time I am trying to do some handshaking between the target and GUI composer. The aim is to do a simple health check of the GUI display so that the target knows that the display is actually connected and working.
My idea was to set a bit parameter variable, e.g. (statusreg.DRIVEMODE.bit.COMMSFLAG) to 1 in the target and have the GUI set it back to a zero after 0.5 seconds. Meanwhile the target will do a check to verify that it has actually been set back to a 0 within 2 seconds or so and if not set a Gui fail bit. I can get GUI to display the bit status no problem and use a reset button to set it back to zero if I want, but I can't automate the process. I'm using one of the CPU timers set to update a counter every second as a sequencer for the target code (CpuTimer1.InterruptCount).
I thought this might be possible using a GuiVAr and upon detecting a change state in the bit variable set it back to zero. However, try as I might I can't quite get that bit to work. Most likely it is my limited understanding of the use of the GUI Var beasty and I wonder if one of you fine TI experts could lob a bit of demo code into the ether for my perusal?
I'm using an F28335 and CCS v6.0.
Any suggestions would be appreciated.
regards
Steve