Jump to content


Подскажите почему не работает PWM

Recommended Posts

 Новичек в MSP430, пытаюсь запустить ШИМ на микроконтроллере msp430f2330

Вот такой код:

 DCOCTL = 0;
    BCSCTL1 = CALBC1_1MHZ; // Устанавливаем тактовую частоту Basic Clock System
    DCOCTL = CALDCO_1MHZ; // Устанавливаем тактовую
                           // частоту Digital Controlled Oscillator.

        ;P1DIR |= BIT1 
         ;P1SEL |= BIT1
         ;CCR0 = 1000
         ;CCR1 = 500
         ;TACTL = TASSEL_2 + MC_1
         ;CCTL1 = OUTMOD_7

?Почему не запускается ШИМ

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.