Part Number: TMS320F2800157
Tool/software:
Hello,
I am currently working with the cpu timers of the TMS320F2800157 controller. I am trying to make the configuration of the timers as configurable as possible. Therefore I created a struct that represents the config of one timer and put the values I needed in them such as TCR and TPR as the value of the whole registers and I made a const array of structs and I initialized the values that represents the value of the whole register using masking of all bits in the register. When I debug, I notice that the values of the array of structs are initialized correctly but when I assign them to the register value using for example ...TCR.all = (value of register) tha value doesn\t get set in the register. Why is that? Do I need to set the bits of the register timers bit by bit?
The following is an example of my code setting:
As I said the values in the struct members is correct, but they are not being set in the registers.
Note: i also tried EALLOW and EDIS when setting the registers but the values do not get set
