4-16
getser_scc
See: getsern
getsers_scc
See: getsersn
Flow control is also handled in a mostly similar fashion. The CTS pin corresponds to the MPI pin, which is
not connected to either of the headers. The RTS pin corresponds to the MPO pin found on the J1 header.
scc_cts
See: sn_cts
scc_rts
See: sn_rts
Other SCC functions are similar to those for SER0 and SER1.
scc_close
See: sn_close
serhit_scc
See: sn_hit
clean_ser_scc
See: clean_sn
Occasionally, it might also be necessary to check the state of the SCC for information regarding errors that
might have occurred. By calling scc_err, you can check for framing errors, parity errors (if parity is
enabled), and overrun errors.
scc_err
Arguments: none
Return value: unsigned char val
The returned value val will be in the form of 0ABC0000 in binary. Bit A is 1 to indicate a framing error.
Bit B is 1 to indicate a parity error, and bit C indicates an over-run error.
4.5
Functions in VEEE.OBJ
The 512-byte serial EEPROM (24C04) provided on-board provides easy storage of non-volatile program
parameters. This is usually an ideal location to store important configuration values that do not need to be
changed often. Access to the EEPROM is quite slow, compared to memory access on the rest of the
controller.
Part of the EEPROM is reserved for TERN use specifically for this purpose.
Addresses 0x00 to 0x1f on the EEPROM is reserved for system use, including configuration information
about the controller itself, the jump address for Step Two, and other data that is of a more permanent nature.
The rest of the EEPROM memory space, 0x20 to 0x1ff, is available for your application use.
ee_wr
Arguments: int addr, unsigned char dat
Return value: int status
This function is used to write the passed in dat to the specified addr. The return value is 0 in success.