Specifications

V850E2/MN4 CSIH Control
R01AN0924EJ0100 Rev.1.00 Page 33 of 40
Feb 10, 2012
4.4 Function Specifications
This section describes the specifications for the functions that are used by the sample program.
4.4.1 Main Processing (main.c)
[Function Name] main ()
[Function] Calls necessary initialization functions before entering an infinite loop.
[Arguments] None
[Return Value] None
[Startup Method] Enters the main function after hardware initialization.
[SFRs Used] None
[Calling Function] None
[Variables] flag_mode, flag_transmit_over, flag_receive_over, flag_error
[File Name] main.c
[Notes] None
4.4.2 Software Initialization Processing (initial.c)
[Function Name] port_initial()
[Function] Sets up ports and their mode.
[Arguments] None
[Return Value] None
[Startup Method] Call
[SFRs Used] PFCE4, PFC4, PMC4, PM4, PFCE13, PFC13, PMC13, PM13
[Calling Function] main()
[Variables] None
[File Name] initial.c
[Notes] None
[Function Name] cg_initial()
[Function] Initializes the special clock frequency control register.
[Arguments] None
[Return Value] None
[Startup Method] Call
[SFRs Used] SFRCTL3
[Calling Function] main()
[Variables] None
[File Name] initial.c
[Notes] None