You are here: Revision Information
STX104 Reference Manual
ContentsIndexHome
PreviousUpNext
Revision Information

By scanning and manipulating the STX104 registers one can determine the firmware revision that is installed.

Revision Releases

Date 
Revision ROM Label 
Board ID Register Value 
July 16, 2004 
071604 
Does not exist 
February 14, 2008 
080214H 
0x1008 
/* STX104 Revision Information */
#define STX104_REVISION_071604                   0
#define STX104_REVISION_080214              0x1008


/*****************************************************************
/                                               REVISION DETECTION
*/
static unsigned int STX104_Revision_Detected( int board )
{
    unsigned int value;

    value = 0x55AA;
    STX104_Set_Bank( board, 1 );
    STX104_Write_Indexed_Data_Word( board, STX104_SCRATCH_PAD, value );
    value = STX104_Read_Indexed_Data_Word( board, STX104_SCRATCH_PAD );

    if ( value == 0x55AA ) value = STX104_Read_Indexed_Data_Word( board, STX104_BOARD_ID );
    else  value = 0;

    return( value );
}
Copyright © 1997-2008 by Apex Embedded Systems. All rights reserved. Updated on Wednesday, April 02, 2008.
What do you think about this topic? Send feedback!