msp430x22x4_tb_12.c
来自「MSP430F22x2或者22x4各个模块的源代码」· C语言 代码 · 共 16 行
C
16 行
//******************************************************************************
// MSP430F22x4 Demo - Timer_B, PWM TB1-2, Up Mode, HF XTAL ACLK
//
// Description: This program generates two PWM outputs on P4.1,2 using
// Timer_B configured for up mode. The value in TBCCR0, 512-1, defines the PWM
// period and the values in TBCCR1-2 the PWM duty cycles. Using HF XTAL ACLK
// as TBCLK, the timer period is HF XTAL/512 with a 75% duty cycle on P4.1
// and 25% on P4.2.
// ACLK = MCLK = TBCLK = 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 + =
减小字号Ctrl + -
显示快捷键?