I am trying to change the PWM frequency of Attiny85 pin 1 (hardware pin 6) from default ~62Hz to ~490Hz but I can only get it to change to 4kHz when using TCCR0B = TCCR0B & 0b11111001 | 0x01; in the setup
If I change it to 0x02 I get 62Hz again. Why is this?
void setup() {
TCCR0B = TCCR0B & 0b11111001 | 0x01;
pinMode(1, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
analogWrite(1, 128);
}
According to this pinout pic the only PWM capable pins of the Attiny85 are hardware pins 5 and 6, arduino pins 0 and 1
If I understand this picture correctly both pins use the same oscillator (oscillator 0) but I am not sure what the difference betweeen A and B is (OC0B and OC0A)

I believe the string "0b11111001" corresponds to the eight bits to control 0b but this is just a guess. When I look at table 11-5 in the manual I believe I should focus om Mode 1, PWM, Phase Correct operation, but all of this have me confused.
