Hi, You may not have got your head around the speed of electronic flash - this has a bearing on how Auto flash works. It's not like your ambient Auto modes which vary SS Ap etc.
Electronic flash is quick - generally far quicker than your shutter speed (SS). (HSS is an exception.)
Auto flash started when light sensors were developed that were even quicker. They could measure flash return
during the flash burn - as flash illumination accumulated, they decided when enough (given Ap & iso) had been reflected from the subject, and then - in real time - quenched the flash burn.
Initially the sensors were on the flashgun (1) then in the film era they were in cam measuring flash return off the film surface (while the shutter was open & the exposure actually occuring) - now they are still in cam but 'pre-flash' based, measuring 'thru' the lens'.
There are dozens of pages on the sites near this one;
http://cpn.canon-europe.com/content/education/infobank/flash/flash_basics.do
Happy reading!
Cheers, Donald
PS Note (1) Separately (& confusingly) your 580(11) has one of these too (p 30) but learn ETTL(11) first!