S i 4 0 1 0 - D K
14
Rev. 0.1
If we disable the C2 interface when the device is not connected to the IDE chain, and before the LED is turned off
when lit, then there will not be the GPIO4 problem. To do that the user must add the following function to the user
application to turn the LED on.
C function to turn the LED on:
/*
*------------------------------------------------------------------------------
*
* INCLUDES:
*/
#include "si4010.h"
/*
*==============================================================================
*
* VISIBLE FUNCTIONS:
*/
void vLedOn
(
void
)
/*-------------------------------------------------------------
*
* FUNCTION DESCRIPTION:
* Turn LED on with disabling of the C2.
* The C2 is disabled only if the part is not connected
* to the IDE debugging chain.
*
*-------------------------------------------------------------
*/
{
/*
*-------------------------------------------------------------
* VARIABLES:
*-------------------------------------------------------------
*/
GPIO_LED = 1;
if ( 0 != (RBIT_DATA & M_GPIO_LED_DRIVE) )
{
PROT0_CTRL |= M_C2_OFF;
}
}
Downloaded from
Elcodis.com
electronic components distributor