用keil提供的逻辑分析不错
时间:11-24
来源:互联网
点击:
在keil MDK中软件逻辑分析仪很强的功能,可以分析数字信号,模拟化的信号,CPU的总线(UART、IIC等一切有输出的管脚),提供调试函数机制,用于产生自定义的信号,如Sin,三角波、澡声信号等,这些都可以定义。
以keil里自带的stm32的CPU为例,对PWM波形跟踪观测,打开C:KeilARMBoardsKeilMCBSTM32PWM_2目录下的stm32的Dome,第一步:进行仿真配置,如图:
(原文件名:1.jpg) 把开工程中的Abstract.txt文件有对工程的描述,PWM从PB0.8和PB0.9输出,稍后将它加入软件逻辑分析仪里。
The PWM project is a simple program for the STM32F103RBT6
using Keil MCBSTM32 Evaluation Board and demonstrating
the use of PWM (Pulse Width Modulation) with Timer TIM4 .
Example functionality:
- Clock Settings:
- XTAL = 8.00 MHz
- SYSCLK = 72.00 MHz
- HCLK = SYSCLK = 72.00 MHz
- PCLK1 = HCLK/2 = 36.00 MHz
- PCLK2 = HCLK = 72.00 MHz
- ADCLK = PCLK2/6 = 12.00 MHz
- SYSTICK = HCLK/8 = 9.00 MHz
- TIM4 is running at 100Hz.
LEDs PB8, PB9 are dimmed using the PWM function of TIM4 channel3, channel4
The Timer program is available in different targets:
Simulator: - configured for software Simulator
MCBSTM32: - runs from Internal Flash located on chip
(used for production or target debugging)
第二、选择软件仿真
(原文件名:2.jpg) 第三、编译程序,如果程序没有错的话,将出现以下线框编译信息,然后进入调试,点出红色的“D"按,如下图所示
(原文件名:3.jpg) 第四步、把软件逻辑分析仪把,并把要观察的波形信号拉到逻辑分析仪里,如果进入调试状态下没有"sysbols"标签话,点击“View”菜单弹出来,从“Peripheral Register”里把要观察的(GPIOB_IDR输出的PWM信号会从这个寄存器反映出来)信号拖到逻辑析分析里,
(原文件名:4.jpg) 第五步、把不用的bit屏蔽掉,并按bit形式显示,配置如图
(原文件名:5.jpg) 第六步,点“GO”按钮进入全速运行,OK,PWM波形出来了,用IN和OUT可以调扫描时间,如下图
(原文件名:6.jpg)
以keil里自带的stm32的CPU为例,对PWM波形跟踪观测,打开C:KeilARMBoardsKeilMCBSTM32PWM_2目录下的stm32的Dome,第一步:进行仿真配置,如图:
(原文件名:1.jpg)
The PWM project is a simple program for the STM32F103RBT6
using Keil MCBSTM32 Evaluation Board and demonstrating
the use of PWM (Pulse Width Modulation) with Timer TIM4 .
Example functionality:
- Clock Settings:
- XTAL = 8.00 MHz
- SYSCLK = 72.00 MHz
- HCLK = SYSCLK = 72.00 MHz
- PCLK1 = HCLK/2 = 36.00 MHz
- PCLK2 = HCLK = 72.00 MHz
- ADCLK = PCLK2/6 = 12.00 MHz
- SYSTICK = HCLK/8 = 9.00 MHz
- TIM4 is running at 100Hz.
LEDs PB8, PB9 are dimmed using the PWM function of TIM4 channel3, channel4
The Timer program is available in different targets:
Simulator: - configured for software Simulator
MCBSTM32: - runs from Internal Flash located on chip
(used for production or target debugging)
第二、选择软件仿真
(原文件名:2.jpg)
(原文件名:3.jpg)
(原文件名:4.jpg)
(原文件名:5.jpg)
(原文件名:6.jpg)
keil逻辑分 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)