A cellular automaton model that simulates the mesoscopic scale behavior of an electrode is presented in this article. Transition rules that mimic anodic and cathodic events corresponding to a simple dissolution mechanism including the presence of adsorbates and charge acceptor cations are introduced. The model focuses essentially on the case of a free corroding electrode, although polarized regimes are also examined. This mesoscopic approach discloses features that are not considered in the standard macroscopic description. First, the metal surface becomes morphologically heterogeneous. Secondly, the degree of roughness is linked to a specific distribution of active dissolution sites, and the resulting interplay between morphology and kinet...