Answer
Please, check out the datasheet and application notes of the product. Then, download our eMD firmware from our webpage and look at our examples. Unfortunately, we cannot debug your code, but we can help customers with any questions you might have for a specific register or procedure.