Hello everyone,
I made my own CC2530 board according to the TI referrence design. I can see the waveform of the 32MHz ctystal on oscilloscope, but i can not see the waveform of the 32.768KHz ctystal( I had configured the relevant registers). I want to know why. any suggestions? Thank you!
HI Mei.
Difficult to say without more information :-)
Can you share the code you are using to start the 32khz crystal.
Hi Per H,
/*****************************************set system low clock*****************************************/void SET_LOW_CLOCK(source) { (source==1)?(CLKCONCMD |= 0X80):(CLKCONCMD &= ~0X80); }
void main(void){ SET_LOW_CLOCK(0);
}
mei
Thank you!
0x80 = 0b10 000 000
OSC32K = 1 => 32kHz RCOSC is selected.
Try CLKCONCMD= 0x49.
/Fredrik
--PS. If I answered your question, please hit Verify Answer !
hi Fredrik,
in the sentence : (source==1)?(CLKCONCMD |= 0X80):(CLKCONCMD &= ~0X80);
it executes this one: CLKCONCMD &= ~0X80; => OSC32K = 0 => 32kHz XTAL is selected.
If I set CLKCONCMD to 0x49, it means I chose 16MHz RCOSC. But I need 32MHz XTAL.
Of course, my bad.
But just for the purpose of debugging, try running the 32kHz XOSC when the 32 MHz clock off.
OK. I will try your suggestion.
Thank you! Fredrik
Hi Fredrik,I have tried your suggestion, but I still can not see the waveform of the 32KHz ctystal on oscilloscope. Any suggestions?