Don’t know specifics on Brazil, but for one version of how others do it, (outside of the US) see: http://www.epanorama.net/links/wire_mains.html Scroll down to "Grounding and Earthing."

[pauluk may be able to elaborate on this.]