0
Follow
0
View

Can proteus simulate two dsp28027 pieces at the same time

ddpaopaovip 注册会员
2023-02-28 17:12

Watch DCFCTL2 is disabled(has no data) window), which means that the data window is not enabled when the DSP is initialized, which can be enabled by adding the following statement in the code:

EALLOW;
SysCtrlRegs.WDCR = 0x68;  //启用 Watchdog,每个周期进行检测
EDIS;

DINT;  //关闭所有中断
InitPieCtrl();  //初始化 PIE 控制器
IER = 0x0000;  //禁用所有中断
IFR = 0x0000;  //清除中断标志
InitPieVectTable();  //初始化 PIE 中断向量表

// 启用数据窗口
EALLOW;
SysCtrlRegs.WDCR = 0x28;  //启用 Watchdog,每个周期进行检测,启用数据窗口
EDIS;

// 初始化 DSP
InitSysCtrl();  //初始化系统控制器
InitGpio();  //初始化 GPIO
InitAdc();  //初始化 ADC
InitSpiGpio();  //初始化 SPI GPIO
InitSpi();  //初始化 SPI
InitEPwm();  //初始化 EPwm

In the above code, we first disable all interrupts and initialize the PIE controller and interrupt vector table. Next, we enable the data window by making the code snippet access enhanced through EALLOW and EDIS. Finally, we initialize the system controller, GPIO, ADC, SPI, EPwm and other modules.
Note that you need to be very careful when enabling data Windows, as incorrect Settings can cause code runtime exceptions or even hardware corruption. Therefore, it is important to ensure that the data window is enabled in the right way.

cts3003 注册会员
2023-02-28 17:12

Thank you, I still can't do as you said, the same situation as the picture

dancetoy 注册会员
2023-02-28 17:12

Referring to GPT and my own ideas, Proteus can simulate multiple DSP28027s at the same time, but you have an error when simulating two DSP28027s in the same project.
According to the error, Watch DCFCTL2 is disabled(has no data window[F2802X SETUP] Watch DCCAPCTL2 is disabled(has no data window), These are errors caused by the data window not being enabled. There are several possible reasons for this to happen, including but not limited to the following:
1 Incorrectly sets the resource shared between the two DSP28027s, resulting in a resource conflict. You need to check that resources have been allocated correctly.

2 Code errors, such as forgetting to enable the data window during initialization.

3 Proteus simulator bug.

You can try to eliminate the first and second cases first. If these issues have been resolved but the error persists, you can contact Proteus's support team for help.

cychl01 注册会员
2023-02-28 17:12

There are two programs A and B, only A piece of running A or B, there is no problem. But one is running A and the other is running B at the same time. Your second point, forget to enable the data window, how to solve this?

dulicheng 注册会员
2023-02-28 17:12

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ

  • This error message is because the Watchdog related registers of the DSP28027 chip are disabled, so Proteus cannot access these registers in the simulation process. This may be because you are emulating two DSP28027s in the same project at the same time, and Proteus does not allocate separate Watchdog registers for these chips, leading to conflicts.

  • It is recommended that you split the emulation of the two chips into two different projects and only emulate one DSP28027 in each project to avoid this conflict. In addition, if you need to use Watchdog related registers for emulation, you can manually enable Watchdog in Proteus and assign separate registers to each chip. For detailed operations, refer to Proteus' help documents or official website.

dingyungao1 注册会员
2023-02-28 17:12
simulate two DSP28027s at the same time. Proteus, as a general simulation software, can help you achieve simulation of any chip, not just DSP28027.

About the Author

Question Info

Publish Time
2023-02-28 17:12
Update Time
2023-02-28 17:12