the like is preferred (typically a metal nitride such as TiN or WN), and the thickness of the layer is set to 20 to 100 nm. [0233] The layers 1236 a to 1236 d of the first electrode can be formed at the same time other wires, for example, a source wire 1234 and a power supplying line, are formed.