📄 msp430x22x4_ta_18.c
字号:
//******************************************************************************
// MSP430F22x4 Demo - Timer_A, PWM TA1-2, Up Mode, HF XTAL ACLK
//
// Description: This program generates two PWM outputs on P1.2,3 using
// Timer_A configured for up mode. The value in TACCR0, 512-1, defines the
// period and the values in TACCR1 and TACCR2 the PWM duty cycles. Using
// HF XTAL ACLK as TACLK, the timer period is HF XTAL/512 with a 75% duty
// cycle on P1.2 and 25% on P1.3.
// ACLK = MCLK = TACLK = HF XTAL
// //* HF XTAL REQUIRED AND NOT INSTALLED ON FET *//
// //* Min Vcc required varies with MCLK frequency - refer to datasheet *//
//
// MSP430F22x4
// -----------------
// /|\| XIN|-
// | | | HF XTAL (3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -