
Epson Research and Development
Page 79
Vancouver Design Center
Programming Notes and Examples
S1D13706
Issue Date: 01/02/23
X31B-G-003-03
void seSetMainWinAsActiveSurface(void)
void seSetSubWinAsActiveSurface(void)
Description:
These functions set the active surface to the display indicated in the function name.
Before calling one of these surface selection routines, that surface must have been allo-
cated using any of the surface allocation functions.
Parameters:
None.
Return Value:
None.
void sePwmEnable(int Enable)
Description:
This function enables or disables the Pulse Width Modulation (PWM) clock circuitry.
Parameters:
Enable
Set to TRUE or FALSE to enable or disable PWM.
Return Value:
None.
void seCvEnable(int Enable)
Description:
This function enables or disables the Contrast Voltage (CV) pulse circuitry.
Parameters:
Enable
Set to TRUE or FALSE to enable or disable CV.
Return Value:
None.
void sePwmControl(CLOCKSELECT ClkSource, int ClkDivide, int DutyCycle)
Description:
This function sets up the Pulse Width Modulation (PWM) clock configuration registers.
Parameters:
ClkSource
The clock source for PWM; set to either CLKI or CLKI2.
ClkDivide
The clock source is divided by 2^ClkDivide. Legal values for ClkDivide
are from 0 to 12 (decimal). For example, if ClkDivide
is 3, the clock source is divided by 2^3=8.
DutyCycle
The PWM clock duty cycle; values can be from 0 to 255. A value of 0
makes the PWM output always low, and a value of 255 makes the PWM
output high for 255 out of 256 clock periods.
Return Value:
None.
void seCvControl(CLOCKSELECT ClkSource, int ClkDivide, int BurstLength)
Description:
This function sets up the Contrast Voltage (CV) pulse configuration registers.
Parameters:
ClkSource
The clock source for CV; set to either CLKI or CLKI2.
ClkDivide
The clock source is divided by 2^ClkDivide. Legal values for ClkDivide
are from 0 to 12 (decimal). For example, if ClkDivide
is 3, the clock source is divided by 2^3=8.
BurstLength
The number of pulses generated in a single CV pulse burst. Legal
values are from 1 to 256.
Return Value:
None.