Technical information

CSI to SPI Peripheral Communication in V850ES Microcontrollers
2.9 Software Modules
The table below shows which files were generated by Applilet, and which of those needed modification to
create the demonstration program.
The listings for these files are located in section 5.
Table 1 tware Modules for the Demonstration Program 0. Sof
File Purpose
Generated
By Applilet
Modified
By User
Main.c Main program Yes Yes
Macrodriver.h General definitions used by Applilet Yes No
Crte.s Reset vector, program startup code Yes No
Inttab.s Interrupt vectors for non-used interrupts (RETI) Yes No
System.inc Clock-related definitions Yes No
System.s Clock_Init() function Yes Yes
Note 1
System_user.c File for System interrupt Yes No
Systeminit.c SystemInit() and hdwinit() functions Yes No
Port.h Header file defining initial port states Yes No
Port.c Port_Init() routine Yes No
Serial.h CSI00-related definitions Yes Yes
Note 2
Serial.c CSI00-related functions Yes Yes
Note 2
Serial_user.c User code in CSI00 callback routines Yes Yes
Note 2
Timer.h Timer-related definitions Yes No
Timer.c Timer-related functions Yes No
Timer_user.c User code for timer interrupt service Yes Yes
Note 3
850.dir Link directive file Yes No
Temper.h Temperature sensor definitions No --
Temper.c Temperature sensor functions No --
Sw_vkj1.h Pushbutton switch definitions No --
Sw_vkj1.c Pushbutton switch functions No --
Led_vkj1.h LED definitions No --
Led_vkj1.c LED functions No --
Notes
1. System.s was modified to correct an error in the Clock_Init() routine which resulted in excessive time
spent waiting for the PLL to stabilize.
2. Serial.h was modified to add the declarations of global variables related to CSI00, defined in
Serial_user.c. Serial.c was modified to correct an error in the MD_INTCSI00() interrupt service
routine.. Serial_user.c had global variables added, code inserted in callback functions to set these
variables, and the routines CSI00_SetType3() and CSI00_SetType4() added.
3. Timer_user.c was modified to add the code to handle the periodic INTTM000 interrupt in the
MD_INTTM000() routine, which polls the pushbutton switch state to debounce the switches, and to
add routines for millisecond timing.
40