Hello,
I am using MSP430F5659 micro controller having 16X2 LCD
Problem:
After pressing the reset switch (which put ground on the RST pin) sometimes garbage data/ chinese characters comes on Lcd. circuitry has 2.2Nf and 42Kohm connected on the RMU PCB.
Please suggest the system initialization procedure. My system init code is given below:
WDTCTL = WDTPW | WDTHOLD; // Stop WDT
//PMMCTL0 = PMMCTL0_L | PMMPW | PMMSWBOR;
//SYSRSTIV = 0x02;
__disable_interrupt();
clock();
P1DIR=0XFF;
P1OUT=0X00;
P5DIR =0XFF;
P5OUT=0X00;
P4DIR =0XFF;
P4OUT=0X00;
P2DIR =0XFF;
P2OUT=0X00;
P3DIR =0XFF;
P3OUT=0X00;
__delay_cycles(400000);
clock();
__delay_cycles(400000);
lcd_init();
__delay_cycles(40000);
lcd_init();
__delay_cycles(40000)