Download Print this page

Link Addresses - Renesas H8S Series User Manual

Lcd display using 1/4 duty drive (lcd controller/driver)
Hide thumbs Also See for H8S Series:

Advertisement

/************************************************************/
/* Main Program
/************************************************************/
void main ( void )
{
int i;
unsigned char *LCD RAM;
set_imask_ccr(1);
MSTPCRD = 0xBF;
LCD RAM = LCD RAM;
for ( i = 0; i < 20; i++ ){
LCD RAM[i] = 0;
}
LCD RAM = LCD RAM + 0x00000A;
LPCR = 0xC3;
LCR = 0x31;
LCR2 = 0x00;
LCD RAM[7] = 0x76;
LCD RAM[6] = 0xF7;
LCD RAM[5] = 0xBD;
LCD RAM[4] = 0xE3;
LCD RAM[3] = 0xE3;
LCD RAM[2] = 0xF5;
LCD RAM[1] = 0xF7;
LCD RAM[0] = 0x71;
set_imask_ccr(0);
while(1);
}
7.

Link Addresses

Section
CV1
P
REJ06B0486-0100/Rev.1.00
LCD Display Using 1/4 Duty Drive (LCD Controller/Driver)
/* Interrupt Disable
/* module stop mode is cleared
/* Initialize LCD RAM
/* Set LCD RAM Address
/* 1/4 Duty / SEG40-SEG17 ON
/* LCD ON / Phi_sub/2
/* A waveform / Drive power is Vcc
/* "H "
/* "8 "
/* "S."
/* "2 "
/* "2 "
/* "6 "
/* "8 "
/* "F "
/* Interrupt Enable
Address
H' 000000
H' 000100
March 2005
H8S Family
*/
Page 17 of 19
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

Advertisement

loading