Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - risototh

Pages: [1]
1
NXPTM M522XX, KINETIS and i.MX RT / I2C and MPL115A2
« on: December 29, 2010, 02:31:14 PM »
Hi folks,

i have one little problem. I would like to communicate with MPL115A2 sensor over I2C, but it is impossible to get data from it for me... Now i have a scope attached on I2C and probably i found where is the problem, but i don't know how to solve it.
I need to send/receive somtething like this (according to AN3785 from Freescale):
[Start], 0x60+[W], 0x12, 0x01,[Stop]
[Restart], 0x60+[W], 0x00
[Start], 0x60+[R]
, 0xMSB Pressure, 0xLSB Pressure, [Stop]

I call something like this:
#define ADR_PRESSURE         0x60
unsigned char wbuff_1[] = {ADR_PRESSURE, 0x12, 0x01};
unsigned char wbuff_2[] = {ADR_PRESSURE, 0x00};
unsigned char IIC_IO_read[] = {16, ADR_PRESSURE|0x01, TASK_PRVY_START};
fnWrite(IICPort, wbuff_1, sizeof(wbuff_1));
fnWrite(IICPort, wbuff_2, sizeof(wbuff_2));
fnRead(IICPort, IIC_IO_read, 0);

The problem (i mean) is between the two writes. According to the application note, there is one stop bit between the two writes (bold red one). But how i can make this stop bit? I looked at the scope, i found the start bit of the second write command, but no stop bit on the end of the first one. Can you help me with this? Or if you have some experience with communication with this sensor i uTasker, can you share the code snippet?

Thanks a lot and Marry Christmas.

EDIT: Subject name

2
NXPTM M522XX, KINETIS and i.MX RT / Can't ping on local machine
« on: June 24, 2008, 10:59:55 PM »
I've successfully compiled the uTasker v1.3 SP7 with MS Visual Studio 6.0 under Windows 2003 Enterprise. I can't ping the running simulator on the same machine, but i can do it from any remote machine in the network.
I haven't any firewall installed, nor any network anti-virus sw.
Does anybody know, where the problem lies?

Pages: [1]