Test points on LPC-Link2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Test points on LPC-Link2

跳至解决方案
4,293 次查看
QM
Contributor II

Hi NXP Community, 

I am attempting to connect an LPC Link2 board to a beagle bone black (BBB) via I2C with the Link2 as the slave device. I believe for this to work I need to receive a clock signal from the BBB and input it into the Link2 via pin k6 on the LPC4370.

On the Link2 schematic sheet (provided below), k6 is accessible via TP_CLK2. The issue is that on the Link2 itself, the test points are not labelled (aside from the 3V3 and GND TPs). 

Can someone provide some information on what all the test points are connected to on the Link2? 

Regards, 

Quinn

0 项奖励
回复
1 解答
4,263 次查看
frank_m
Senior Contributor III

> Yes so don't I need to input the clock signal from the Beaglebone Black into the Link2? 

Check out the I2C spec., e.g. at Wikipedia.

I2C uses 3 connections, SDA (serial data), SCL (serial clock) and GND. This clock (SCL) is a I2C bus signal, and not directly related to the core clock (but derived from it).

Be aware that both signal are bidirectional, more or less. The SDA direction is switched for the ACK bit in every transmission, and SCL can be held down by the slave for "clock stretching" (if supported). My point, trying other non-I2C signal pins might damage the hardware.

> If so I need to do it via a test point on the Link2 but none of them are labeled. 

Those test points are for production tests only, not for application use. This is why they are not labelled. They might be labelled at the PCB layout plan, which is part of the schematics.

 

> I believe both have logic levels of 3.3V.

I would better make sure. A 3.3V level can definitely damage 1.8V electronics, at best you just don't get it to work.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
4,284 次查看
frank_m
Senior Contributor III

> I believe for this to work I need to receive a clock signal from the BBB and input it into the Link2 via pin k6 on the LPC4370.

I am not sure what you mean.

The I2C bus has a SCL signal as clock, which is provided by the (bus) master. Which is the BB in this case.

PS:

Have you checked both bords/signals have the same signal level ? Didn't the BB have 1.8V ? In this case, you need level shifters.

 

0 项奖励
回复
4,271 次查看
QM
Contributor II

>The I2C bus has a SCL signal as clock, which is provided by the (bus) master. Which is the BB in this case.

Yes so don't I need to input the clock signal from the Beaglebone Black into the Link2? If so I need to do it via a test point on the Link2 but none of them are labeled. 

>Have you checked both bords/signals have the same signal level ? Didn't the BB have 1.8V ? In this case, you need level shifters.

I believe both have logic levels of 3.3V.

 

0 项奖励
回复
4,264 次查看
frank_m
Senior Contributor III

> Yes so don't I need to input the clock signal from the Beaglebone Black into the Link2? 

Check out the I2C spec., e.g. at Wikipedia.

I2C uses 3 connections, SDA (serial data), SCL (serial clock) and GND. This clock (SCL) is a I2C bus signal, and not directly related to the core clock (but derived from it).

Be aware that both signal are bidirectional, more or less. The SDA direction is switched for the ACK bit in every transmission, and SCL can be held down by the slave for "clock stretching" (if supported). My point, trying other non-I2C signal pins might damage the hardware.

> If so I need to do it via a test point on the Link2 but none of them are labeled. 

Those test points are for production tests only, not for application use. This is why they are not labelled. They might be labelled at the PCB layout plan, which is part of the schematics.

 

> I believe both have logic levels of 3.3V.

I would better make sure. A 3.3V level can definitely damage 1.8V electronics, at best you just don't get it to work.

0 项奖励
回复
4,256 次查看
QM
Contributor II

Ok I was confused by the image attached of the transmitter slave mode. I thought that I needed to input data/clock sources into TX_SDA/SCK pins but the RX_SDA/SCK pins are both TX_and RX_. 

This is my first time using I2C so still working it all out.

Next I need to figure out how to use the function in the code image (in lpc43xx_i2c.c). Hopefully it configures the pins in the way I am expecting. I might post more questions about it here. Thanks for your help so far. 

Quinn

0 项奖励
回复