Technical information

CSI to SPI Peripheral Communication in V850ES Microcontrollers
4. SOFTWARE LISTINGS
This application note program is based on specific files and a number of files that are used in other
application notes such as “IIC Communication with LCD Module”. For this reason, the files are listed in
two separate sections.
Since the Applilet code generation tool was used for both programs, there are instances of the same
filename, such as serial.h, serial.c, or serial_user.c in each program. At first glance, these files may seem
identical, because Applilet may place a large amount of similar code in each version of the file.
However, there are differences in initialization values for registers, or differences in generated code,
depending on the options selected in Applilet. The files listed in the sections for each demonstration
program may be different from the same-named files in other sections.
4.1 Files for CSI to SPI Demonstration Program
4.1.1 Main.c
/*
*****************************************************************************
**
** This device driver was created by Applilet for the V850ES/KJ1+,
V850ES/KG1+,
** V850ES/KF1+, V850ES/KE1+ 32-Bit Single-Chip Microcontrollers
**
** Copyright(C) NEC Electronics Corporation 2002-2004
** All rights reserved by NEC Electronics Corporation
**
** This program should be used on your own responsibility.
** NEC Electronics Corporation assumes no responsibility for any losses
incurred
** by customers or third parties arising from the use of this file.
**
** Filename : main.c
** Abstract : This file implements main function
** APIlib: V850ESKX1H.lib V1.33 [24 Sep 2004]
**
Device: uPD70F3318Y
**
** Compiler: NEC/CA850
**
*****************************************************************************
*/
/*
** **************************************************************************
** Include files
42