Yes, almost correct: the swing for 12bit ranges from 0...4095 which ideally creates an output voltage at the DAC of 0...Vref.
Please also note the values of possible errors listed in the data sheet: differential and integral non linearity, offset error, gain error, total unadjusted error.
And yes, a non-inverting opamp with a gain of (5V/VDDA) would do two things:
- buffer the DAC output voltage (depending on the DAC used, it has an output resistance between output and pin) and
- gain by the desired factor
Good luck!
If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.