Quantcast
Channel: Infineon Forums
Viewing all 9892 articles
Browse latest View live

XMC4800 Ethercat Distributed Clock sync0 and sync1 issues

$
0
0
Dear Michael,
thanks for your answer. I tried to use this feature to sync the xmc4800 acquisitions just because, as far as I understood, it is apparently the same trick used by the Beckhoff EL3702 module (2-channel analog input terminal with oversampling) where changing the number of subsamples amounts to update this two parameters.
Right now, I found an alternative solution by using the sync1 interrupt only during the setup phase. In the case this solution will not be sufficient I will try to contact beckhoff directly.

Thanks again,
Luca

User Point and Reputation Point Award Scheme

$
0
0
I am a new user of this forum.

How to view my reputation point?

[PS] Okay, I can find my point under my user icon and user name in the left column.

Is is possible to use Arduino IDE to program XMC processor?

$
0
0
I have found that Hitex have created an Arduino compatible board for TC275.

Attachment 2751

Is it possible to use Arduino IDE to program XMC processor? I have noticed that my XMC1100 boot kit already has Arduino Uno compatible pinout.

I mean that directly programing in wiring language, not through any "translating layer".

Thanks for any hints.
?????

Multiple external interrupts on XMC4300

$
0
0
Hi there

Encountered the following interrupt problem using a XMC4300 Relax EtherCAT Kit.
I programmed the board as in the example External_Interrupt_XMC45 using the DAVE APPs.

The goal is simply to toggle a LED on pin 4.1 by pushbutton on pin 0.7 via external Interrupt (on falling edge).

So when i push the button (HW debounced) it always runs the interrupt twice for each edge. Meaning twice for
rising and falling edge . But it should only interrupt on falling edge.

Anybody with a similar problem?
Is there any additional programming necessary?

Thanks for your support.

Advice set up a continuous repeating PWM signal different freq/duty over 2 time slots

$
0
0
Hi guys.

Anyone wanting to do what was outlined above I've attached my main.c which is a simple XMCLib version. The only thing I don't do here is the PWM.
I control an LED blinking it at two intervals 200ms and 810ms. So depending on if you start the blink on or off you'll either have an 810ms on
LED with 200ms off, or 200ms on and 810ms off.

Anyway.. if you are like me and like it really spelled out, I added some comments on how I did the math as well.

Thanks again Deni.

-stv
?????

XMC1100 UART (32-BIT) output problem ?

$
0
0
Hai ,
Good Morning all, This is my fisrt post if any mistakes is there please excuse.
1. The actual problem is I am doing UART for XMC1100 kit .So, problem is UART output is <NULL> is showing.
2.In registers PCR registers are all setting FFFFFXXX like that.
3.So,How can I over come this problem.
Please tell me the solution if any one knows.

Possible to use Ethernet and EtherCAT simultaneously?

Understanding SPI communications for diffrent ADC type in c++ implementation

$
0
0
spent many hours to understand how to change ADC MCP3008 SPI communications into the ADC 0832CCN. I need to change this function:

//this works for ADC MCP 3008
Code:

double Mcp3008Spi::read( uint8_t channel , bool differential )
{
if( channel > 7 )
{
std::cerr << "Incorrect channel number (allowed 0-7)." << std::endl;

return 0.0 / 0.0; // NaN
}

if( this->handle == -1 )
return 0.0 / 0.0; // NaN

uint8_t buffer[ 3 ];

// http://www.hertaville.com/files/uploads/2013/07/gg4.png
buffer[ 0 ] = 1;
buffer[ 1 ] = ( differential ? 0 : ( 1 << 7 ) ) | ( channel << 4 );
buffer[ 2 ] = 0;

if( this->transfer( buffer, 3 ) )
{
uint16_t hi = ( buffer[ 1 ] << 8 ) & 0x0300;
uint16_t lo = ( buffer[ 2 ] << 0 ) & 0x00FF;

uint16_t value = hi | lo;

return 100.0 * ( (double)value / 1023.0 );
}

return 0.0 / 0.0; // NaN
}

bool Mcp3008Spi::transfer( uint8_t *data, uint16_t length )
{
    if( this->handle == -1 )
        return false;

    struct ::spi_ioc_transfer pack;

    pack.tx_buf = (unsigned long)data; // transmit from "data"
    pack.tx_nbits = 8;
    pack.rx_buf = (unsigned long)data; // receive into "data"
    pack.rx_nbits = 8;
    pack.len = length;
    pack.delay_usecs = 0 ;
    pack.speed_hz = this->speed;
    pack.bits_per_word = this->bpw ;
    pack.cs_change = 0;

    if( ::ioctl( this->handle, SPI_IOC_MESSAGE( 1 ), &pack ) < 0 )
    {
        std::cerr << "SPI data transmition error." << std::endl;

        return false;
    }

    return true;
}

