V104
Appendix F: Software Glossary
F-5
void timer1_init(unsigned char mode, int md0, int tm0);
Timer 0, 1 initialization.
Var: mode – TMC Timer mode. See ch. 9 for the TMC register
tm – Count time for the count down timer.
md – Count time for the modulo timer.
Reference: timer.c, timer0.c, timer1.c
void timer0_interrupt(char i, void interrupt far (*timer0_isr)());
ve.h
void timer1_interrupt (char i, void interrupt far (*timer1_isr)());
Initialization for timer interrupts.
Var: i – 1: enable, 0: disable.
timer#_isr – pointer to interrupt service.
Reference: timer0.c, timer1.c
void nmi_init(void interrupt far (* nmi_isr)());
ve.h
void intp0_init(unsigned char i, void interrupt far (*intp0_isr)());
void intp1_init(unsigned char i, void interrupt far (*intp1_isr)());
void intp2_init(unsigned char i, void interrupt far (*intp2_isr)());
Initialization for interrupts 0 through 2 and NMI (Non-Maskable Interrupt).
Var: i – 1: enable, 0: disable.
int#_isr – pointer to interrupt service.
Reference: intpx.c
void s0_init(char m, char b, unsigned char* ibuf, int isiz,
ser0.h
unsigned char* obuf, int osiz, COM *c) (void);
void s1_init(char m, char b, unsigned char* ibuf, int isiz,
ser1.h
unsigned char* obuf, int osiz, COM *c) (void);
Serial port 0, 1 initialization.
Var: m – mode for serial control register.
b – baud rate.
ibuf – pointer to input buffer array
isiz – input buffer size
obuf – pointer to output buffer array
osiz – ouput buffer size
c – pointer to serial port structure. See VE.H for COM
structure.
b
Baud
1
110
2
150
3
300
4
600
5
1200