Thank you for your reply, the issue was related to a hardware implementation on my board, the voltage divider was influenced by the some command signal related to a transistor that changed the voltage divider gain value used on software.
i corrected the schematic and the problem disappeared.