Hi Abdullah,
In your email you mentioned that the DMA_flag is always keep zero. I'd like to confirm that whether you had connected the TTA8 with PTC1 or PTC2 when you tested the democ code.
I'd like to suggest that you use the export and inport feature of PE which could make you create a new project easily and quickly and I''ve included the proceesor expert usr guide in the reply, so please refer to it.
That's all and I'm looking forward to your reply.
Have a nice day!
Best regards,
Ping