Other Parts Discussed in Thread: CC2530
hi,
I set 1ms timer in cc2530, i read ad smaple value in 1ms timer interrupt and then start adc conversion, but this influence zigbee communication.If I do not start adc conversion, 1ms timer work good and zigbee communication is ok , I think adc don't take cpu source ,but timer interrupt do.I don't know why this happend,Some code are below:
HAL_ISR_FUNCTION( D_Time4_Interrupt, T4_VECTOR)
{
T4IF=0;
T4CTL=0xd9;
if(ADCCON1 & 0x80)
{
####; //read ad sample
}
ADCCON3=0Xa6; // if i add this instruction ,zigbee communication is not ok, but if i delete it ,communication is ok
}