Control the brightness of a LED isn't difficult because a frequency of 100Hz is enough. A timer should be suitable.
But to control with PWM on the orig. PCB8031 you could use the asynchronous or synchronous output port.
kit_714 said:
If possible, attach some source code for reference...
Hi...
just make a lookup table with say 100 entries from 0-99
and use each entry as the on time for a 100ms square wave generated via a timer...
Load the LUT entries into the timer to control the brightness of LEDs (i.e controlling the PWM)