query | Microcontroller › AVR › query This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by Ashutosh Bhatt. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts May 29, 2014 at 10:49 am #3100 ABHINAV KUMARParticipant #include<avr/io.h> #include<util/delay.h> void cmd(unsigned char y) { PORTB&=0x0F; PORTB|=(y&0XF0); PORTB|=0X08; _delay_ms(20); PORTB&=0XF3; _delay_ms(20); PORTB&=0X0F; PORTB|(y<<4)&0XF0); PORTB|=0X08; _delay_ms(20); PORTB&=0XF3; _delay_ms(20); } void dat(unsigned char y) { PORTB&=0X0F; PORTB|=(y&0XF0); PORTB|=0X0C; _delay_ms(20); PORTB&=0XF7; _delay_ms(20); PORTB&=0X0F; PORTB|(y<<4)&0XF0); PORTB|=0X0C; _delay_ms(20); PORTB&=0XF7; _delay_ms(20); } void display(unsigned char z[]) { char i=0; while(z!=’