Chapter 4: Software
R-Engine-D
4-20
unsigned char s1_cts ( void );
reads IP0 = J2
oid s1_rts ( char b );
// drives OP0 = J2.27
to t
R1.
serhit
n
ns in AEEE.OBJ
he 512-byte serial EEPROM (
24C04
) provided on-board allows easy storage of non-volatile program
arameters. This is usually an ideal location to store important configuration values that do not need to be
is quite slow, compared to memory access on the rest of the
The rest of the EEPROM memory space,
0x20
to
0x1ff
, is available for your application use.
//
.36
v
unsigned char s2_cts ( void );
// reads IP1 = J2.24
void s2_rts ( char b );
// drives OP1 = J1.3
Other SCC functions are similar
hose for SER0 and SE
s
n
_close
clean_ser
n
4.6
Functio
T
p
changed often. Access to the EEPROM
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, jump address for Step Two, and other data that is of a more permanent nature.
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.
ee_rd
Arguments:
int addr
Return value:
int data
This function returns one byte of data from the specified address.