问答

汇集网友智慧,解决技术难题

21ic问答首页 - TAG - 芯旺
  • 芯旺微32位IDE怎么进行debug调试? sos

    在单击调试之后,无法正常开启 [img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgYAAACcCAIAAACLP/T7AAAel0lEQVR4Ae2de1BUV57H+Wdrt2pmZ2pma3dnBEETk4mJGqMRo2OEbgKIz8RJYoKJwUfUREWiZkaMASeakOAESBhnkkxqImASpQU0CIIRGnyhgmgkvlpEe0xiMlTvssm4VTvObO+e5z330XSDNtDV31td3HPP/Z3f+Z3PeXz73G4gIgMHCIAACIAACFACERkZGV4cIAACIAACYU8gIyMDkhD2owAAQAAEQIASgCRgIIAACIAACHACkAQMBRAAARAAAU4AkoChAAIgAAIgwAlAEjAUQAAEQAAEOAFIAoYCCIAACIAAJwBJwFAAARAAARDgBPxLwm+zNuxdurIbYAeWrjjzRkE3BrgFAiAAAiAQEgT8SwJrxjs/jzv683iWfn/m7H1jYj9Lmt62IefDNb86dM+YK6vW+Wxt9eKJBRfJ3YsFEyP0x+JqWsp8QzHjhX26xw0QAAEQAAGVQEREREtLi5rD0i0tLREREeZ8NSdQSfB6vQUPTDwVFePatJmVL0qZeWxQ1LUf/vjEE/NUj8a0KglcA6jJxYKJ6qWxGK5BAARAAAR6Q6ClpeUf/vGfDKpgmWn23gNJ8Hq9W2InuP71J3WTk95/aGrVmAeODYr6/Ef/cv4ngy5NfcTs2uv1Vi+W7/cXV5s3A5AES2rIBAEQAIGbI2AQAMNlN757Jgler3fr3SPaf/gj1ePbq1fvHDNOzdGlsUvQ4cAFCIAACPQFASkDMhFIrT2WBK/XW3vbMNfwkQbvH89fYsjhl0QSqslDIutdgjlXbixEYiI+u7ZGi1wQAAEQ6IYAEwPzQ6RuivRGEjakzj0VFXNhQ043fsUttuL36DNiua0QPnAGARAAARDoOYE+kgSv15s38cHTI+71G2HBxIkFBfQbR742A1IsNCHgqYukMP2qkt9qYAACIAACIKAnIJ8XyYT+vvVVb3YJzFPliNEss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8HJAFzAQRAAAT6aJcgnxWlbhXbAbFdYNd+nhtFRAR7mwBJwGQAARAAgT6RBCoIqVvZgyKLxd9iuReC4e6rA5KAyQACIAACfSAJZHVPpV8xop8dWO8S3PTQhEBLsTtB/wlJ6MIBAiAAAmwpdAf5YB8kC0kwfqNI7BKEWrBPo1UrYRG8MCEJmAsgAAIg0Ae7BLf8bhGRhGzxzSKxD9B0QDxfIgXEXZLukwOS0IUDBEAABPpsl8De9I8dK75rKhZ9IQlbU8lHyEQWyJZA3HX31QFJwFwAARAAgT7dJeje/JNFP5v9Epv45NnNDvn1JPXRkfiVNm5zy0+QhC4cIAACINA3uwT3gD8gCZgLIAACINBHuwT3gD8gCZgMIAACIABJcLMDkoDJAAIgAAKQBDc7IAmYDCAAAiAASXCzA5KAyQACIAACXBLYgoifgQyIjIyMiIyMjEBMYQMCIAACoUUAMqASCKTvIAmBUIINCIAACIQFAUhCWHQzGgkCIAACgRCAJARCCTYgAAIgEBYEIAlh0c1oJAiAAAgEQgCSEAgl2IAACIBAWBCAJIRFN6ORIAACIBAIAUhCIJRgAwIgAAJhQQCSEBbdjEaCAAiAQCAEIAmBUIINCIAACIQFAUhCWHQzGgkCIAACgRCAJARCCTYgAAIgEBYEIAlh0c1oJAiAAAgEQgCSEAgl2IAACIBAWBCAJIRFN6ORIAACIBAIAUhCIJRgAwIgAAJhQQCSEBbdjEaCAAiAQCAEuCT8/3/RwQECIAACIAAC/wd7jpbj8nY5GQAAAABJRU5ErkJggg==[/img]

    芯旺 调试 IDE BUG 嵌入式 国产芯片

    2496浏览量 0回复量 关注量
  • 国产KF32系列单片机的程序下载。

    国产KF32系列单片机的程序下载,只能用商家的下载器吗?

    国产芯片 KF32 芯旺 chipON

    2212浏览量 2回复量 关注量
  • KF32A单片ECCP5的pwm模式的用法(比较值装载问题) sos

    关于增强型CCP5,配置:请问是不是每次装载比较值都需要重新配置PWM设置。 void cfg_ECCP5() { ECCP_PWM_Mode_Config(ECCP5_SFR,ECCP_PWM_FREE); //PWM自由模式, ECCP_Channel_Output_Mode(ECCP5_SFR,ECCP_CHANNEL_1,ECCP_OUTPUT_COMPLEMENTARY); //互补输出模式 ECCP_Channel_Output_Mode(ECCP5_SFR,ECCP_CHANNEL_2,ECCP_OUTPUT_COMPLEMENTARY); //互补输出模式 ECCP_Channel_Output_Mode(ECCP5_SFR,ECCP_CHANNEL_3,ECCP_OUTPUT_INDEPENDENT); //独立输出模式 ECCP_Channel_Output_Mode(ECCP5_SFR,ECCP_CHANNEL_4,ECCP_OUTPUT_INDEPENDENT); //独立输出模式 ECCP_Channel_Shutdown_Signal(ECCP5_SFR,ECCP_CHANNEL_1,ECCP_CHANNEL_SHUTDOWN_FORBID); //禁止自动关断 ECCP_Channel_Shutdown_Signal(ECCP5_SFR,ECCP_CHANNEL_2,ECCP_CHANNEL_BKIN_INACTIVE); //使能自动关断,ECCPx_BKIN引脚上的低电平 ECCP_Channel_Shutdown_Signal(ECCP5_SFR,ECCP_CHANNEL_3,ECCP_CHANNEL_BKIN_INACTIVE); //禁止自动关断 ECCP_Channel_Shutdown_Signal(ECCP5_SFR,ECCP_CHANNEL_4,ECCP_CHANNEL_BKIN_INACTIVE); //使能自动关断,ECCPx_BKIN引脚上的低电平 ECCP_PWM_Restart_Enable(ECCP5_SFR,TRUE); //使能自动重启 ECCP_PWM_Move_Phase_Enable(ECCP5_SFR,TRUE); //使能移相 ECCP_Channel_Pin_Ctl(ECCP5_SFR,ECCP_CHANNEL_2,ECCP_PORT_LOW,PIN_INACTIVE); //关闭状态为低电平 ECCP_Channel_Pin_Ctl(ECCP5_SFR,ECCP_CHANNEL_2,ECCP_PORT_HIGH,PIN_ACTIVE); //关闭状态为高电平 ECCP_Channel_Pin_Ctl(ECCP5_SFR,ECCP_CHANNEL_3,ECCP_PORT_LOW,PIN_INACTIVE); //关闭状态为低电平 ECCP_Channel_Pin_Ctl(ECCP5_SFR,ECCP_CHANNEL_3,ECCP_PORT_HIGH,PIN_ACTIVE); //关闭状态为高电平 ECCP_Channel_Pin_Ctl(ECCP5_SFR,ECCP_CHANNEL_4,ECCP_PORT_LOW,PIN_INACTIVE); //关闭状态为低电平 ECCP_Channel_Pin_Ctl(ECCP5_SFR,ECCP_CHANNEL_4,ECCP_PORT_HIGH,PIN_TRISTATE); //关闭状态为三态 ECCP_Channel_Output_Control(ECCP5_SFR,ECCP_CHANNEL_1,ECCP_PORT_LOW,ECCP_CHANNEL_OUTPUT_PWM_ACTIVE); //强制输出高电平 ECCP_Channel_Output_Control(ECCP5_SFR,ECCP_CHANNEL_1,ECCP_PORT_HIGH,ECCP_CHANNEL_OUTPUT_PWM_ACTIVE); //PWM输出,高有效 ECCP_Channel_Output_Control(ECCP5_SFR,ECCP_CHANNEL_2,ECCP_PORT_LOW,ECCP_CHANNEL_OUTPUT_PWM_ACTIVE); //PWM输出,高有效 ECCP_Channel_Output_Control(ECCP5_SFR,ECCP_CHANNEL_2,ECCP_PORT_HIGH,ECCP_CHANNEL_OUTPUT_PWM_ACTIVE); //PWM输出,高有效 ECCP_Channel_Output_Control(ECCP5_SFR,ECCP_CHANNEL_3,ECCP_PORT_LOW,ECCP_CHANNEL_OUTPUT_PWM_ACTIVE); //PWM输出,高有效 ECCP_Channel_Output_Control(ECCP5_SFR,ECCP_CHANNEL_3,ECCP_PORT_HIGH,ECCP_CHANNEL_OUTPUT_PWM_ACTIVE); //PWM输出,高有效 ECCP_Channel_Output_Control(ECCP5_SFR,ECCP_CHANNEL_4,ECCP_PORT_LOW,ECCP_CHANNEL_OUTPUT_PWM_ACTIVE); //PWM输出,高有效 ECCP_Channel_Output_Control(ECCP5_SFR,ECCP_CHANNEL_4,ECCP_PORT_HIGH,ECCP_CHANNEL_OUTPUT_PWM_ACTIVE); //PWM输出,高有效 //ECCP_Dead_Time_Config(ECCP5_SFR,ECCP_CHANNEL_2,0x00); //通道死区延时时间123公用 ECCP_Dead_Time_Config(ECCP5_SFR,ECCP_CHANNEL_1,0x80); //通道死区延时时间 ECCP_Set_Compare_Result(ECCP5_SFR,ECCP_CHANNEL_1,0x2000); //PWM占空比 ECCP_Set_Compare_Result(ECCP5_SFR,ECCP_CHANNEL_2,0x4000); //PWM占空比 ECCP_Set_Compare_Result(ECCP5_SFR,ECCP_CHANNEL_3,0x6000); //PWM占空比 ECCP_Set_Compare_Result(ECCP5_SFR,ECCP_CHANNEL_4,0x800); //PWM占空比 } 如果我将如下装载比较值单独放到main(),是没有PWM输出,pwm处于关闭状态(注:前面已经配置好PWM初始化) ECCP_Set_Compare_Result(ECCP5_SFR,ECCP_CHANNEL_1,0x2000); //PWM占空比 ECCP_Set_Compare_Result(ECCP5_SFR,ECCP_CHANNEL_2,0x4000); //PWM占空比 ECCP_Set_Compare_Result(ECCP5_SFR,ECCP_CHANNEL_3,0x6000); //PWM占空比 ECCP_Set_Compare_Result(ECCP5_SFR,ECCP_CHANNEL_4,0x800); //PWM占空比 如何可以单独装载比较值,不需要每次都要初始化PWM配置

    KF32A ECCP5 PWM 芯旺

    1140浏览量 0回复量 关注量
  • KF32 DMA无法正常转换ADC值 sos

    使用KF32A151开发板进行ADC常规组采样,设置多通道进行采样时,ADC只能获取到设定的最后一个通道的ADC值,DMA也只能获取到最后一个通道的值,无法将多个通道的值存入到数组中

    MUC KF32 芯旺

    1258浏览量 0回复量 关注量