MIAC dsPIC MI5809 - i2C

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

MIAC dsPIC MI5809 - i2C

Post by Jay Dee »

Hi Guys,
I've been through the support documentation but I can work out which I/O I could use for software i2C
With the MIAC PIC the I/O interefaced directly with the micro.
That is not the case with the dsPIC and other later versions ( the Inputs are all routed via an SPI ADC I think)

So what can I use for external devices the require i2C or SPI ?
I thought maybe.. RB0 and RB1 no luck yet.
Since Im using a dsPIC MIAC without Wifi or Bluetooth ... does that free up any pins in the internal header ?
J.
!EDIT!
I see that I have UART 0 (RS232) and UART1 (RS485) these come out of the case but not sure if there are direct connected inside to the PIC, since one is RS485? hmm....

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC dsPIC MI5809 - i2C

Post by LeighM »

Hi J
Yes, the MIACs don't have any externally directly connected (logic level) processor pins.
An expansion module could be used, as these have 5v level interfaces ...
http://www.matrixtsl.com/webshop/miac-b ... odule.html

As you suggest, the internal header does have direct connection.
Have a look at page 11 of the MIAC datasheet to see how the headers work.
The pin header maps either UART0 (Tx and Rx) or UART1 to the wireless module, or to the external RS232/485 interfaces (default).

So you could remove one of the two links and get access to E0/E1 (UART0 circled in red below)
or E3/E4 (UART1 circled in orange below)
MIAC_Header.jpg
MIAC_Header.jpg (56.34 KiB) Viewed 5833 times

Post Reply