Reference generator and method for programming, adjusting and / or operating the generator