Pulse Width Modulation w/ CodeWarrior IDE and MPC 555

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Pulse Width Modulation w/ CodeWarrior IDE and MPC 555

3,345 次查看
newlearner
Contributor I
Hi,

I’m trying to run example 1 from the document number AN2375 about multichannel pulse width modulation with CodeWarrior IDE Version 5.0 with MPC555. However, when I run the program (assuming that I have the setup correctly), I kept getting program exception 0x0700 and didn’t see anything on the oscilloscope. Anybody knows what this exception mean and why am I not seeing any signal on the oscilloscope. Any help would be greatly appreciated!

Thank you,
New Learner

AN2375.pdf
Message Edited by t.dowe on 2009-09-16 10:45 AM
标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,191 次查看
J2MEJediMaster
Specialist I
Have you gone to the MPC555 page and downloaded the RCPU reference manual? (The file name is RCPURM.pdf.) It provides an exception vector table and the meaning of various exceptions. The 0x0700 exception covers a variety of programming errors, such as:

1) Floating-point exception -- Are you doing any FP math?

2) Executing a privileged instruction -- Typically means the program got lost and is trying to execute some random data as an instruction. Have you configured and tested your interrupt handler code?

3) Trap instruction -- These can be used to manage your own exception handling or implement OS calls. Usually what's happened here is the same as in 2).

I'm not familiar with the tech note in question, but perhaps with the reference manual in hand you can sort things out. HTH.

---Tom
0 项奖励
回复