Answer:
section 16 (2)
Actually, that's not quite correct. Section 16 deals with "insanity", and the defence of "not criminally responsible by reason of mental disorder" ("NCRMD"). The word "automatism" refers to "non-insane" automatism, and is not found in the Code, but in the Common Law of Canada.
See details re s. 16 at http://www.bastionlaw.ca/-insanity.asp