mg0012:
NOBODY wanted to help.. POOR!!!!Anyway, to fulfill these question my final solution:
#define PWM_CLK_E (*(volatile unsigned long int ) 0x40094000) // page 1020
#define PWM_WPSR_E ((volatile unsigned long int ) 0x400940E8) // page 1053
#define PWM_CPRD7_E ((volatile unsigned long int *) 0x400942EC) // Channel7 == PIN6 page 1062void setup() {
pinMode(6, OUTPUT);
analogWrite(6,205);
PWM_WPSR_E &= 0b11111111111111111111011011110110; //WPHWS0=0 WPSWS0=0 PHWS3=0 WPSWS3=0
PWM_CLK_E = 0b00000000000001000000000000000100; //DIVA= PREA= DIVB= PREB=
PWM_CPRD7_E = 0x015E; // 350}
void loop() {
}
Hi mg0012,
where did you find out that channel 7 == pin 6?