This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I think, in the second line, the comment is wrong.Abdur Rahim said:Why BTCTL is different in the program.How it is written?
BT_fCLK2_DIV64 sets the BTIPx bits to 0x05. This results in ACLK being used and divided by 64.
In the first line, the BTDIV bis is aslo set, so ACLK is divided by 256 before ebinge divided by 128 again. Wiht ACLK =32768Hz (the typical watch crystal frequency), this gives a 1 second delay. The second line will give a 1/512s delay (~2ms) when ACLK is 32768Hz.
Why this is done depends on the program context. :)
Hi,
Thanks for your answer. I just want to know, from where BT_fCLK2_DIV128- it is written. Is it the register value. How I can know more about it.
Sorry, but your question is a bit unclear. Do you want to know where the value BT_fCLK2_DIV128 is defined? It is somewhere in the header files you include in your program. Just like the register names. As I said, it is a convenience define and not introduced in the users guide. If yo know that it exists, you can use it, if you don't (and I must admit, this name isn't as obvious as other similar defines)
If you want to know where this value is written into the register, well, it's your code and we don't know it. So nobody but yourself can know what is done where and when.
Hi Jens,
Thanks for reply.How can I get access into <msp430xG46x.h> header file.
The location of the msp430xG46x.h file is in one of the directories described to the C compiler as a include path. It will be located somewhere on your PC.
The Include path information should be in the project build settings.
**Attention** This is a public forum