I am trying to write a short simple AD conversion program Can Anyone help
You should take a look to the Getting Started User's Guide (GS51.PDF). Chapter 9. Using on-chip Peripherals gives short programming examples.