Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Unable to write epwm registes in TMS320F28035

$
0
0

Hi,

I was trying to setup epwm in my TMS320F28035. I have simply programmed the example file found in using CCS v5.2.1

\controlSUITE\device_support\f2803x\v126\DSP2803x_examples_ccsv4\epwm_up_aq\Example_2803xEPwmUpAQ.c

But by some reason it does not work. If I inspect the epwm registers, they are all zeros. I tried stepping through the code. For

example at following line

   EPwm1Regs.TBPRD = EPWM1_TIMER_TBPRD;       // Set timer period

EPWM1_TIMER_TBPRD has value 2000. After stepping through this, TBPRD remains at 0000. I also tried to update registers

in TBPRD and other epwm registers using debugger's registers or memory browser interface, again it fails. I can not write it.

I have tried EALLOW, same deal unable to write.

I am not sure what is going on. Can someone please help me, why I can not write to epwm registers?

I have attached some files and snap shot for your reference.

o. DSP2803x_uRCS.c is basically   Example_2803xEPwmUpAQ.c

o. Snap shot shows as I step through the code

o. Third file is memory map file.

(Please visit the site to view this file)

Thanks in advance


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>