Hello,
Did you also download the software associated with AN3796? This software would appear to provide a good starting point for the low level LCD driver code that you require. I guess that this will need to be adapted for the specific display that you are using.
I think that you will find that the majority of prior threads concern LCD modules with built-in driver hardware, rather than the operation of the internal hardware within the MCU device.
Regards,
Mac