Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: Timer PWM mode, It dosen't work properly when I write large number in TACCR

$
0
0
Hello everyone, I really tkank you guys who read this. I have some problems when I use Timer. I tried to use Timer to make PWM which has 10Hz. But it dosen't work. (But it worked when I changed TBCCRx values to make 2048Hz PWM) I can't understand why this problem happens. So is there anyone who can explain the reason? I sincerely wait for your answer. I have enclosed my code below. ================================================================================================= #include " msp430f169 .h" void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer TBCCR0 = 4095; TBCCR1 = 4093; P4SEL |= 0x02; //P4.1 사용. TB1로 쓰기 위한 것. P4DIR = 0x02; //TB1 출력 확인용 TBCTL = TBSSEL_1 + MC_1; TBCCTL1 = OUTMOD_2; while(1); }//end of main

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>