Hi Ben,
The PWM pin now is active however we still have some issues or misunderstanding from my side ,
As you will see in the Flowchart I enable the PWM pin and I set the following in the properties
(1) the period to 20 000 which shows a time of 500 uSec as expected( I want 2Khz)
(2) set the Timer to Timer2
(3) do a 8bit avarage on a adc pin and load this 0-255 value to the DC regsiter ( I also loaded fix value of 127 and 255 )
The results as you will see in the scope prints
(1) the Frequency or period is double the expected so my 2Khz i2 4 Khz
(2) The duty cycle never goes bigger than 2.9 uSec about 2% max of the period
Note: I am sure I get the 255 in the adc8Bit value as when I display this variable in PORTD I can light up all 8 Leds and any numer down to 0
Sorry if I am doing something wrong
