Tool/software: Code Composer Studio
Is there a way to use the timer B (MSP430F247) like a "programmable frequencies generator" (I need 3 different and programmable frequency signals on TB0, TB1 and TB3) without using the interrupt ?
Thank you
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.
Tool/software: Code Composer Studio
Is there a way to use the timer B (MSP430F247) like a "programmable frequencies generator" (I need 3 different and programmable frequency signals on TB0, TB1 and TB3) without using the interrupt ?
Thank you
Hi,
it is of course possible to generate multiple PWMs with one or more Timers of the MSP430F247. When using just one timer, of course you can vary only the duty cycle, but the frequency will be of course the same for all three signals, as the Timer base will be the same.
If it should be three different frequencies, then you'd need three PWMs from three different Timers.
The other question would be, whether you just need some digital clock signals, or would like to generate analog signals. In the second case you'll need to apply some filtering at the PWM output, to cut off the edges.
The PWM generation can operate without interrupts/CPU involvement. In CCS and the TI Resource Explorer within CCS you can find multiple code examples for PWM generation.
Best regards
Peter
Thank you for your reply Peter,
no... I need 3 different square waves working at 3 different frequencies...using TA and TB I'm able to generate 2 programmable frequencies...but I need the third signal...
Hi Luigi,
understood. That's of course a problem with the MSP430F247, as you have only 2 16-bit Timers. Have you considered moving to another MSP430 derivative? Especially in our MSP430 FRAM portfolio, we have devices with more Timers on chip. What features and modules do you need?
Best regards
Peter
I can't because I have already the PCB...moving to FRAM I should redesign the PCBs (different pinouts..)...too expensive.
Regards
Hi Luigi,
understood. What about the three frequencies. Is there any fixed relation between them, e.g. like integer multiple, or is it completely volatile?
Best regards
Peter
Hi Luigi,
it seems you don't need any further support on this, thus I am closing this thread.
Best regards
Peter
**Attention** This is a public forum