cancel
Showing results for 
Search instead for 
Did you mean: 

having difficulty implementing PCM using sawtooth register

김남제
Associate

I am trying to implement peak current mode using stmG474. I implemented the code using direct register manipulation for high-speed interrupt operation.

I confirmed that a sawtooth wave is generated using the following code, and that variables can be adjusted in real-time using the volatile type.

When I used a separate project to output the sawtooth wave purely on its own, it worked correctly.

However, when I integrated this code into the PCM project, the RST (Reset) works fine, but the sawtooth slope is not visible (The slope is visible when the same logic is used for simple sawtooth output).

What could be the reason for this? Also, would implementation using HAL be possible?

0 REPLIES 0