Prudent writes PRTxDR directly when using LED7SEG UM

Question: When using LED7SEG User Module, why the pins on the port shared with an instance of the LED7SEG UM cannot maintain their logic and will be pulled down every time 'LED7SEG_Update()' executed?

 

Answer:

  The project using LED7SEG User Module which manipulates pins on a port shared with an instance of the LED7SEG User Module needs to avoid direct PRTxDR writes. The Shadow Registers should be used for such manipulation to prevent incorrect LED7SEG User Module operation.