This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Simulator Logic Analyzer sampling rate

I'm using a bit outdated version of Keil uVision (4.70) because it provides simulation of peripherals for a couple of MCUs.

So, I'm using simulator for stm32f103rb and I'm using Timer 1. I want to look at TIM1->CNT register (i.e. current timer counter value).

So I added TIM1->CNT in logic analyzer. I expected to see how CNT gradually grows from 0 to maximum.
Insted I saw something similar to square wave: 0 for some time then maximum for some time. I totally wasn't expecting that.

Is that normal?
Is there any way to force logic analyzer to draw all values, or maybe timer is counting to fast?

Again, I'm using simulator, not ETM with real hardware.

Parents
  • Is the logic analyzer in the IDE expected to be able to show internal counter values?

    The concept of a logic analyzer is normally to show digital signals - i.e. low or high. Then some logic analyzers have smart decoding units, so they may decode UART, I2C, CAN, ... and present state information or ASCII/HEX data.

    The digital output of a processor timer would be maybe a PWM signal if you use match registers to toggle an output pin. That would be what a physical logic analyzer would be able to see.

Reply
  • Is the logic analyzer in the IDE expected to be able to show internal counter values?

    The concept of a logic analyzer is normally to show digital signals - i.e. low or high. Then some logic analyzers have smart decoding units, so they may decode UART, I2C, CAN, ... and present state information or ASCII/HEX data.

    The digital output of a processor timer would be maybe a PWM signal if you use match registers to toggle an output pin. That would be what a physical logic analyzer would be able to see.

Children