ADS8327 anyone?

Hi,

I am feeding some data through a PGA and into an ADS8327. Using a scope I have confirmed that the PGA is operating correctly and the signal is getting into the ADC input.

What I really want to know is if there is anyone here with some code they know works for initialising and reading data from the ADC. I think there is something wrong with my routines. SPI works fine, just not the ADC part of my code. I am running this on a AT91SAM7S256.

So if anyone has some code they know works it would be a great help and save me a lot of time!