Interrupts and writing data on Flash Memory (2 questions)

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

Interrupts and writing data on Flash Memory (2 questions)

3,783 次查看
Dwork2
Contributor I
Hello,
I'm a noob and I appreciate your help.
Well, I read the professed "SIMPLE" AN2865_5500_Cookbook.pdf to learn how to use interrupts in C.
But exaples use ASSEMBLER codes!
I'm looking for an easy way to write code.
CW for MPC55xx don't use Processor Expert..
I can't find an easy guide, an how to, or some APIs that helps me to UNDERSTAND the use of interrups.

Another question.
How can i write some data on non-volatile memory?
I.E.: How can I write a sentence sent by RS232 on Flash?
And how to read it?
Any APIs?
Any example code?

I'm using an MPC5566EVB.

Please help me as soon as you can.
Thanck you, and sorry for my noob questions.


Message Edited by Dwork2 on 2008-10-15 11:09 AM
标签 (1)
标记 (1)
0 项奖励
回复
4 回复数

2,115 次查看
J2MEJediMaster
Specialist I
Have you looked at the (CodeWarrior Examples) directory of your CodeWarrior installation?  This directory contains quite a few example programs to study, although they might not do exactly what you want. You can do a search on Flash programming in these forums and to find out how to write to Flash memory. You might also study the User Guide for your processor, particuarly the chapters on exception handling, which is how the processor handles interrupts.

---Tom
0 项奖励
回复

2,115 次查看
Dwork2
Contributor I
First of all, thanck you very much for your answer.
I've already done.. But it's hard to find examples for MPC55xx and/or examples about my problem..
Anyway.. I'll search again.
Thanck you, again.
0 项奖励
回复

2,115 次查看
J2MEJediMaster
Specialist I
Well, I'm not familiar with the MPC55xx installation layout, so it's possible there may be few examples. I'm attaching an archive file that has the example interrupt programs from CodeWarrior for Power Architecture 8.7 and maybe that can help.

Also, this link points to a document that implements a small OS on the MPC55xx. It describes an interrupt implementation in some detail. Maybe that can help you as well.

---Tom



Message Edited by J2MEJediMaster on 2008-10-16 11:13 AM
0 项奖励
回复

2,115 次查看
Dwork2
Contributor I
Thanck you very much, I'll study it!
0 项奖励
回复