A wavelength division multiplexed device is based on a transmission grating spectrometer
having at least two diffractive optical elements. The WDM device provides flexible
use and may be widely applied in WDM systems. The device is useful for multiplexing
and demultiplexing, channel monitoring, and for adding and dropping channels. The
device provides programmability in use as an add/drop multiplexer.