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.

pwm whit timer 0

Other Parts Discussed in Thread: MSP430F5438A

buena tarde
Estoy tratando de usar el timer A0 con el msp430f5438a para generar un pwm por las salidas P1.2,3,4,5.
He seguido los ejemplos en los que se utiliza el timer A1 y B, pero no he conseguido hacerlo funcionar.
Podrian indicarme si se puede hacer y como seria.

good afternoon
I'm trying to use the timer A0 whit msp430f5438a to  to generate a PWM outputs for P1.2, 3,4,5.
I followed the examples that use the timer A1 and B, but I have not gotten it to work.
They could tell me if you can do and how serious.

  • Hola Juan,

    I'm not sure that you posted your question in the right place.  Is your query in regards to a particular/specific data converter or are you asking about the on-board data converter/pwm timer of the MSP430?  Let us know and we'll help get you to the right forum.

  • quiero controlar los sentidos de giros y su velocidad de dos motores por medio de un l293dd utilizando los terminales antes enunciados, pero en la actualida no hay ejemplos o temas al respecto.

    I controlling the senses of turns and the speed of two motors by means of a l293dd using terminals set out above, but in no examples or actualida threads thereon.

  • Threre are many threads about PWM generation already in the forum.

    However, P1.2/3/4/5 are the output pins for TimerA0. TimerA1 outputs are on P2.2/3.

    Besides translating the TA1xxx registers into TA0xxx, you also have to configure the port pins, which means changing the P2SEL and P2DIR instructions to the respective configuraitons on P1SEL an P1DIR.

    If this isn't the problem, you should paste your code here.

**Attention** This is a public forum