Semiconductor device and operating method for the same

A semiconductor device according to the present invention includes a plurality of banks; and a control unit which receives a command from an external device and controls the banks individually. Each bank includes a pixel array which includes a plurality of pixels; a row decoder which activates word lines connected to the pixels according to the control of the control unit; a column decoder which activates bit lines connected to the pixels according to the control of the control unit; a sensing amplifier and a writing driver which control the voltages of the activated bit lines; and an input and output buffer which outputs the data states of the pixels based on a change in the amplified voltage. The command includes at least one operation mode information on a bank among the banks. The operation mode information includes image sensor mode or memory mode information.