TI中文支持网
TI专业的中文技术问题搜集分享网站

关于TMS320F28069的问题

哪位大侠可以帮我一下吗?在user.h头文件中如下定义:

//! \brief Defines the location of the HRPWMENCLK bits in the PCLKCR0 register

//!

#define  CLK_PCLKCR0_HRPWMENCLK_BITS     (1 << 0)

 

//! \brief Defines the location of the LINAENCLK bits in the PCLKCR0 register

//!

#define  CLK_PCLKCR0_LINAENCLK_BITS      (1 << 1)

中 (1 << 0),和  (1 << 1) 是什么意思??

 

谢谢啦

ruiping zhao:

回复 Martin Yu:

麻烦再追问一下,在头文件中有

//! \brief Defines the number of bits per INTSELxNy register //! #define ADC_INTSELxNy_NUMBITS_PER_REG        8

//! \brief Defines the log2() of the number of bits per INTSELxNy register //! #define ADC_INTSELxNy_LOG2_NUMBITS_PER_REG   3

//! \brief Defines the location of the INTSEL bits in the INTSELxNy register //! #define ADC_INTSELxNy_INTSEL_BITS          (31 << 0)

//! \brief Defines the location of the INTE bits in the INTSELxNy register //! #define ADC_INTSELxNy_INTE_BITS            (1 << 5)

//! \brief Defines the location of the INTCONT bits in the INTSELxNy register //! #define ADC_INTSELxNy_INTCONT_BITS         (1 << 6)

//! \brief Defines the location of the ACQPS bits in the ADCSOCxCTL register //! #define ADC_ADCSOCxCTL_ACQPS_BITS          (63 << 0)

//! \brief Defines the location of the CHSEL bits in the ADCSOCxCTL register //! #define ADC_ADCSOCxCTL_CHSEL_BITS          (15 << 6)

//! \brief Defines the location of the TRIGSEL bits in the ADCSOCxCTL register //! #define ADC_ADCSOCxCTL_TRIGSEL_BITS        (31 << 11)

8在这里如何解释,  (15 << 6)如何解释,是15位左移6位吗, (31 << 11),寄存器是最多32位吗,31位左移11位后变成什么了,不就又回到低位了?

谢谢

哪位大侠可以帮我一下吗?在user.h头文件中如下定义:

//! \brief Defines the location of the HRPWMENCLK bits in the PCLKCR0 register

//!

#define  CLK_PCLKCR0_HRPWMENCLK_BITS     (1 << 0)

 

//! \brief Defines the location of the LINAENCLK bits in the PCLKCR0 register

//!

#define  CLK_PCLKCR0_LINAENCLK_BITS      (1 << 1)

中 (1 << 0),和  (1 << 1) 是什么意思??

 

谢谢啦

ruiping zhao:

回复 Forrest:

谢谢啦

哪位大侠可以帮我一下吗?在user.h头文件中如下定义:

//! \brief Defines the location of the HRPWMENCLK bits in the PCLKCR0 register

//!

#define  CLK_PCLKCR0_HRPWMENCLK_BITS     (1 << 0)

 

//! \brief Defines the location of the LINAENCLK bits in the PCLKCR0 register

//!

#define  CLK_PCLKCR0_LINAENCLK_BITS      (1 << 1)

中 (1 << 0),和  (1 << 1) 是什么意思??

 

谢谢啦

user5919672:

回复 Forrest:

//! \brief Defines the location of the CHSEL bits in the ADCSOCxCTL register //! #define ADC_ADCSOCxCTL_CHSEL_BITS(15 << 6)
请问这是对应哪个通道啊

赞(0)
未经允许不得转载:TI中文支持网 » 关于TMS320F28069的问题
分享到: 更多 (0)