cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM_MCR

MTS
Associate II

please do not be silent, dear inhabitants of the forum. I want to understand what the problem is. I'm trying to put the output into an active state using a master timer

HRTIM_SETx1R installed
MSTPER 
 
 
 
HRTIM_MPER==1000
 
HRTIM_MCR installed
CONT
PREEN
MREPU
MCEN

this should GPIO_PC8 as the active output. but the master timer does not make it active.

only makes active

HRTIM_SETx1R installed 
SST

MSTPER Master Period

The master timer counter roll-over in continuous mode, or to the master timer reset in single-shot

mode forces the output to its active state.

where is the error? Did I understand everything correctly?

4 REPLIES 4

Hello,

I guess you are using another Timer unit to activate the output and using Master timer as a set source.

In the previous setting, I don't see the output enable in the register HRTIM_OENR.

However, it seems generated by SST, is it the same setting?

Best regards.

Yassine.

MTS
Associate II

hi ) my the microcontroller broke down. I bought a new one.  I'll do the soldering and look at this timer again.

MTS
Associate II


_legacyfs_online_stmicro_images_0693W00000bkhTfQAI.png

 do you have a working HRTIM_PWM?

I set up the PWM on the PA9 leg for timer "C" PA9 set to AF2.

 in HRTIM_OENR included TC1OEN: Timer C Output 1 Enable

could there be an error with the HRTIM_SETx1R_FOR_"C" register address? the microcontroller does not react to actions with it in any manipulations.

I calculated the address as

0x400175BC

I have set HRTIM_MCR for timer "C". HRTIM_TIMxCR_FOR_"C" I have also configured.  the counter is working, the update happens. what else do I need to configure? do you know?