 |
|
 |
MESC TOOL NEWS:
MESCT-MR30-000216D
Please take note of the following problem in using real-time OS MR30 for the M16C/60 and M16C/20 series of microcomputers:
-
Versions Concerned
MR30 V.2.00 Release 1 -- MR30 V.3.20 Release 1
-
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.
-
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 MCU | M16C/60 and M16C/61 Group MCUs | Others |
| Divided before setting system timer | Delete the indicated lines | Delete the indicated lines |
| Not divided before setting system timer | Don'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
----------------------------------------------------------------------------
-
Schedule of Fixing Problem
We will delete the above 4 lines from the startup file in our next release.
|
 |