You really need to provide more detail. If you have a specific problem then you need to say what you have tried and how it has failed.
If you just don't understand how to do this you need to study the reference manual and ask questions about the parts you don't understand.
If you just want somebody to provide you with a working example, then you should say that.
And, unless your problem is with how to do this in CodeWarrior, you may get a better response by posting the question in the
68K/ColdFire Microprocessors forum.
Cheers,
Paul.