zen_1184
Junior Member level 2
//main routine
//declare i/o pins
void main(){
TRISA = 0b00000001; // PORTA is input
TRISB = 0b11111111; //
TRISC = 0b10000000;
TRISD = 0b11000000;
TRISE = 0b00000000;
LCD_Config(&PORTD,4,5,6,0,1,2,3);
LCD_Cmd(LCD_CLEAR); // send command to LCD (clear LCD)
Lcd_Out(1,1, "Vending Machine");
Lcd_Out(2,1, " System ");
Delay_ms(2000);
LCD_Cmd(LCD_CLEAR);
degree=0;
if (!but10) //if button10 pressed? then setup
setup();
can 1 any1 explain ths section of programing..
hw thy set portA as input, and other portS.
//declare i/o pins
void main(){
TRISA = 0b00000001; // PORTA is input
TRISB = 0b11111111; //
TRISC = 0b10000000;
TRISD = 0b11000000;
TRISE = 0b00000000;
LCD_Config(&PORTD,4,5,6,0,1,2,3);
LCD_Cmd(LCD_CLEAR); // send command to LCD (clear LCD)
Lcd_Out(1,1, "Vending Machine");
Lcd_Out(2,1, " System ");
Delay_ms(2000);
LCD_Cmd(LCD_CLEAR);
degree=0;
if (!but10) //if button10 pressed? then setup
setup();
can 1 any1 explain ths section of programing..
hw thy set portA as input, and other portS.