1. An apparatus for controlling a flash memory, the apparatus comprising: a flash memory which stores its own control information required for controlling the flash memory; a first memory which stores a programming code for controlling the flash memory, wherein the programming code does not include information particular to the flash memory; a control unit which generates a control code for controlling the flash memory by assigning the control information to the programming code, wherein the control code includes information specific to the flash memory; and a transceiver which transmits the control code.