Author |
Message |
Topic: I2C interrupt hangs PIC |
subhan.mohammed
Replies: 13
Views: 26203
|
Forum: General CCS C Discussion Posted: Mon Jul 11, 2016 9:28 am Subject: I2C interrupt hangs PIC |
Hi,
Yes we aware we are using the I2C in a non-standard way, but for various reasons, important to our application, we need to do this. However, this should not be an issue as we are simply send ... |
Topic: I2C interrupt hangs PIC |
subhan.mohammed
Replies: 13
Views: 26203
|
Forum: General CCS C Discussion Posted: Mon Jul 11, 2016 8:43 am Subject: I2C interrupt hangs PIC |
Hi,
I am reading only one byte at a time, I am sending NACK at every i2c read command.
i2c read packet will be start, PIC address with read, read one byte from PIC, NACK, stop
Thanks |
Topic: I2C interrupt hangs PIC |
subhan.mohammed
Replies: 13
Views: 26203
|
Forum: General CCS C Discussion Posted: Mon Jul 11, 2016 8:28 am Subject: I2C interrupt hangs PIC |
Hi,
Sorry for not being clear with the sent commands.
At iMX6, I am using linux code to read/write I2C commands to PIC.
Our application running on iMX6 sends a kick command to PIC every one s ... |
Topic: I2C interrupt hangs PIC |
subhan.mohammed
Replies: 13
Views: 26203
|
Forum: General CCS C Discussion Posted: Mon Jul 11, 2016 7:56 am Subject: I2C interrupt hangs PIC |
Thank you very much for your suggestions. I will modify the code and re-do my test. Will update you about the result.
But I am still not sure why the watchdog did not reset the PIC if it hangs up a ... |
Topic: I2C interrupt hangs PIC |
subhan.mohammed
Replies: 13
Views: 26203
|
Forum: General CCS C Discussion Posted: Mon Jul 11, 2016 7:31 am Subject: I2C interrupt hangs PIC |
The commands are
iMX6 sends "RREQ",0,0\r
On receiving the above PIC replies "ACOM"\r
Thanks |
Topic: I2C interrupt hangs PIC |
subhan.mohammed
Replies: 13
Views: 26203
|
Forum: General CCS C Discussion Posted: Mon Jul 11, 2016 7:05 am Subject: I2C interrupt hangs PIC |
Thank you for quick response.
PIC slave code is:
#USE I2C(slave, sda = PIN_B9, scl = PIN_B8, SLOW, ADDRESS=0xA0, STREAM = SOM_I2C) // Configure Device as Slave
#INT_SI2C
void I2CSl ... |
Topic: I2C interrupt hangs PIC |
subhan.mohammed
Replies: 13
Views: 26203
|
Forum: General CCS C Discussion Posted: Mon Jul 11, 2016 5:43 am Subject: I2C interrupt hangs PIC |
Hi All,
I am using PIC24F32KA304 as an I2C slave device to communicate with iMX6 ARM device. This PIC is acting as a watchdog to the iMX6. So iMX6 sends a kick command to PIC every one second. I ha ... |
Topic: USB HID IO + HID Keyboard |
subhan.mohammed
Replies: 2
Views: 7899
|
Forum: General CCS C Discussion Posted: Fri Nov 21, 2014 3:33 am Subject: USB HID IO + HID Keyboard |
Hi everyone,
I am developing a USB Composite device with HID Keyboard and HID mouse functionality using PIC18F4550.
The device works perfectly in one direction. That is, I can send data to PC. B ... |
|