The invention provides a nonvolatile semiconductor device, or the like. The assembly is characterized in that the aluminum-based die-casting is formed of a castable aluminum alloy which includes up to 0. Thus, the read-out voltage can be increased to improve the data retention characteristics for lengthening a refresh interval, resulting in a reduced power consumption in the data holding mode. An adjustment data is generated according to the measurement result and stored in a memory.