Hot!mcc usb & i2c issues

Author
thunderbirds
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2018/02/28 15:08:36
  • Location: 0
  • Status: offline
2018/03/02 01:17:39 (permalink)
0

mcc usb & i2c issues

hi,

Is there a known issue with combining USB with I2C on the 18F25K50?

I've used mcc (mplab x 4.05) to configure the EUSART / I2C / USB for a 18F25K50.
I've been able to get the following working
EUSART (serial i/f to PC works)
I2C (after fixing the missing semi-colon bug, able to write/read to DS1330)
USB (serial i/f to PC works)
EUSART + I2C
EUSART + USB

the following do not work.
EUSART + I2C + USB
I2C + USB

So it seems to me there is some issue with I2C & USB.

Any suggestions?
#1

2 Replies Related Threads

    ggmaster
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2015/05/26 17:26:24
    • Location: 0
    • Status: offline
    Re: mcc usb & i2c issues 2018/04/17 01:39:06 (permalink)
    0
    Hello,
     
    Could you provide some more detail on what is the nature of the failure ? When you configure I2C + USB, does the project not compile, do you see any additional warnings by the compiler, is the communication affected via I2C, USB or both ?
     
    Thanks

     
     
    #2
    Mysil
    Super Member
    • Total Posts : 2834
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: mcc usb & i2c issues 2018/04/17 05:09:13 (permalink)
    +1 (1)
    Hi,
    This is a thread more than a month old, and have not been followed up.
    OP may have solved the problem, or given up.
    I have not used 18F25K50 and USB, but:
     
    In MCC, configuration of interrupts and interrupt priorities are left to the developer:
    What selections have been done in MCC for the program?
     
    I suggest to enable 2 level priority in PIC18, then:
       USB High priority interrupt,
       I2C  Low priority interrupt.
     
       Mysil
     
    #3
    Jump to:
    © 2018 APG vNext Commercial Version 4.5