Gast
#577604
Hallo Kann mir jemand sagen, warum dieser Code auf dem MSP430F2234 nicht läuft? WDTCTL = WDTPW + WDTHOLD; // Stop WDT P4DIR |= 0x06; // P4.1 and P4.2 output P4SEL |= 0x06; // P4.1 and P4.2 TB1/2 otions TBCCR0 = 128; // PWM Period/2 TBCCTL1 = OUTMOD_6; // TBCCR1 toggle/set TBCCR1 = 32; // TBCCR1 PWM Duty Cycle TBCCTL2 = OUTMOD_6; // TBCCR2 toggle/set TBCCR2 = 96; // TBCCR2 PWM duty cycle TBCTL = TBSSEL_2 + MC_3; // SMCLK, updown mode while(1) // Infinite loop { } In der Simulation mit IAR wechseln die enstprechenden P4IN und nicht P4OUT... Es handelt sich um einen Beispielcode von TI, der so bei mir nicht funktioniert. Hatte jemand von euch dieses Problem auch schon? Danke und Gruss Manuel B.