beautypg.com

Zilog EZ80F916 User Manual

Page 159

background image

UM014423-0607

Using the ANSI C-Compiler

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

139

;-----------------------------------------------------------
; ISR Vectors
;

Note the ‘DL’ define - This gives us two words or 4 bytes.

The upper byte is loaded with 00
We only need 24 bits.

.org

%40

dl %000000

;

dl %000000

;

dl %000000

;

dl %000000

;

dl %000000

;

dl _isr_timer0

;PRT0_ISR

dl _isr_timer1

;PRT1_ISR

dl %000000

;

dl %000000

;

dl %000000

;

dl %000000

;

dl %000000

;

dl _isr_uart0

;UART0_ISR

dl _isr_uart1

;UART1_ISR

dl %000000

;

** add all interrupt vectors that you are going to use.

;-----------------------------------------------------------------------
; Initialize Stack pointer

extern TOSPS
extern TOSPL

_c_int0:

ld.sis sp,TOSPS

; Setup SPS

ld.lil sp,TOSPL

; Setup SPL

;***********************************************************************

ld a, 00h

; Disable on-chip SRAM

out (RAM_CTL0), a; ; depends on what you want to do with the

; on-chip SRAM.

**** do other chip init here.
**** final jump to main

call

_main

; main()

void main(void)
{
init_com1();

// Init com port - enable com1 ISR

This manual is related to the following products: