Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

c progrmming explaination--

Status
Not open for further replies.

zen_1184

Junior Member level 2
Joined
Feb 20, 2008
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,423
//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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top