Tool News
 
 
 

Tool News

Products Info
Downloads
Tools FAQs
MESC TOOL NEWS: MESCT-MR30-000216D

MR30
Precaution

Please take note of the following problem in using real-time OS MR30 for the M16C/60 and M16C/20 series of microcomputers:


  1. Versions Concerned
    MR30 V.2.00 Release 1 -- MR30 V.3.20 Release 1

  2. Problem
    If the system clock of the MCU is divided by 2 or 16 before setting MR30's system timer, the clock division factor obtained after setting the timer may differ from the specified one.

  3. Workaround
    According to the directions described in 3.1, delete the four lines indicated in 3.2 from the startup file.

    3.1 Directions
    System Clock in MCUM16C/60
    and
    M16C/61 Group MCUs
    Others
    Divided before setting system timerDelete the indicated linesDelete the indicated lines
    Not divided before setting system timerDon't delete the indicated lines (Note)Delete the indicated lines
    Note: If these lines deleted, the interrupt control register may be written incorrectly.

    3.2 Lines to be deleted
    ----------------------------------------------------------------------------
         ; +-----------------------------------------------------+
         ; |     System timer interrupt setting                  |
         ; +-----------------------------------------------------+
         mov.b   #stmr_mod_val,stmr_mod_reg
         mov.b   #1H,0AH                 <--- To be deleted
         bset    6,07H                   <--- To be deleted
         mov.b   #stmr_int_IPL,stmr_int_reg
         bclr    6,07H                   <--- To be deleted
         mov.b   #0,0AH                  <--- To be deleted
         mov.w   #stmr_cnt,stmr_ctr_reg
         or.b    #stmr_bit+1,stmr_start
    ----------------------------------------------------------------------------
    

  4. Schedule of Fixing Problem
    We will delete the above 4 lines from the startup file in our next release.





© 2008. Renesas Technology Corp., All rights reserved. Privacy | Legal