AN1924 Motorola / Freescale Semiconductor, AN1924 Datasheet - Page 9

no-image

AN1924

Manufacturer Part Number
AN1924
Description
AN1924 Interfacing Serial LCDs to a DSP56F805s SCI and Porting Code Using the Embedded SDK
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
5.
write (SciFD, bstring, strlen(bstring));
read (SciFD, &input, 1);
/* Display some numbers on display */
write( SciFD, NewScr, 1 );
strcpy( bstring, "Input at key (’0000’ to exit) \n");
write( SciFD, bstring , strlen(bstring));
strcpy( bstring, "Hit key to start");
strcat( bstring, LF );
write( SciFD, bstring , strlen(bstring));
write( SciFD, NewScr, 1 );
/* The following loop polls keypad input, until "0000" is input */
/* Keypad entries are displayed on both LCD and in IDE’s
ii = 0;
while ( true )
{
}
write( SciFD, NewScr, 1 );
strcpy( bstring, " Done! ");
write(SciFD, bstring, strlen(bstring) );
close(SciFD);
}
In AN1921/D, an application was developed that employed a serial LCD, keypad, and
analog-to-digital converter (ADC) attached to the SPI ports of the DSP56824. This section will
describe the code modifications required to convert that application to work on the DSP56F805.
text window */
read( SciFD, &inputarray[ii], 1);
if ( inputarray[ii] == CR[0]
{
}
else
{
}
if ( strcmp(inputarray,"0000") == 0 ) break;
Converting SDK-Based Code
inputarray[ii] = 0;
sprintf(bstring, " Input- %s\n", inputarray );
write ( SciFD, bstring, strlen(bstring));
ii = 0;
write( SciFD, &inputarray[ii], 1);
ii++;
Interfacing LCDs and Porting Code
)
Converting SDK-Based Code
9

Related parts for AN1924