I'm currently designing a board to provide up to eight digital outputs and at least two digital inputs. I need as many of the digital output pins as possible to be pwm, so it seemed to me that the ATTiny841 would be ideal as it is said to have up to 6 pwm channels.
Now, the pcb design is relatively straightforward, but I now realise that programming the unit is going to be trickier than I thought because, I believe, that for output pins to be pwm they have to be allocated in the code first and not just used in the same way as the pwm pins on the devices I have used before. From the data sheet it seems that you have to configure registers to do this. This is something I know absolutely nothing about unfortunately, having previously only written relatively simple sketches for manipulating leds for ATMega328 and ATTiny85 chips before.
Is there any recommended source of reading that would take a relative newbie like myself through the processes involved, such that I would be able to understand which data I would need from the ATTiny841 datasheet and how to use it, or an example of the coding method?
Many Thanks Bernie