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.
Hey,
I am trying to generate a PWM signal on PWM1 of EVA using TMS320F2812.
I configure the registers using TRACE32 as follow:
DATA.SET (&uP_EVA+0x2F) %WORD 0x0000 ;EVAIFRA
;timer 1
DATA.SET (&uP_EVA+0x03) %WORD 0x9C40 ; T1PR setup Timer1 period register
DATA.SET (&uP_EVA+0x01) %WORD 0x0000 ; T1CNT Timer1 counter
DATA.SET (&uP_EVA+0x02) %WORD 0x4E20 ;T1CMPR (half duty cycle)
DATA.SET (&uP_EVA+0x04) %WORD 0x1042 ;T1CON
; timer 2
// DATA.SET (&uP_EVA+0x07) %WORD 0x9C40 ; T2PR
// DATA.SET (&uP_EVA+0x05) %WORD 0x0000 ; T2CNT
// DATA.SET (&uP_EVA+0x06) %WORD 0x4E20 ;T2CMPR
// DATA.SET (&uP_EVA+0x08) %WORD 0x1042 ;T2CON
DATA.SET (&uP_EVA+0x00) %WORD 0x0002 ; GPTCONA
;Initialize CMPRx
DATA.SET (&uP_EVA+0x17) %WORD 0x4E20 ;CMPR1
// DATA.SET (&uP_EVA+0x18) %WORD 0x4E20 ;CMPR2
// DATA.SET (&uP_EVA+0x19) %WORD 0x4E20 ;CMPR3
;Setup and load ACTRx
DATA.SET (&uP_EVA+0x13) %WORD 0x0999 ;ACTRA Action on compare output pin 1, CMP1 : 10 active high
;Setup and load DBTCONx, if dead-band is to be used
DATA.SET (&uP_EVA+0x15) %WORD 0x0000 ;DBTCONA Dead band disable
;Setup and load COMCONx
DATA.SET (&uP_EVA+0x11) %WORD 0xA600 ;COMCONA
DATA.SET (&uP_EVA+0x04) %WORD 0x8840 ;T1CON
I cannot see my signal with the scope, i don't know if i missed something in my configuration. Someone have an idea please ?
Hello,
Have you tried to use one of the examples provided in the following package (SPRC097) and compared that to your configuration?
https://www.ti.com/product/TMS320F2812#software-development
Best Regards,
Marlyn