User manual

V850E2/MN4 Timer Array Unit Control
R01AN0922EJ0100 Rev.1.00 Page 52 of 54
Jan 13, 2012
4.5 Function Specifications
This section describes the specifications for the functions that are used by the sample program.
4.5.1 Main (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] None
[File Name] main.c
[Notes] None
4.5.2 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] PFCE2, PFC2, PMC2, PM2, PFCE3, PFC3, PMC3, PM3
[Calling Function] main()
[Variables] None
[File Name] initial.c
[Notes] None
4.5.3 Timer Array Unit A Control (taua_control.c)
[Function Name] taua1_initial()
[Function] Sets up the synchronous PWM output mode.
[Arguments] None
[Return Value] None
[Startup Method] Call
[SFRs Used] TAUA1TPS, TAUA1BRS, TAUA1CMOR0, TAUA1CMUR0, TAUA1CMOR1,
TAUA1CMUR1,TAUA1CDR0, TAUA1CDR1, TAUA1TOE, TAUA1TOM,
TAUA1TOC, TAUA1TOL, TAUA1TDE, TAUA1TDM, TAUA1TDL, TAUA1TRE,
TAUA1TRO, TAUA1TRC, TAUA1TME, TAUA1RDE, TAUA1RDS, TAUA1RDM,
TAUA1RDC, TAUA1RDT, TAUA1TS
[Calling Function] main()
[Variables] None
[File Name] taua_control.c
[Notes] None