Cypress MCAL Adc 模块配置


一、背景知识 1.Channel ID怎么计算 ADC channel ID = n + (64 m) Where, m is the SAR ADC number or SARMUX number. n is the address of the analog signal.For example

Cypress MCAL Gpt 模块配置定时器


示例:配置一个32bit定时器,频率1MHz,使能定时器溢出中断。 MCAL配置 GPT配置 GptChannelConfiguration下添加,如下配置: 如果不需要定时器溢出中断,则不勾选GptNotification。 其中GptChannelClkSrcRef 属性在GptClockRef

Cypress MCAL Pwm 模块配置


PWM模块仅为输出PWM,对于PWM输入捕捉应使用ICU模块。 MCAL配置 port配置 mcu配置 在MCU模块中配置好PWM的PCLK及相应的McuClockReferencePoint,并在PWM模块的PwmMcuClockReferencePoint 参数中关联,该时钟即为PWM时钟源。

Cypress MCAL Can 模块配置


MCAL配置 CanController配置 每路CAN配置一个CanController,一般参数如下: 这里需要关联波特率配置CanControllerBaudrateConfig及CAN时钟,其中时钟在MCU中配置。 CAN波特率参数配置: 对于普通CAN,只有General部分参数;对于CA