HI Carlos,
Well then you better fix your schematic because it shows a 12v input
Also, you can not apply 18.5v either to that circuit and expect it to work.
The reason again being that right around 18.5v or just below it the current
to the zener is too low. Thus, you need to either raise the 220 ohm or
decrease the 1k.
If you need something that tracks from 0 to 18.5v and then clamps when
the input equals 18.5v (3.3v output) then i think you would be better off
with an ACTIVE clamp not a PASSIVE clamp like the zener is.
You might look into the LM431 ic and use it as a shunt regulator,
or another ic that works as a shunt regulator. The idea is to make
the shunt regulator kick in at 3.3v (and do it sharply) and thus limit the
voltage.
Another idea is to use an op amp and clamp the output using a zener,
which will work much better.
If you dont need that much accuracy, perhaps you can get away with
lowering the impedance of the whole network. This will make the
zener appear like a sharper device.
Another idea is to use a higher voltage zener (5v or so) and use a
divider AFTER the zener with a single resistor to the zener.
Many of the higher voltage zeners have a sharper knee so this might
work good enough. I would bet a 12v zener works much better, with
a divider AFTER the zener. You could make the network impedance
lower that way too.