Hello.
I'm working with a TI CC2530 ZDK.
More exactly with an CC2530ZDK_EM on an BB.
I'm using IAR and I'm trying to write some code in the SampleApp.
I want to know how ports are working, and I build a little code that when I put the 3Vcc on a pin to give (+) to another, and the same with GND.
------------
while (1)
{
if ( P1_2 & 1 )
{ //here we're testing
P0_0 = 1; // Testing pin 12 EM_1_11, pin 12 (I/0 B) - giving VCC
}
else
{
P0_0 = 0;
}
}
----------
I wrote it first in SampleApp.c in the SampleApp_HandleKeys function.
It works great, but it doesn't exit the loop.
I've tried it in ZMain.c, but there (tried in more places) the code didn't work and even made the EM non operational.
If someone please could help me, I want to go on with a project and I can't until I discover where should I put the code so that it works and also not stops the other functions (tranmitting, etc) from operating.
Thank you for your help.