Technical information

SCI to SPI Peripheral Communication in V850ES Microcontrollers
void CALL_CSI00_Send( void )
{
CSI00_SendDone = MD_TRUE;
}
/*
**---------------------------------------------------------------------------
**
** Abstract:
** This function is a call back function to deal with data process after
** some frame(s) data receiving of CSI00 interface.
**
** Parameters:
** None.
**
** Returns:
** None.
**
**---------------------------------------------------------------------------
*/
void CALL_CSI00_Receive( void )
{
CSI00_ReceiveDone = MD_TRUE;
}
/* function to set CSI00 in Type 3 transfer mode */
void CSI00_SetType3(void)
{
ClrIORBit(CSIM00, 0x80); /* disable CSIM00.CSI0E0 when changing
CSIC0 */
SetIORBit(CSIC0, 0x10); /* CKP0 (CSIC0.4) = 1, DAP0 (CSIC0.3) = 0
for type 3 */
ClrIORBit(CSIC0, 0x08);
SetIORBit(CSIM00, 0x80); /* enable CSIM00.CSI0E0 */
}
/* function to set CSI00 in Type 4 transfer mode */
void CSI00_SetType4(void)
{
ClrIORBit(CSIM00, 0x80); /* disable CSIM00.CSI0E0 when changing
CSIC0 */
SetIORBit(CSIC0, 0x18); /* CKP0 (CSIC0.4) = 1, DAP0 (CSIC0.3) = 1
for type 4 */
SetIORBit(CSIM00, 0x80); /* enable CSIM00.CSI0E0 */
}
4.1.11 Timer_user.c
/*
*****************************************************************************
**
** This device driver was created by Applilet for the V850ES/KJ1+,
V850ES/KG1+,
** V850ES/KF1+ and V850ES/KE1+ 32-Bit Single-Chip Microcontrollers
67