Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/tool/monitor.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Fri Jun 8 06:26:43 2012 UTC (11 years, 11 months ago) by tekken_boss
File MIME type: text/x-csrc
File size: 1680 byte(s)
Import
1 /************************************************************************/
2 /* H8/300H Monitor Program (Advanced Mode) Ver. 3.0A */
3 /* Copyright (C) 2003 Renesas Technology Corp. */
4 /************************************************************************/
5 #include "3069s.h" /* */
6 #pragma global_register(monitor=ER5) /* Return Address */
7 void (*monitor)(void); /* */
8 /************************************************************************/
9 /* User Initialize Module */
10 /* Input ER5 <-- Return Address */
11 /* Output Nothing */
12 /* Used Stack Area --> 0(0) Byte */
13 /************************************************************************/
14 #pragma noregsave(INITIALIZE) /* Non Register Save */
15 void INITIALIZE(void) /* */
16 { /* */
17 BSC.ABWCR.BYTE = 0xff; // CS0-CS7:8bit�o�X
18 BSC.ASTCR.BYTE = 0xff; // CS0-CS7:3�X�e�[�g�A�N�Z�X
19 BSC.BCR.BYTE = 0xc6; //
20
21 P1DDR=0xFF; // Port1 use for BUS
22 P2DDR=0x07; // Port2 use for BUS
23 P8DDR=0xEC; // Port8(4-2) use for CS
24 RTCOR=0x03;
25 RTMCSR=0x27;
26 DRCRB=0x98;
27 DRCRA=0x78;
28 monitor(); /* Goto Monitor Program */
29 } /* */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26