Multiple PortExpander

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
petrus88
Posts: 30
Joined: 24 Oct 2019 12:10

Multiple PortExpander

#1 Post by petrus88 » 09 Dec 2019 17:23

Hello,
i have to use multiple port expander for my project.
i have see who there are a Lib (PortExpander) who i can use but.....

my problem is who i have to use 2 different port expander now in the declaration of lib
i see the possibility to inialize multiple adressed PE

Code: Select all

Expander_Init(0);                      // Initialize Port Expander addr 0
Expander_Init(1);                      // Initialize Port Expander addr 1
but the module connections in the Example are only for One PE

Code: Select all

// Port Expander module connections
sbit  SPExpanderRST at LATF0_bit;
sbit  SPExpanderCS  at LATF1_bit;
sbit  SPExpanderRST_Direction at TRISF0_bit;
sbit  SPExpanderCS_Direction  at TRISF1_bit;
// End Port Expander module connections


It is possible to use this lib with multiple port expander?
How?

TnKS in advance

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Multiple PortExpander

#2 Post by filip » 12 Dec 2019 14:49

Hi,

Maybe the following topics could help you :
viewtopic.php?f=13&t=14226&hilit=portexpander
viewtopic.php?f=172&t=67166

Regards,
Filip.

Post Reply

Return to “mikroC PRO for PIC32 General”