i can't get the wave form PWM1(PB.7) My_Init() SetBit (PBDDR ,7); //PB.7 --->output PWMCR = 0x20; // PWM1 (PB7) is selected ARTCSR = 0x78; // CPU clock, 62.5kHz, counter enabled PWMDCR1 = 0x00; something is woring?? help me please.......!!
Are you sure of the output IO? On my datasheet, I see the PWM output located from PB0 to PB3. By the way, you don't need to configure the IO in output mode, as the peripheral itself configures the IO in the right state. Rgds Florent