FIG. 6A is a flow chart illustrating a method of forming an oxynitride layer on a substrate in accordance with another embodiment of the present invention, and FIG. 6B is a timing diagram illustrating the method of forming the oxynitride layer on the substrate in accordance with FIG. 6A.