
RZ/A1H Group TFT Backlight Control using Motor Control PWM Timer Peripheral
R30AN0230EG0100 Rev. 1.00
Contents
1. Specification...................................................................................................................3
2. Application Environment...............................................................................................4
3. Hardware.........................................................................................................................5
3.1 Hardware Scheme.......................................................................................................................5
3.2 RSK Configuration......................................................................................................................5
3.2.1 Switches..................................................................................................................................5
3.2.2 Jumpers ..................................................................................................................................6
3.2.3 Resistor modifications.............................................................................................................6
4. Software..........................................................................................................................7
4.1 User Operation of Sample..........................................................................................................7
4.2 Operation Overview ....................................................................................................................7
4.2.1 Operation Description .............................................................................................................7
4.2.2 Setting Cycle and Duty ...........................................................................................................8
4.3 Peripheral Function Settings .....................................................................................................8
4.4 Interrupts......................................................................................................................................9
4.5 Fixed Width Variables.................................................................................................................9
4.6 List of Constants/Error Codes.................................................................................................10
4.7 List of Structures/Unions .........................................................................................................12
4.8 Function Specifications............................................................................................................12
4.8.1 R_PWM_SampleMain...........................................................................................................12
4.8.2 R_PWM_Initialise..................................................................................................................13
4.8.3 R_PWM_SetDuty2A .............................................................................................................13
4.8.4 R_PWM_SetPeriod2.............................................................................................................13
4.8.5 R_PWM_StartTimer2............................................................................................................14
4.8.6 R_PWM_StopTimer2............................................................................................................14
4.8.7 pwm_interrupt_cmf2 .............................................................................................................14
4.8.8 R_PWM_CM2InterruptCallback............................................................................................14
4.8.9 pwm_controller......................................................................................................................15
4.8.10 pwm_vary_duty.....................................................................................................................15
4.9 Flowcharts .................................................................................................................................16
4.9.1 Peripheral Initialisation..........................................................................................................16
4.9.2 Main Processing....................................................................................................................17
5. Reference Documents..................................................................................................18