I2C_SLAVE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C_SLAVE

372 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vijay_nav on Tue Mar 11 03:19:27 MST 2014
I am using LPC-812 as I2C slave to send a byte of data, whenever an event happens. The I2C master on an Application Processor is configured to read the data once every second. If the data is ready, the master would read it from the slave (if the event has occurred), else it would read the data as zero.

The I2C master is first powered ON. When the code is flashed on to the LPC812 Board, it does not work. But, when the Board is reset, the code works as expected.

Why is the Board reset necessary? Why does the Board not function as soon as the program is flashed on to it? Is the ever-running I2C read function on the master freezes the LPC812 Board?

Thanks in anticipation.
Labels (1)
0 Kudos
1 Reply

312 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xianghuiwang on Thu May 29 16:04:03 MST 2014
Hi, Vijay_nav,
The debugger might be holding the system in reset mode.
Like for example you have to check the "Reset and Run" option under the debugger settings for the code to run right after download.
good luck!
0 Kudos