Hi everybody,
I want to configure the buzzer button (BZ_Out) on the MSP430F6137 Chronos watch in order to use it for timing measurement purposes. Could anybody provide me with any idea how to access this button!
thanks in advance!
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.
Hi everybody,
I want to configure the buzzer button (BZ_Out) on the MSP430F6137 Chronos watch in order to use it for timing measurement purposes. Could anybody provide me with any idea how to access this button!
thanks in advance!
This information is part of the Chronos users guide (complete schematics) slau292c.pdfOrwa Nassour said:which port/pin is connected to it.
Edit: It's not a good idea to edit your post without notice after someone has replied to it. Not only because the reply then might not make sense anymore, but it will as well prohibit that people joining later can follow the thread.
Also, it costs you the 10 points for a separate post :)
And it will not mark you as the last contributor to the thread in teh overview, so your update might slip through undetected.
Now, i figured out that the Buzzer is connected to the Port 2.7.
I'm trying a simple program, but i don't hear the Beep tune.
#include "cc430x613x.h"
void main (void)
{
WDTCTL = WDTPW + WDTHOLD;
P2DIR |= BIT7; //set Pin 7 in port 2 to output direction
while (1)
P2OUT |= BIT7; // set pin 7 in port 2 to 1
}
I don't know whether it is a self-oscillating buzzer or a speaker. If you don't hear anything, I guess the latter.
Your code sets P2.7 to high over and over again. On a speaker, it will only pull it to one side and tie it there. You won't hear anything. You need to pull it high and low with the proper frequency.
tThe high/low pull is done by using
P2OUT ^=BIT7;
this inverts the output on every loop. However, the result ing frequency would be a 'littel bit' higher than what your ears can hear or the buzzer can produce. You need to slow it down too.
I guess in the demo code, a timer compare register output is routed to this pin (using the port mapping controller) and a timer-generated frequency is applied to it. I don't know the demo code, so I cannot help you there.
thank you very much..changing between 1 and 0 has solved the problem..i can hear the sound now :-)
**Attention** This is a public forum