标题: 英飞凌xmc1302点亮LED_KEIL源程序 [打印本页]

作者: xiaobt    时间: 2019-5-28 14:30
标题: 英飞凌xmc1302点亮LED_KEIL源程序
英飞凌xmc1302点亮led

单片机源程序如下:
  1. #include "xmc1300.h"
  2. #include "xmc_gpio.h"
  3. #include "xmc1_gpio.h"
  4. void SysTick_Handler(void)
  5. {
  6.   XMC_GPIO_ToggleOutput(P0_10);
  7. }
  8. int main(void)
  9. {
  10. struct XMC_GPIO_CONFIG XMC_GPIO_CONFIGStruct;
  11. XMC_GPIO_CONFIGStruct.mode=XMC_GPIO_MODE_OUTPUT_PUSH_PULL;
  12. XMC_GPIO_Init(P0_10,&XMC_GPIO_CONFIGStruct);
  13. //XMC_GPIO_SetOutputLow(P0_10);
  14. SysTick_Config(SystemCoreClock >> 1);
  15. while(1)
  16. {
  17. }
  18. }
复制代码

所有资料51hei提供下载:
xmc1300led_demo.7z (222.49 KB, 下载次数: 36)



作者: chen517    时间: 2019-9-26 10:59
英飞凌系列的东西都比较难学,感谢分享
作者: j1ason    时间: 2021-12-3 12:38
thanks for sharing
作者: j1ason    时间: 2021-12-3 12:38
thanks for sharing
作者: Hunny    时间: 2023-5-26 12:21
楼主有英飞凌的教程吗?只学过STM32的单片机,要怎么入门英飞凌的?




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1