What do you mean?? Connecting Switches using Pull Down and Pull Up resistors??
For that you need to configure the required pins as input… by writing to corresponding TRIS registers (eg: TRISA, TRISB etc)… then you can read the status of each pins by reading corresponding PORT registers (eg: PORTA, PORTB, etc.)..
thank you for the reply,
Actually there is highstate(pullup) logic and lowstate(pulldown) logic
what i am trying to do is
i want to make the highstatelogic work as same as lowstatelogic means
highstatelogic = highstatelogic
lowstatelogic = highstatelogic
the push button should work completely in highstate (or) lowstate
that is what i needed.