set mov.w #22500,&CCR1 ; CCR1 PWM Duty Cycle SetupC2 mov.w #OUTMOD_7,&CCTL2 ; CCR2 reset/set mov.w #7500,&CCR2 ; CCR2 PWM duty cycle SetupP1 bis.b #BIT1+BIT2+BIT3,&P1DIR ; P1.2 and P1.3 outputs bis.b #BIT1+BIT2+BIT3,&P1SEL ; P1.2 and P1.3 TA1/2 option bis.w #MC0,&TACTL ; Start Timer_A in upmode ; Mainloop
in
„Anfängerfrage: MSP430F2274“
·
Mikrocontroller und Digitale Elektronik
·