IC-compatible microspectrometer using a planar imaging diffraction grating.