A method of and apparatus for processing data according to data types. The
data processing method is performed by a slave processor and a main
processor, wherein the slave processor stores and reads data and the main
processor is connected to the slave processor to process the data. The
data processing method includes: the main processor, transmitting at
least one reference address to the slave processor, analyzing whether
transmission data to be communicated to the slave processor is data that
has to be processed in real-time or data that does not have to be
processed in real-time, setting a relative address of the transmission
data according to the analyzed result, and transmitting the relative
address to the slave processor, wherein the relative address is an
address of the slave processor in which the transmission data to be
transmitted to the slave processor is to be stored or an address of the
slave processor in which the transmission data to be received from the
slave processor is stored, and the slave processor storing the
transmitted reference address, determining whether the transmission data
is data that has to be processed in real-time or data that does not have
to be processed in real-time by comparing the relative address with the
reference address, and correcting errors generated when the transmission
data is processed, using predetermined processes according to the
determined result. Therefore, it is possible to improve error-correction
performance, utilize the slave processor for various purposes, and reduce
an access time of the main processor.