Search found 7 matches

by Alexander
Wed May 18, 2016 1:17 am
Forum: NetBurner Software
Topic: MOD5441X. I2C driver via DMA
Replies: 5
Views: 6322

Re: MOD5441X. I2C driver via DMA

By the way
If I make in DMA section(described above code) only 1 byte transferring(citer=biter=nbytes=1), it works properly. In my FOR() loop I can transfer such way all bytes I need, but it has no sense to execute this DMA section many times. We need to put in DMA the number of bytes(for example ...
by Alexander
Tue May 17, 2016 4:23 am
Forum: NetBurner Software
Topic: MOD5441X. I2C driver via DMA
Replies: 5
Views: 6322

Re: MOD5441X. I2C driver via DMA

I tried also to configure previously DMA like in my example, and then to send the first byte(device address) directly writing it to I2C data register. I expected that I2C will start DMA tranfser(as configured previously) after 1-st byte transferring by CPU...
But without any progress...
by Alexander
Mon May 16, 2016 9:15 am
Forum: NetBurner Software
Topic: MOD5441X. I2C driver via DMA
Replies: 5
Views: 6322

Re: MOD5441X. I2C driver via DMA

Yes, we are using Revision 3 of MCF5441X reference manual


===================== CODE============================

START I2C Sequence
------------------------
I set DMAEN bit and Interrupt bit on I2C control register


WRITE I2C Sequence
-----------------------
parameter "channel" = 24

// Reset ...
by Alexander
Mon May 16, 2016 6:52 am
Forum: NetBurner Software
Topic: MOD5441X. I2C driver via DMA
Replies: 5
Views: 6322

MOD5441X. I2C driver via DMA

Hi, All


We realized I2C driver for MOD5441X working properly via CPU interrupts(working with EEPROM).

Due to some timing problems we would like to implement I2C driver writing/reading via DMA.

Copying from memory to memory via DMA also works properly but not from memory to I2C ...
by Alexander
Wed Dec 31, 2014 11:48 pm
Forum: NetBurner Software
Topic: How to measure time on uCOS-2, MOD5270 board
Replies: 4
Views: 3318

Re: How to measure time on uCOS-2, MOD5270 board

Hello, Dan

DMA Timers APIs work properly except one thing.
When I try to stop timer(exactly as in the example) using 2 functions

timer->stopClear();
timer->clearInterruptFunction();

the system crashes. Do you have any idea about it ?

Thanks in advance
by Alexander
Sun Dec 28, 2014 12:33 am
Forum: NetBurner Software
Topic: How to measure time on uCOS-2, MOD5270 board
Replies: 4
Views: 3318

Re: How to measure time on uCOS-2, MOD5270 board

Thanks, I tried, it works perfectly
Earlier, I already implemented such measuring by PIT timers re-scaling, but these timers should be occupied by another services in the project. So, DMA Timers APIs is the solution !
by Alexander
Tue Dec 23, 2014 11:41 pm
Forum: NetBurner Software
Topic: How to measure time on uCOS-2, MOD5270 board
Replies: 4
Views: 3318

How to measure time on uCOS-2, MOD5270 board

How can I measure the time simple and effective between 2 events in the task(data receiving by MailBox semaphore) using PIT module(may be by reading register and without interrupt). I work on uCos 2, MOD5270.

Thanks in advance
Alexander