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.

Expand the I/O pins of PIC16F877A

Status
Not open for further replies.

nooobboy4321

Junior Member level 1
Joined
May 22, 2012
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,447
Hello, I just want to know how or is possible to expand the I/O pins of PIC16F877A? I need 126 I/O pins.
Thanks.
 

Existing EDABoard forum threads :

How to expand the I/Os of PIC microcontroller?
https://www.edaboard.com/threads/111969/

Did you consider to use some bus technology like 1-Wire or CAN ?


Interfacing The MCP23016 I/O Expander With The PIC16F877A
You can get up to 128 I/O. See attachment.
 

Attachments

  • microchipc_an245_mcp23016.pdf
    369.6 KB · Views: 128
Are those 126 must have both Input and output capabilities ?
If you can divide them as input only and output, that make things little easier.
 
Hello DineshSL, I need some help in using PIC16F877A-SPI-MCP23S17.... About what you said at your reply, YES, I'm planning to use MCP23S17 as a regular PORT like PORTA and other PORTS that can use either INPUT/OUTPUT in PIC16F877A... Can you give at least a Sample Code in C about Setting Up PIC16F877A SPI to MCP23S17 and setting Up MCP23S17 as Regular PORTS Input and Output like TRIS Registers of PORTA as Input... TRISA = 0xFF;.... Btw I'm using Proteus and Mikro C.... Please Help me... Thanks
 

Hi,

If you know how to program SPI module of PIC in MicroC, that all. You can use CS pin of MCP23S17 to direct your SPI data to a particular MSP23S17.

How to select pins as Input or out-put, how to write/read data to them are explained in datasheet of MCP23S17.
Check following for Microchip sample project;
**broken link removed**
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top