In the step of molding S8, the passive elements 120, the controllers 130, at least one of flash memories 140 and the wires 131 and 141 on the substrate 110 are encapsulated by the encapsulant, such as an epoxy resin or a silicon resin, and thus the encapsulation part 150 of a predetermined shape is formed.