Thanks everyone.
@Bruce - You are not using DT_INT in your sample code. Would it be possible to use these settings when using DT_INT. Because what you are doing in main, in my code it is done in ISR, because code also has sub_routines to look after, it will not stay in main all the time.
Bookmarks