Jump to content
43oh

Jonoveve

Members
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by Jonoveve

  1. Hello I am working whit msp432 and trying to measure frequency like you, but i have problem with the result, i can't measure more than 32888 Hz and i don't know the problem. Would it be possible a little help? someone can see the problem? My code is a Energia sketch: #include <driverlib.h> volatile uint32_t R10=0; volatile uint32_t R20=0; volatile uint32_t Cont=0; const Timer_A_CaptureModeConfig captureModeConfig = { TIMER_A_CAPTURECOMPARE_REGISTER_1, // CC Register 1 TIMER_A_CAPTUREMODE_RISING_EDGE, // Rising Edge TIMER_A_CAPT
  2. Hello. I have a quartz oscillator with fo=1.6 MHz and I have changed it features and now it band width is around 20 kHz. For this, i need to a good precision. I am using the board msp430fr6989. My code is the next: #include <CounterLib_t.h> Counter<CL_TimerB0> MyCounter; //pin P2.0 void setup() { MyCounter.start(CL_Div2); // 2 pulses Serial.begin(9600); } void loop() { MyCounter.reset(); delay(1000); Serial.print((MyCounter.read()+32767.5*23)*2+32800); //32765.5 = 65535/2 **CL_Div2** //(
  3. Hello. I need to measure a frequency from output VCO with a Timer, this frequency is between 1 MHz and 2 MHz. Whit my other board i don't have any problem because i can use de library ''CounterLib'' for MSP430 with Energia. Can i use any library for TivaC for use like a ''CounterLib'' with Energia? Best Regard. P.C.
  4. Thanks you very much. it was what i want.
  5. Hello. I am trying to change the output PWM resolution in my board for feed a VCO . With enegia i can use 8 bits resolution but in the datasheet i can see that the output PWM resolution is 16 bits. I have read this Topic http://forum.43oh.com/topic/5765-analogwrite-precision-question/ they use PWMWrite(Pin,Steps,duty cycle,Frequency) but, with msp430 it does not work. There are any solution to increase the resolution of PWM output for msp430 like in Tiva C? Best Regards. P.C.
×
×
  • Create New...