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.

[SOLVED] Is it possible to control a single pin of MC23017?

Status
Not open for further replies.
to my limited knowledge, i suppose a human eye can't see, but there would be a blink as, we have to transmit all 8 bits again changing only the bit under concern. Perhaps it is like refreshing with needed bit altered.
 
hello,


it seems only byte can be transmit to the output, but through an internal latch of MCP23017.
So to modify only one bit,you can read the latch, do an OR or AND function with the bit you want to change
and send back (write) the ORed or ANDed value to the device without affect the other PIN
 
Or keep a shadow variable/register in the uP and modify it using AND and OR operations as paulfjujo described. Then you just need to write the register. It should be faster as well.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top