Renesas Technology, Tools FAQs
Last Updated: March 5, 2002
Document Number: 02022001_e
Q.
I changed the setting of the port P9 direction register with the emulator debugger, but the status doesn't change. What's the problem?
A.
If you set the protect register (PRC2), which enables writing in the port P9 direction register, with the following procedure,
the protect on the port will not be released and the port cannot be programmed.
(1) Execute [instruction for setting "1" PRC2] step.
(2) Set a break point from [instruction for setting "1" PRC2] to [setting the port P9 direction register or the register for
the protect].
(3) Set ["1" PRC2] from DUMP WINDOW, SCRIPT WINDOW, etc. while user program is running.
(4) Set ["1" PRC2] from DUMP WINDOW, SCRIPT WINDOW, etc. while user program is stopped.
After setting the protect register (PRC2), it will go to "0" when you write to any address. Therefore, program the direction
register immediately after changing the protect register setting.
To confirm that the port P9 direction register has been successfully programmed, stop the user program after you have written
to the register and click on the "Clear" button in the RAM monitor window.
1.
Also, make sure that the port P92 is set for port functions, not peripheral functions.2.
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