V104
Appendix F: Software Glossary
F-2
void halt(void)
ve.h
Enables HALT standby mode, which halts the system clock to reduce power consumption.
Peripheral CPU devices (serial ports, timers, DMA ....) will not be effected. System clock restored
by interrupt.
Reference: ve_halt.c
void hitwd(void)
ve.h
Hits the watchdog timer using P03. P03 must be connected to WDI of the MAX691 supervisor
chip.
Reference: See the Hardware chapter of this manual for more information on the MAX691.
void port_init(char p, char pmc, char pm)
ve.h
Initializes I/O port mode control and port mode.
Var: p = port 0, 1 or 2.
The PMC and PM variables define each pin of the 8-bit port selected.
For example: PM = 0xf0 would set bits 0 – 3 as low and bits 4 – 7 as high.
pmc = CONTROL or I/O mode (0 = I/O; 1 = CONTROL).
pm = I/O pin as input or output(0 = output; 1 = input).
Reference: portx.c
void port_wr(char p, char dat)
ve.h
Writes a bit to a Port I/O line. Port I/O line must be in an output mode
Var: p – Port 0, 1, or 2
dat – 8-bit data for port p
Reference: portx.c
unsigned int port_rd(char p)
ve.h
Reads an 8-bit I/O port.
Var: port – 0: Port 0
1: Port 1
2: Port 2
Reference: portx.c