 art, however, data of the motor drive table that has been expanded in the RAM is incorporated in the motor driver controller by DMA transfer. The motor driver controller transfers this data to the motor driver at the set excitation time intervals. Specifically, the data of the drive table that has been stored in the RAM is transferred to the motor driver as is. As a result, in a case where it is desired to change only certain specific information such as torque setting bits, it is necessary to rewrite the specific bits, which are desired to be changed in the drive table within the RAM, by a CPU in one-byte or two-byte (=one word) units, or to store these specific bits in another area of the RAM as data of another motor drive table.
If it is so arranged that the specific bit of the drive table is rewritten by the CPU, the CPU is occupied for the period of time required for the rewriting of the drive table data. During this time the CPU cannot execute other tasks and, hence, there is the possibility that the overall performance of the printer will decline. On the other hand, assume that the arrangement is such that the data of another motor drive table is stored in another area of the RAM. If drive modes in which the settings differ by even one bit in the drive data exist, drive table data must be set in an amount equivalent to the number of these drive modes. This makes it necessary to increase the capacity of the RAM and the capacity of the ROM as well.
Accordingly, an object of the present invention is to provide a motor control apparatus that makes it possible to reduce the memory capacity used in control of a memory without increasing the load upon a CPU.
Another object of the present invention is to provide a motor control method that makes it possible to reduce the memory capacity used in control of a memory without increasing the load upon a CPU.
According to one aspect of the present invention, the foregoing objects are attained by providing an apparatus for controlling a motor that drives a mechanism using the motor as the power source, the apparatus comprising: a motor driver for driving the motor in accordance with an input of digital-format drive data of a predetermined length; a memory for storing the drive data, which has been made to correspond to a plurality of drive patterns; and driver control means for replacing part of the drive data, which has been read out from the memory by DMA, with other data and outputting the resultant data to the motor driver.
According to another aspect of the present invention, the foregoing
art, however, data of the motor drive table that has been expand in the RAM is incorporate in the motor driver controller by DMA transfer. The motor driver controller transfer this data to the motor driver at the set excitement time intervals. Specifically, the data of the campaign table that has been stored in the RAM is transplant to the motor driver as is. As a result, in a case where it is desired to change only certain specific data such as torque setting bits, it is necessary to rewrite the specific bit, which are desired to be changed in the campaign table within the RAM, by a central processing unit in one - byte or two - byte (= one word) unit, or to store these specific bits in another area of the RAM as data of another motor campaign table. 
 If it is so arranged that the specific bit of the drive table is rewritten by the CPU, the CPU is occupied for the period of time required for the rewriting of the drive table data. During this time the CPU cannot carry through other tasks and, therefore, there be the hypothesis that the overall performance of the printer will decline. On the other hand, assume that the arrangement is such that the data of another motor drive mesa is stored in another area of the RAM. If drive modes in which the settings differ by even one act in the drive data exist, drive table data must be dress in an amount equivalent to the act of these drive modes. This makes it necessary to increase the capacity of the RAM and the capacity of the read-only memory as well. 
 Accordingly, an object of the present invention is to provide a motor control apparatus that makes it possible to reduce the memory capacity use in control of a memory without increase the load upon a CPU. 
 Another object of the present invention is to supply a motor control method acting that makes it possible to reduce the memory capacity use in control of a memory without increasing the warhead upon a CPU. 
 According to one expression of the present invention, the foregoing objects are attained by providing an apparatus for controlling a motor that drives a mechanism using the motor as the power source, the apparatus consist: a motor driver for driving the motor in accordance with an input signal of digital - format drive data of a predetermined length; a memory for storing the drive datum, which has been made to correspond to a plurality of drive patterns; and driver control means for replacing part of the campaign datum, which has been understand out from the memory by DMA, with other data and outputting the resultant datum to the motor driver. 
 According to another aspect of the present invention, the foregoing
 arh, however, data of the mouor drive table tkqt has been sxpanded in the RAM is incorporated mn tye moujr driver controlldr by DMA transfee. Tht motor driver coifroller transrcrs tkiw data to the kotor drivar at the set axzication time intervals. Specifically, tre data ov the drive tafle uhae haa been stored in the RAM is transfsrred tm the motor dtiver as is. As a result, in a cwse where it is dedired to chqnge inly certain specific puformation auch as torque setting bits, it ks neeessary to tzqrihg the specifmc bitf, which are desired do be cnanged in the crite tqble within the RAM, bb a CPU in one-byte ot two-byte (=mnz word) units, or to stirw theve s[eciwuc cita mn znotheg acea of the DAM as data of another motor dtidv table.
If it js so wrwanged that the specific bit of the drine tzble is rewritten by thw CPU, the CPU is occukied for tre period of time required for the rewriting of tve drmvd tcnjd dwta. During this time the CPU cannot execute oeget nasks and, hence, tmere is the possibolltu that the ovetall pexrodmance of the prinher wilj decoine. On tre oyher hand, assume that the aerangement if such that the datc of another motpr drove table is stored in cnothed area of tje RAM. If arive modes in wficm tve settings differ by even one bit mn thz drive aata exist, drive tabpe dabd must be set in aj amoont eqgivalent tl the number of these drive modxx. This makes id nvcessary co incvease the capacyty of the RAM and thz capazity of thv ROM as xell.
Accordindly, an object lf the preseit inventyon us ti proviad a motor conttol apparcuus that mqkes it possible tp rgdhce the memory ecpqcity used in cpntfol ov e memjsy without itcrexsivb the load ukjn x CPI.
Another object of tve pdesent invention ix bo providg a motor control methpd that makes it plssibne vo redice the memory capacity used in ckntrol of a iemory withott ikcrewsing the koad upon a CPU.
According to one aspect if the present invwntion, the foregoiny pbjects are attayned by psoviding an apparatuw for controlling a motor that drives z mechdnism using the motor as the power source, the apparatus comprising: a motor dricer foc qriving the motpr in aecoxdance rith en input of digitsl-format drive data of a predetxrmined letgch; a memory for storing the dtixe data, which has been made to correslond to s plurality of drive patterns; amd driver control means nor replaxing lart of thx drive data, which hss beeu read out frim tme memory by DOA, eibh other dwta end outputting the resultant data ti the nohor driver.
Accordmng to anothcr aspebt of tre present invenfion, hhe furegoing
art, however, data of the motor drive has expanded in RAM is incorporated by transfer. The motor controller transfers this to the motor driver at the excitation time intervals. Specifically, the data of the drive table that has been in the RAM is transferred to the motor driver as is. As a in case it desired to change only certain specific information such as torque setting bits, it is necessary to the specific bits, which are desired to be in the drive table the RAM, by a CPU one-byte two-byte (=one units, to these specific bits another area of the RAM as data of another motor drive table. If it is so arranged the specific the drive is by CPU, the CPU for the period of time required of the drive table data. During this time CPU cannot other tasks and, hence, there is possibility that the overall performance of the printer decline. On the other hand, assume that the arrangement is such that the data of drive table is stored another area of RAM. drive in the settings by even one bit in the drive data exist, drive table must be set in an amount equivalent to the number drive This makes it to increase the capacity the and the capacity of as Accordingly, the invention to provide a motor apparatus that makes it possible reduce the memory capacity memory without increasing the load upon a CPU. object of the present invention is to a motor control method that makes it possible to reduce the memory used in a memory without increasing the load upon a According to one aspect the present invention, the foregoing objects are attained by an for controlling motor that drives mechanism using the as the power apparatus comprising: motor for in accordance with an input of drive of a predetermined length; a for drive data, which has been made to correspond to a plurality of drive patterns; and means for replacing part the data, which has been read out from the memory by DMA, with and outputting the motor According to aspect of the present the foregoing
 art, however, data of the motor dRive table tHat haS beEn eXpAndeD in tHe RAM is incorpoRAted In the motor driver controLler bY Dma traNSfEr. The Motor drIVeR COntRoLlEr tRaNSfErs thIs dAta to thE motor drivEr aT tHe set excitatIOn Time intervAls. specifically, The Data of ThE drIVe tabLe tHat haS been sTOred in The RAM is tRaNSferreD To the moTOR dRiveR as is. As a result, in a CAsE Where it is desirEd to chAnGE oNLY ceRtaIn specific InFormaTIon such AS tORQUe sETting bits, it is Necessary to REwrIte the SpEciFIc bits, Which ArE DesIred to be chaNged In the drivE table WIthin thE rAM, by a CpU in onE-byTe oR two-BYtE (=oNe wOrD) UniTS, oR to STorE these spEcIfIc bitS in aNOTHEr arEa oF the rAM as Data of another MotOr drIVe tAble.
IF it is So arRaNged tHat the SpeciFiC bit of the drive tAble Is rewrittEn bY tHe CpU, The CPu Is occuPieD foR the perIod of tiME reQuIRED fOr the rewriting of thE dRIVe Table datA. DurinG ThIs TIme the CPu cAnnOt exECUte otHer tASkS and, hencE, there IS tHe PossibiLiTy that ThE ovEraLl perFOrmaNce of tHe printeR will DEcline. On the othER hand, assume thAT tHE ArRAngeMenT is such that The dATa of AnotHEr MotOR drivE tablE iS StORed in another area of tHe rAM. If dRive mOdes in which thE settings dIFFEr by even One bIT iN The drive data exIst, drIve table daTA must be sEt in aN amount eQuivalent TO The numbeR of TheSe dRivE MOdEs. This makes it NECessArY to incrEasE the capAciTy oF thE RAm aNd the capaCity of thE RoM As WeLl.
ACcordINgly, an obJeCt oF tHe pResenT InventIon is To prOvIdE A moTor contROl APParaTuS tHat mAkeS iT possIble TO reDuce the Memory capAciTY useD iN cOntrol oF a memory withoUt Increasing ThE loAd upon A cpU.
AnotheR object of the present inveNTion is tO prOvide A motOr control MetHod thaT maKEs it poSsible To redUcE thE MEmory CAPaCitY uSed in contrOL Of a MemorY wIthoUt increAsing the load upon a Cpu.
AcCording to one aSpeCt of THE pResENt INveNtIOn, tHE Foregoing objectS are attainEd BY pRoviding an APpaRaTus for cOntrollIng a mOTor that Drives a meChanism usInG the MOTor As the power Source, thE apparatuS ComprISiNg: a moTor Driver FoR drIving The motOR in AccorDance wItH an inpUt of dIgItal-formAt drive data of a predetermIned leNgth; a MemOry for stoRinG The Drive data, WhicH has been maDe tO coRrespOnd TO a pluRaliTY oF drIVe patTernS; And driver COnTroL MEaNs for replacING ParT of thE drIVe data, WhicH has been read out frOM the memory by DMa, witH OTheR daTA and OuTputting the resUltAnT DAta to the MoTor driver.
AcCording tO aNOther Aspect Of the pResent iNVEnTIon, the ForeGoiNg
 art, however, data of the  motor dri ve ta ble  th at  has  bee n expanded int he R AM is incorporated inthe m ot o r dr i ve r con troller by D MAtr an sfe r. Th e mot ordrivercontroller  tr an sfers this d a ta  to the mo tor  driver at t heset ex ci tat i on ti meinter vals.S pecifi cally, th ed ata of the dri v e  t able  that has been st o re d  in the RAM is  trans fe r re d tothe  motor dri ve r asi s. As a re s u l t,i n a case wher e it is des i red  to ch an geo nly ce rtain  s p eci fic informa tion  such astorque setting bits, i t is n ece ssa ry t o  r ew rit et hes pe cif i c b its, whi ch  a re de sire d t o  becha nged  in t he drive tabl e w ithi n  th e RAM , bya CP Uin on e-byte  or t wo -byte (=one wor d) u nits, ortost ore  t heses pecifi c b its  in ano ther ar e a o ft h e  R AM as data of anot he r mo tor driv e tabl e .If it is so  a rra nged t hat t he s p ec ific bit  of th e  d ri ve tabl eis rew ri tte n b y the CPU,  the C PU is oc cupie d  for the perio d  of time requ i re d fo r  the  re writing ofthed rive  tab l edat a . Dur ing t hi s  t i me the CPU cannot e xe cute o thertasks and, he nce, there i s  the pos sibi l it y  that the over all p erformance of the p rinte r will d ecline. O n the othe r h and , a ssu m e  t hat the arran g e ment  i s suchtha t the d ata  of  an oth er  motor dr ive tabl eis  s to red  in a n other ar ea  of  t heRAM.I f driv e mod es i nwh i chthe set t in g s  dif fe rby e ven  o ne bi t in the  drivedata exis t,d rive  t ab le data  must be setin  an amount  e qui valent t o the nu mber of these drive mod e s. This  ma kes i t ne cessary t o i ncreas e t h e capa city o f the  R AMa n d the c ap aci ty  of the RO M aswell. 
A ccor dingly,  an object of thep res ent invention  is  top r ov ide am oto rc ont r o l apparatus tha t makes it  p o ss ible to re d uce  t he memo ry capa cityu sed incontrol o f a memor ywith o u t i ncreasingthe load  upon a C P U.
An o th er ob jec t of t he  pr esent  inven t ion  is t o prov id e a mo tor c on trol met hod that makes it possi ble to  redu cethe memor y c a pac ity usedin c ontrol ofa m emo ry wi tho u t inc reas i ng  th e  load  upo n  a CPU.
A c co rdi n g  t o one aspec t o f t he pr ese n t inve ntio n, the foregoingo bjects are att aine d bypro v idin gan apparatus f orco n t rollingamotor thatdrives a  m e chani sm usi ng the  motora s  t h e powe r so urc e, the ap par at u s compr is in g : a mo tordr iver f or dri v ingt h e motor in accor dance w ith a n  in put o fdigital - form at drive d ata of a pr edeter mine d len gth; ame mory f orst oring thed rive data , whi ch hasbe en m ade  to co rres p o nd to  a p lu ral ity of dr i v ep at te r ns;  and  driv er  con trol mean s  for rep lac i ng part  o f t h e  drive da t a , which ha s b een r e a d out from them em o ry by  DMA,with o ther da t a a nd  output tin g the resul tant data toth e mo tor driv er .
Ac co rdi ng  to another asp ect of t he prese n t  inven tio n , th e  foreg oi ng
 art,_however, data_of the motor drive_table that_has_been expanded_in_the RAM is_incorporated in the_motor driver controller by_DMA transfer. The_motor_driver controller transfers this data to the motor driver at the set excitation time_intervals._Specifically, the_data_of_the drive table that has_been stored in the RAM_is transferred_to the motor driver as is. As a_result,_in a case_where it is desired to change only certain specific_information such as torque setting bits,_it is necessary_to_rewrite_the specific bits, which_are desired to be changed in_the drive table within the RAM,_by a CPU in one-byte or two-byte_(=one word) units, or to store_these specific bits in another_area of_the RAM as data of_another motor drive_table.
If it_is so arranged_that the specific bit of the_drive table is_rewritten by the CPU, the CPU_is_occupied for the_period_of_time required_for the rewriting_of_the drive_table_data. During this time the CPU_cannot_execute other tasks and, hence, there is_the possibility that the_overall_performance of the printer_will decline. On the other_hand, assume that the arrangement is_such that_the data_of another motor drive table is stored in another area of_the RAM. If drive modes in_which the settings differ_by even_one_bit in the_drive_data exist,_drive table data must be set in_an amount_equivalent to the number of these_drive modes. This makes_it_necessary to increase the capacity of_the RAM and the capacity of_the ROM as well.
Accordingly, an_object_of_the present invention is to_provide a motor control apparatus that_makes it possible_to reduce the memory capacity used in_control_of a memory without increasing the_load_upon a CPU.
Another object of the_present_invention_is to provide a motor_control method that makes it possible_to reduce the memory capacity used in control of_a memory without_increasing the load upon a_CPU.
According_to_one aspect of the present invention, the foregoing objects are_attained by_providing an apparatus_for controlling a motor that drives a mechanism using the_motor as the power source, the apparatus_comprising: a motor driver for driving the motor in accordance with_an input of digital-format drive data of a_predetermined length; a memory for storing the_drive data, which has_been_made to correspond to a plurality of_drive_patterns;_and_driver control means_for replacing part_of the drive_data, which_has been read_out from_the memory by_DMA,_with other data and outputting the resultant data to the motor driver.
According to another aspect of the present_invention, the foregoing