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.

Dip switch interface with PIC microcontroller 16F877A

Status
Not open for further replies.

asimraufawan

Member level 2
Joined
Jul 7, 2008
Messages
50
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,653
pic microcontroller 16f877a

Hi everyone,

I want to interface a 5 way DIP switch as an input with 16f877a at port b, which gives logic
0 or 1 to the port pins its connected to, i just want to know how i will connect it.

Thanks.
 

pic microcontroller 16f877

like this :eek:ne end connect to he mcu with a 10k resistance pll high,and the other end connect to ground?so easy?
 

interfacing switch to microcontroller

PORTB has built in weak pullups, you have to enable them RBPU
Connect one side of your DIP switch to GND
 

dip switch connect at ground

Hi
the given answer is enough.
or if you want a strong pullup then use additional 10k - 33K pull up with controller pin
 

16f877 portb pullups

I have pullup the port b pins with 4.7K & the other side with ground
 

interfacing dip switch 8051

Is it working for you?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top