V104
Appendix F: Software Glossary
F-1
Appendix F:
Software Glossary
The following is a glossary of library functions for the V104.
void ve_init(void)
ve.h
Initializes the V25 processor. The following is the source code for ve_init()
pokeb(0xfff0,0x02,0x80); /* Set PMC0 P07=CLK */
pokeb(0xfff0,0x01,0xd7); /* Set PM0 for input, P05=LED P03=HWD output */
pokeb(0xfff0,0x0a,0x80); /* Set PMC1 P17 for READY */
pokeb(0xfff0,0x09,0xaf); /* Set PM1 for input, P14=RTS1,P16=RTS0 OUTPUT */
pokeb(0xfff0,0x12,0x00); /* Set P20-P27 for port mode */
pokeb(0xfff0,0x11,0xf7);// Set PM2 for input, P23=EN485 output
Reference: led.c
void ve_reset(void)
ve.h
Resets the V25 processor.
void delay_ms(int m)
ve.h
Approximate microsecond delay. Does not use timer.
Var: m – Delay in approximate ms
Reference: led.c
void led(int i)
ve.h
Toggles P05 used for led.
Var: i - Led on or off
Reference: led.c
void delay0(unsigned int t)
ve.h
Approximate loop delay. Does not use timer.
Var: m – Delay using simple for loop up to t.
Reference: