Renesas Technology, Tools FAQs
Last Updated: October 5, 2001
Document Number: 01092004_e
Q.
How should I set Timer A0 for MR79 when executing a program, which embeds MR79, on PD79SIM?
A.
Follow the I/O script sample program included in PD79SIM: Load the sample program for the MR79 timer (mr.scr) in the I/O
window. Refer to "Introducing I/O Script Sample Programs" (31KB, 12 pages) in the manual for more details.
When using the sample program (timerA0_TMode.scr) for Timer A0 (timer mode), add the following procedure to the final line of
the program.
{
while(1){
pass #iswrite:0x47, 1 ;Monitor write to Timer A0 register.
set %tm_reload_reg = [0x46].w ;Store value of Timer A0 register in reload
register.
}
}
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Kommentare zu diesen Handbüchern