http://www.logicieleducatif.fr/francais/homonymes/a_a.php
Je peux remplacer "a " par "avait" : c'est le verbe "avoir" conjugué au présent.
Je ne peux pas remplacer "à" par avait
cf leçon
http://www.ortholud.com/grammaire/homophone_a_a_avec_accent/index.php