If you post a link to the datasheet and your existing code someone may be able to suggest a fix... Without these its hard to say anything(!)
If you post a link to the datasheet and your existing code someone may be able to suggest a fix... Without these its hard to say anything(!)