Below is the sample code. The code can run on EVB very stable and well, so I think there is no issue with software. I believe it is something wrong with the chip or my hardware. But my hardware is almost same as USB CC1110 EVB and I checked my hardware many times but always can't see any issue. I have some questions about the CC1110 chip :
1. Does the chip temperature sensitive ?
2. Does the ground exposed pad must be 100% well soldered ? I use hot-air gun to mount the my boards but I think this should be fine in my experience. The ground pad is also well connected but may not 100% solid. I can't be sure if this is where the issue comes from. If so, I can go use SMT but I need to confirm that is true the issue comes from otherwise a lot of money will be wasted.
3. BTW, I use a telescope to measure the 26Mhz crystal ? I can't see any clock on my board nor the EVB ? This is also very weird to me. The EVB can work very well and my board can work very well in the beginning. Can you please help me confirm if I should get 26Mhz clock when using a scope ? I believe so since I never measure "no" clock on a workable board. But I also wonder why I can't see 26Mhz clock on workable boards. I am trying to check my board and compare EVB to see why my board can't work well after a while and need a hot-air gun to get it work.
Thanks for your help,
#include <ioCC1110.h>
#define uint unsigned int
#define led1 P0_0
void Delay(uint);
void Initial(void);
void Delay(uint n)
{
uint tt;
for(tt= 0; tt<n; tt ++);
for(tt= 0; tt<n; tt ++);
for(tt= 0; tt<n; tt ++);
for(tt= 0; tt<n; tt ++);
for(tt= 0; tt<n; tt ++);
for(tt= 0; tt<n; tt ++);
}
void Initial(void)
{
P0DIR = 0x01;
led1=0;
}
void main(void)
{
Initial();
led1=0;
while(1)
{
Delay(10000);
Delay(10000);
Delay(10000);
Delay(10000);
led1= !led1;
}
}