AN1921 Motorola / Freescale Semiconductor, AN1921 Datasheet - Page 17

no-image

AN1921

Manufacturer Part Number
AN1921
Description
AN1921 General DSP568xx Interface Examples using the Embedded SDK
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
write( Uart, PosCursor, 2);
ioctl( Uart, SERIAL_DEVICE_RESET, &NewUartState );
/* Set bit clock rate so sampling rate */
ioctl( SerialMaster, SPI_PHI_DIVIDER_32, NULL );
/* Set Data format for 16 bit */
ioctl( SerialMaster, SPI_DATAFORMAT_RAW, NULL );
/* SS can be left low between successive SPI bytes */
ioctl( SerialMaster, SPI_CLK_PHASE_SS_CLEAR, NULL);
/* TLC2543 is commanded to use analog input 8,
ADcmd = TLC2543_port_8 | \
write( Uart, NewScr, 1 );
write( Uart, TitleString1, strlen(TitleString1));
write( Uart, TitleString2, strlen(TitleString2));
PosCursor[1] = 42;
write ( Uart, "Adj. for site alt\n", 18);
ii=0;
read ( Uart, &inputarray[ii], 1);
if ( strcmp(inputarray, "A") == 0 )
{
}
ii = 0;
for(
{
/* determine if there are any user keypad entries */
Output data length = 16 bits,
Output data format = MSB first, unsigned
sum = 0;
for ( i = 0; i < 64; i++ )
{
BaroAdj( Uart, &BAdj );
write( Uart, NewScr, 1 );
write( Uart, TitleString1, strlen(TitleString1));
write( Uart, TitleString2, strlen(TitleString2));
;
/* send command word to TLC2543
write(SerialMaster, &ADcmd, sizeof(UWord16));
/* read input from TLC2543
read(SerialMaster, (UWord16 *)&Datain, sizeof(UWord16));
Datain = Datain >> 4;
Interface Examples Using the Embedded SDK
TLC2543_data_16 | \
TLC2543_MSB_first | \
TLC2543_Unipolar;
;
)
/* Set Cursor position in LCD */
*/
Integrating Devices With the EVM Board
*/
*/
17

Related parts for AN1921