beautypg.com

Zilog Z8F0130 User Manual

Page 262

background image

Using the ANSI C-Compiler

UM013037-1212

238

Zilog Developer Studio II – Z8 Encore!
User Manual

The following values for

vectnum

are supported for Z8 Encore! Motor Control CPUs:

The following values for

vectnum

are supported for the Z8 Encore! XP 16K Series:

Returns

None

Example

#include

extern void interrupt isr_timer0(void);

void main(void)

{

SET_VECTOR(TIMER0, isr_timer0); /* setup TIMER0 vector */

}

RESET
WDT
TRAP
PWMTIMER
PWMFAULT
ADC
CMP
TIMER0
UART0_RX
UART0_TX
SPI
I2C

C0
PB
P7A
P3A
P6A
P2A
P5A
P1A
P4A
P0A
POTRAP
WOTRAP

RESET
WDT
TRAP
TIMER2
TIMER1
TIMER0
UART0_RX
UART0_TX
I2C
SPI
ADC
P7AD
P6AD
P5AD

P4AD
P3AD
P2AD
P1AD
P0AD
MCT
UART1_RX
UART1_TX
C3
C2
C1
C0
POTRAP
WOTRAP