English
Language : 

HD6473847RHV Datasheet, PDF (107/546 Pages) Renesas Technology Corp – Renesas 8-Bit Single-Chip Microcomputer H8 Family / H8/300L Super Low Power Series
The following is an example in assembler.
.ORG H'0000
.DATA.W
INIT
.ORG H'0100
INIT:
MOV.W #H'FF80:16,SP
Section 3 Exception Handling
MOV.B #H'9E:8,R0L
MOV.B R0L,@H'FFC3:8
MOV.B @H'FFC3:8,R0L
MOV.B #H'F1:8,R0L
MOV.B R0L,@H'FFC3:8
MOV.B #H'BF:8,R0L
MOV.B R0L,@H'FFFA:8
ANDC.B #H'7F:8,CCR
; user program
The following is an example in C.
void powerON_Reset(void)
{
// -------------------------------------------------------
unsigned char dummy;
*((volatile unsigned char *)0xffc3)= 0x9e;
dummy = *((volatile unsigned char *)0xffc3);
*((volatile unsigned char *)0xffc3)= 0xf1;
*((volatile unsigned char *)0xfffa)= 0xbf;
// -------------------------------------------------------
set_imask_ccr(0);
// clear I bit
// user program
}
On the mask ROM version of the product, user programs may be used as is (including the
additional steps described above) or without the additional steps.
3.1 Exception Sources and Vector Address
Table 3.1 shows the vector addresses and priority of each exception handling. When more than
one interrupt is requested, handling is performed from the interrupt with the highest priority.
Rev. 7.00 Mar. 08, 2010 Page 75 of 510
REJ09B0024-0700