Home Forums Forum PWM functionality


Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • cass3825
    Post count: 2

    I have ch7 configured as pwm output for a buzzer using the following commands on screen 0 pre-init:

    pwm7=50 // duty cycle
    cfgpio 7,3,0 // buzzer pin
    pwmf=1000 // frequency

    This works great, the buzzer immediately sounds. The issue is turning it off! Common sense says pio7=0 should work, but no luck. I’m currently setting pwmf=65535 to make the buzzer inaudible, but this limits pwm functionality on pins 4 through 6. Reconfiguring pin 7 as an input also works to silence the buzzer, but this seems clunky. Is there a better way?

    Patrick Martin
    Post count: 3

    pio7=0 would work if the io7 was configured for output.
    You have io7 configured for PWM, so pio7=1 and pio7=0 are less useful.

    I achieve silence by

    cfgpio 7,2,0

    Other settings tend to have a slight residual noise.

    Post count: 1

    Hi…the option of controlling the fan speed and the satisfaction of silent computing were not always present when it comes to personal computers. The early x86 computers did not have active cooling because not much heat was generated, right until the introduction of the first 486 models. From that time and up until now, the computer power consumption and thermal dissipation have grown exponentially, as well as their performance.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.