[PIC] how to interface cd4067(multiplexer) with PIC16F877A(microcontroller) using mikroc

Status
Not open for further replies.

marthabryszn

Newbie level 1
Joined
Apr 2, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
5
help me please mikroc codes to interface cd4067(multiplexer) with a PIC 16F877A
 

You would need at least 5 signals (4 for channel select and one for the I/O) and more for the enable or you can tie that high. You need to define your port for I/O that you want. Set your port for the channel you want select (0-15) and write your ABCD value to match the channel you want then either read the input or write the output. That is a very basic rushed explanation but it should get you started.

1.) Init function to define pins and ports
2.) Select channel by setting ABCD on the multiplexer
3.) Write/Read from the output port of the multiplexer
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…