XMC™ Forum Discussions
Sort by:
XMC™
Hi All,I seem not to follow the reference manual very well (16-40 to 16-43) on the ADC conversion times.First the example on 16-42. Does this mean it ...
Show More
Hi All,
I seem not to follow the reference manual very well (16-40 to 16-43) on the ADC conversion times.
First the example on 16-42. Does this mean it takes 1000ns to measure and have a result available for a single channel on a single S&H block? What is the 2nd conversion mentioned?
I would like to know something simple. Assuming I am using two analog input supplied to the two different S&H blocks. What is the fastest conversion time I can achieve if I read a single value out and how long would it take to read out both values?
I would appreciate any clarity someone can give me on this.
Regards
Enigma Show Less
I seem not to follow the reference manual very well (16-40 to 16-43) on the ADC conversion times.
First the example on 16-42. Does this mean it takes 1000ns to measure and have a result available for a single channel on a single S&H block? What is the 2nd conversion mentioned?
I would like to know something simple. Assuming I am using two analog input supplied to the two different S&H blocks. What is the fastest conversion time I can achieve if I read a single value out and how long would it take to read out both values?
I would appreciate any clarity someone can give me on this.
Regards
Enigma Show Less
XMC™
Hi All,Can someone point out where I can find an example of working with the ADC in data reduction mode. I have now worked quite a bit with the ADC, b...
Show More
Hi All,
Can someone point out where I can find an example of working with the ADC in data reduction mode. I have now worked quite a bit with the ADC, but would like to see a working example of the data reduction mode.
Regards
Enigma Show Less
Can someone point out where I can find an example of working with the ADC in data reduction mode. I have now worked quite a bit with the ADC, but would like to see a working example of the data reduction mode.
Regards
Enigma Show Less
XMC™
HI friend,I found some bugs in DAVE when you choose ADC function in XMC4104 chip.As the chip detail :================Package= LQFP64ROM= 64 KB FlashRA...
Show More
HI friend,
I found some bugs in DAVE when you choose ADC function in XMC4104 chip.
As the chip detail :
================
Package= LQFP64
ROM= 64 KB Flash
RAM= 20 KB RAM
InOut= 35 digital I/O
ADC= 9 ADC Channels, 12-bit
=================
1.When you choose ADC_MEASUREMENT [4.1.12] app and try to add 9 channel ADC pin.
the APP channel limit is 1~8.which mean use all of ADC channel is not possible.
2.Some motor application will need ADC synchronize with in ADC0 and ADC1.
Base on the datasheet XMC4101 can support "G0CH0 +G1CH0","G0CH3+G1CH3","G0CH6+G1CH6"
But in fact app will allow you set two of them not three in sync. Conversion option.
Could official friend update it in next app version.
By the way ,have anyone try to trace the code that DAVE app initial?
I can not find any sentence that set ADC register in the c code
Sam Tsang Show Less
I found some bugs in DAVE when you choose ADC function in XMC4104 chip.
As the chip detail :
================
Package= LQFP64
ROM= 64 KB Flash
RAM= 20 KB RAM
InOut= 35 digital I/O
ADC= 9 ADC Channels, 12-bit
=================
1.When you choose ADC_MEASUREMENT [4.1.12] app and try to add 9 channel ADC pin.
the APP channel limit is 1~8.which mean use all of ADC channel is not possible.
2.Some motor application will need ADC synchronize with in ADC0 and ADC1.
Base on the datasheet XMC4101 can support "G0CH0 +G1CH0","G0CH3+G1CH3","G0CH6+G1CH6"
But in fact app will allow you set two of them not three in sync. Conversion option.
Could official friend update it in next app version.
By the way ,have anyone try to trace the code that DAVE app initial?
I can not find any sentence that set ADC register in the c code
Sam Tsang Show Less
XMC™
Hi there,I am trying to use unions in Dave but run in syntax problems. Here is the sample codetypedef union{uint16_t a; uint32_t b;} Mem;int main(void...
Show More
Hi there,
I am trying to use unions in Dave but run in syntax problems. Here is the sample code
typedef union
{uint16_t a;
uint32_t b;
} Mem;
int main(void)
{
Mem->a=5; <--- ../Main.c:96:4: error: expected identifier or '(' before '->' token
}
the declaration seems to be ok, however I can not access the variable. Does anybody know, what I need to do?
thanks in advance,
Felix Show Less
I am trying to use unions in Dave but run in syntax problems. Here is the sample code
typedef union
{uint16_t a;
uint32_t b;
} Mem;
int main(void)
{
Mem->a=5; <--- ../Main.c:96:4: error: expected identifier or '(' before '->' token
}
the declaration seems to be ok, however I can not access the variable. Does anybody know, what I need to do?
thanks in advance,
Felix Show Less
XMC™
Hi everybody,I have a XMC4500 relaxKit and I use the ERU to trigger a capture of CCU42.CC40 when a button on the board is pressed. Debugging shows tha...
Show More
Hi everybody,
I have a XMC4500 relaxKit and I use the ERU to trigger a capture of CCU42.CC40 when a button on the board is pressed. Debugging shows that this works fine and the timer value at button-press gets captured into CCU42_CC40->CV[1].
Now I want to transfer the captured value into an array in RAM using the DMA. My configurations of the DMA are:
- source address &CCU42_CC40->CV[1]
- destination and source transfer width of 16bit because I only want to transfer the captured timer-value and not the rest of the capture-register
- destination address count mode incremental
- source address count mode no change
- source and destination burst length of 1
- block size of 1
- transfer type multi-block with reloading source address and contiguous destination address
However, this setup doesn't work since I can't see any values arriving at the destination array. Only if I change at least the source transfer width to 32bits I can see values arriving in the destination array. But each time the whole content of the capture-register is copied to the destination array.
How can I achieve a 16bit transfer with the DMA so that I only get the captured timer value in the destination array?
Regards,
Niclas Show Less
I have a XMC4500 relaxKit and I use the ERU to trigger a capture of CCU42.CC40 when a button on the board is pressed. Debugging shows that this works fine and the timer value at button-press gets captured into CCU42_CC40->CV[1].
Now I want to transfer the captured value into an array in RAM using the DMA. My configurations of the DMA are:
- source address &CCU42_CC40->CV[1]
- destination and source transfer width of 16bit because I only want to transfer the captured timer-value and not the rest of the capture-register
- destination address count mode incremental
- source address count mode no change
- source and destination burst length of 1
- block size of 1
- transfer type multi-block with reloading source address and contiguous destination address
However, this setup doesn't work since I can't see any values arriving at the destination array. Only if I change at least the source transfer width to 32bits I can see values arriving in the destination array. But each time the whole content of the capture-register is copied to the destination array.
How can I achieve a 16bit transfer with the DMA so that I only get the captured timer value in the destination array?
Regards,
Niclas Show Less
XMC™
Hello.I am tesing a target board which assembled with XMC4500 and DP83848.This board (tcp server) works on KEIL RTX OS.There is a problem in tcp commu...
Show More
Hello.
I am tesing a target board which assembled with XMC4500 and DP83848.
This board (tcp server) works on KEIL RTX OS.
There is a problem in tcp communication with client(PC).
As can be seen in the attached screen-shot retransmission occurs from target board.
The problem is :
When server send data(20 bytes) to client the "ACK" from client is sent after retransmission from server to client.
I have adjusted the "Number of Retries" ans "Retry Timeout in seconds" of Net_Config.c in order to eliminate the retransmission but the problem was not removed.
Tick time interval : 10 ms
OS Systick Tomer Value : 10 ms
Number of retries : 5
Retry Timeout in seconds : 10
Please advise me to solve this problem.
Best regards. Show Less
I am tesing a target board which assembled with XMC4500 and DP83848.
This board (tcp server) works on KEIL RTX OS.
There is a problem in tcp communication with client(PC).
As can be seen in the attached screen-shot retransmission occurs from target board.
The problem is :
When server send data(20 bytes) to client the "ACK" from client is sent after retransmission from server to client.
I have adjusted the "Number of Retries" ans "Retry Timeout in seconds" of Net_Config.c in order to eliminate the retransmission but the problem was not removed.
Tick time interval : 10 ms
OS Systick Tomer Value : 10 ms
Number of retries : 5
Retry Timeout in seconds : 10
Please advise me to solve this problem.
Best regards. Show Less
XMC™
Hi, I'm trying to improve the throughput of the SPI of the "QSPI_EXAMPLE_XMC45". Even using DMA for receive mode, there's a interval of the 1.56uS be...
Show More
Hi,
I'm trying to improve the throughput of the SPI of the "QSPI_EXAMPLE_XMC45".
Even using DMA for receive mode, there's a interval of the 1.56uS between bytes. It reduces the throughput for a maximum of (8/1.56) Mbps. I suppose it can not be that bad.
Someone knows how to reduce this interval to zero?
Ari. Show Less
I'm trying to improve the throughput of the SPI of the "QSPI_EXAMPLE_XMC45".
Even using DMA for receive mode, there's a interval of the 1.56uS between bytes. It reduces the throughput for a maximum of (8/1.56) Mbps. I suppose it can not be that bad.
Someone knows how to reduce this interval to zero?
Ari. Show Less
XMC™
Hi all,I have just found that it is not possible when working with the CCU8 when you have an input triggering it to start and stop on rising and falli...
Show More
Hi all,
I have just found that it is not possible when working with the CCU8 when you have an input triggering it to start and stop on rising and falling edge with events 0 and 1, that it is impossible to use TRAP with filtering on event two from the ERU unit. Is this a bug or intentional? How should I filter if I can not do it in the PWM unit? The ERU does not give filtering options.
Regards
Enigma Show Less
I have just found that it is not possible when working with the CCU8 when you have an input triggering it to start and stop on rising and falling edge with events 0 and 1, that it is impossible to use TRAP with filtering on event two from the ERU unit. Is this a bug or intentional? How should I filter if I can not do it in the PWM unit? The ERU does not give filtering options.
Regards
Enigma Show Less
XMC™
Hi All,
Can anyone point me to an example or post some code how I can generate a asymmetric pwm on the CCU4.
Regards
Enigma
Can anyone point me to an example or post some code how I can generate a asymmetric pwm on the CCU4.
Regards
Enigma
Trending discussions