Periodic structures as photonic crystals are widely used in modern laser devices, communication technologies and for creating various beam splitters and filters. Diffraction gratings are applied for creating 3D television sets, DVD and Blu-ray drives and reflective structures (Berkley mirror). It is important to simulate diffraction on such structures to design optical systems with predetermined properties based on photonic crystals and diffraction gratings. Methods of simulating diffraction on periodic structures uses theory of Floquet-Bloch and rigorous coupled-wave analysis (RCWA). Current work is dedicated to analysis of photonic band gaps and simulating diffraction on one-dimensional binary diffraction grating using RCWA. The Maxwell's equations for isotropic media and constitutive relations based on the cgs system were used as a model.