Page 1 of 1

MIAC dsPIC MI5809 - i2C

Posted: Mon Jun 26, 2017 8:46 pm
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....

Re: MIAC dsPIC MI5809 - i2C

Posted: Tue Jun 27, 2017 9:17 am
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 5954 times