with transmition datasheet looking like that
https://postimg.org/image/cbgplvrjt/
and in ADC 0832CCN the transmition datasheet looking like that
https://postimg.org/image/yr4qowws9/
https://postimg.org/image/klyxn3nqx/
Unfortunatlly the procesor address space and bit opearions is black magic for me. If anyone can explain me how to understand that or show me how to read the neccesary transmition ?

XMC4400/4500 Differences

$
0
0
We've got a board that originally had an XMC4400. We compiled and built code for it using IAR Embedded Workbench and everything was hunky dory. We replaced the XMC4400 with a 4500 and rebuilt the code telling the IAR compiler that the target was now a 4500. The resulting binary doesn't run.

Our next step is to add a connector to the board for a J-TAG, but I wanted to check first with this forum and see if there's something that needs to change other than just changing the target to "XMC4500" in the IAR tools.

Only Textfiles aviable with FATFS-App?

$
0
0
Hy at all,

I have some questions. With the FATFS-App can I only create or open Textfiles with *.txt or other types (self created types) also?
How is use the "Petit FAT File System Module", because DAVE don't knows the functions? Or can I only use the "FatFs - Generic FAT File System Module" with the FATFS-App?

new options in DAVE4.3.2?

I2C IsTxBusy function never returns

Configure XMC4500 CCU4/8 in Capture mode

$
0
0
Hi,

I am testing the possible use of the XMC4500 in a project.

What I am currently testing is the possibility to measure the time between rising and falling edges of input signal.

I was searching to see if I could find a example in the Apps or in the website but could not find any.
Does anyone know where I can find a example of that or give some pointers?

I already have a system with DAC and USBD_VCOM working correctly, and also tried configuring a PWM_CCU4 to obtain what I need but it did not work.

Best regards,
Filipe

Hello World

$
0
0
Thanks, for this helpful demonstration.

USIC RXFIFO not cleared after writing to TRBSCR->FLUSHRB on XMC4500

$
0
0
Hi,

after transmitting many Bytes (more than the rx fifo can hold) to an spi eeprom I would like to flush the receive fifo by setting TRBSCR->FLUSHRB to 1. But the receive fifo will not be cleared. A second write to TRBSCR->FLUSHRB with 1 clears it. That behaviour occurs when the rx fifo is full.

If the rx fifo is not full (but holds some elements) I need to write TRBSCR->FLUSHRB only once (as noted in the datasheet).

USIC1 CH0 and CH1 are configured for 16 rx and 16 tx fifo Slots each. (64 fifo Slots on XMC4500 availabe).

Why do I Need to flush the rx fifo twice?

Regards

Tobias

FIFO Transmit works only with delay after putting data into FIFO

$
0
0
It is TRACE32 from LAUTERBACH Software.

TC1798F OTP Flash Problem Memtool (Can't activate FLASH/OTP Device !)

$
0
0
Maybe there ist a solution to enable the the flash or identify the problem.

Note: I tried to connect via BSL/ASC over seriell comport but there is no connection possible. The good one works with both connection (DAP Miniwiggler and seriell comport)

In Memtool->Target->Setup->Connect&Reset: Any command known for "Excure Initialisation Commands on Reset"

Has anyone another solution?

Triggered Delta Sigma DSD example on Dave4

$
0
0
Hello Eric, thank you for the updates. the examples are very usefull.

Now, I am using the 4 DeltaSigma decoders synchronously with a trigger signal as described.
I would like now to read the results of the 4 DSD channels with a simple DMA transfer.
Attachment 2756
Attachment 2757

But each DSD channel has its own generated event :
Attachment 2758

The question is :

To get the synchronous results of the 4 DS decoders :
  1. How can I combine all these (up to) 4 events into a single one in order to trigger a single Linked list DMA tranfer?
  2. Should I rather configure 4 independent single DMA transfers? (Which seems overkill)

Thank you for any sugggestion.

Am I using Tricore ?

Which code is running in which core?

$
0
0
After Core 0 and Core 1 are started, we start our embedded operating system. I believe this embedded operating systems is based on OSEK/VDX Specification.

This OS decides which tasks will execute in which core? Person writing source code doesn't decide which tasks will execute on which core?
Viewing all 9892 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>