Koen, Of course you may use this example - happy to help. I am re-learning this processor...
Accessing peripheral registers using Register addressing