Skip to main content
deleted 10 characters in body
Source Link
Sim Son
  • 1.9k
  • 14
  • 21

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to specific pins.

Edit: you You also have to set COM2A1 in TCCR2A. Otherwise OC2A is disconnected from the output compare unit (ref: Table 17-3 in datasheet). The effect of COM2A0/1 depends on the configuration in WGM20-WGM22. The same applies to OC2B respectively.

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to specific pins.

Edit: you also have to set COM2A1 in TCCR2A. Otherwise OC2A is disconnected from the output compare unit (ref: Table 17-3 in datasheet). The effect of COM2A0/1 depends on the configuration in WGM20-WGM22. The same applies to OC2B respectively.

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to specific pins.

You also have to set COM2A1 in TCCR2A. Otherwise OC2A is disconnected from the output compare unit (ref: Table 17-3 in datasheet). The effect of COM2A0/1 depends on the configuration in WGM20-WGM22. The same applies to OC2B respectively.

added 5 characters in body
Source Link
Sim Son
  • 1.9k
  • 14
  • 21

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to fixspecific pins.

Edit: you also have to set COM2A1 in TCCR2A. Otherwise OC2A is disconnected from the output compare unit (ref: Table 17-3 in datasheet). The effect of COM2A0/1 depends on the configuration in WGM20-WGM22. The same applies to OC2B respectively.

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to fix pins.

Edit: you also have to set COM2A1 in TCCR2A. Otherwise OC2A is disconnected from the output compare unit (ref: Table 17-3 in datasheet). The effect of COM2A0/1 depends on the configuration in WGM20-WGM22. The same applies to OC2B respectively.

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to specific pins.

Edit: you also have to set COM2A1 in TCCR2A. Otherwise OC2A is disconnected from the output compare unit (ref: Table 17-3 in datasheet). The effect of COM2A0/1 depends on the configuration in WGM20-WGM22. The same applies to OC2B respectively.

added 353 characters in body
Source Link
Sim Son
  • 1.9k
  • 14
  • 21

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to fix pins.

Edit: you also have to set COM2A1 in TCCR2A. Otherwise OC2A is disconnected from the output compare unit (ref: Table 17-3 in datasheet). The effect of COM2A0/1 depends on the configuration in WGM20-WGM22. The same applies to OC2B respectively.

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to fix pins.

The output compare unit of timer 2 is connected to pins PB3 (OC2A) and PD3 (OC2B). So you have to configure those as outputs. Keep in mind that you can't choose any pin when using hardware pwm, this hardware feature is linked to fix pins.

Edit: you also have to set COM2A1 in TCCR2A. Otherwise OC2A is disconnected from the output compare unit (ref: Table 17-3 in datasheet). The effect of COM2A0/1 depends on the configuration in WGM20-WGM22. The same applies to OC2B respectively.

Source Link
Sim Son
  • 1.9k
  • 14
  • 21
Loading