cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE Version 1.5.0

AD�?b
Senior

He

How to preview I / O in debug?

best regards

Andrzej

1 ACCEPTED SOLUTION

Accepted Solutions

That looks like simple PWM - use PWM mode.

View solution in original post

9 REPLIES 9
TDK
Guru

Your question is not clear. What I/O? What do you mean by preview?

If you feel a post has answered your question, please click "Accept as Solution".

I am working on STM32F746G-DISCO. STM32F746NGH6 processor. I am using STM32CubeIDE version 1.5.0. I am using debug. For example, I set the input D2. Where in the STM32CubeIDE program I can observe the state 0 or 1. The same for the output signals. I / O are input or output pins.

Look into GPIOx->IDR register in debug SFRs weiv.

Well.

1. I give a name to the pin, eg INTPUT1. Where can I find the corresponding register in SFRs?

2. I set TIM3 to generate pulses. Can it be set so that the first impulse appears after a set period?

  1. You have to look which pin is yours INPUT1 (like PB12) and look into coresponding register (there GPIOB->IDR) at corresponding bit (there 12).
  2. Sorry, i am not sure that i understand what waveform do you want to generate. If you can, plot as simple sketch 🙂 (but whatever it is, probably yes, bacause timers are versatile)

ad.1 OK

ad.2 sketch

That looks like simple PWM - use PWM mode.

That looks like simple PWM - use PWM mode.

I will check.