DAVE™ Forum Discussions
DAVE™
Hi everybody,SPI App only allows a minimum trailing delay of 1 SCLK Period. However I want my chip select signal to go inactive with the last transmit...
Show More
Hi everybody,
SPI App only allows a minimum trailing delay of 1 SCLK Period. However I want my chip select signal to go inactive with the last transmitted data bit ( respectively the last edge of the clock).
So any clues on how to do so? Show Less
SPI App only allows a minimum trailing delay of 1 SCLK Period. However I want my chip select signal to go inactive with the last transmitted data bit ( respectively the last edge of the clock).
So any clues on how to do so? Show Less
DAVE™
Hi @ all,I am using Dave3 and XMC4500 for a new project. In this case we have four sub-projects which can run for test applications alone. After the t...
Show More
Hi @ all,
I am using Dave3 and XMC4500 for a new project. In this case we have four sub-projects which can run for test applications alone.
After the tests we would like merge the sub-projects in one DAVE3-CE project and generate the lib-code.
Is that possible? How can I solve this problem?
Thanks for your helpfulness. Show Less
I am using Dave3 and XMC4500 for a new project. In this case we have four sub-projects which can run for test applications alone.
After the tests we would like merge the sub-projects in one DAVE3-CE project and generate the lib-code.
Is that possible? How can I solve this problem?
Thanks for your helpfulness. Show Less
DAVE™
Create a DAVE project for XMC4500, add ADC001 (enable 1 channel eg. Channel-AA) and assign the IO001 input pin to P14.1 (indicated as G0CH1 in Table 2...
Show More
Create a DAVE project for XMC4500, add ADC001 (enable 1 channel eg. Channel-AA) and assign the IO001 input pin to P14.1 (indicated as G0CH1 in Table 25-12 of xmc4500_rm_v1.5_2014_07), after click "Solve And Save", you will find the ADC channel is mapped to G0CH0 (Group 0 Channel 0) in "Resource Mapping Information" window.
The reason is because of the alias effect. This a feature in XMC ADC which allows connect any pin in a group to channels 0 and 1. DAVE use this feature to help connecting channels.
In this case, the solver provides an Alias value (Gx_ALIAS.ALIAS0) for channel 0 which is 1. This means that when the ADC converts channel 0, the pin converted is P14.1 (channel 1). Hence, the result for channel 0 is correspond to the pin you have selected P14.1. Show Less
The reason is because of the alias effect. This a feature in XMC ADC which allows connect any pin in a group to channels 0 and 1. DAVE use this feature to help connecting channels.
In this case, the solver provides an Alias value (Gx_ALIAS.ALIAS0) for channel 0 which is 1. This means that when the ADC converts channel 0, the pin converted is P14.1 (channel 1). Hence, the result for channel 0 is correspond to the pin you have selected P14.1. Show Less
DAVE™
Good day, When I adding application to existed DAVE project, I shall push "Generate Code" knob, to create new files in Dave subfolder of project respe...
Show More
Good day,
When I adding application to existed DAVE project, I shall push
"Generate Code" knob, to create new files in Dave subfolder of project respectively.
Meanwhile, it is not always convenient, as far some of them I had to modify aftewords according my
actual needs.
Is it possiblity generate new "Dave" files only for new added items?
(Or selected group, or just exclude some existed "Dave" files from re-writing??)
Thanks in advance,
K Show Less
When I adding application to existed DAVE project, I shall push
"Generate Code" knob, to create new files in Dave subfolder of project respectively.
Meanwhile, it is not always convenient, as far some of them I had to modify aftewords according my
actual needs.
Is it possiblity generate new "Dave" files only for new added items?
(Or selected group, or just exclude some existed "Dave" files from re-writing??)
Thanks in advance,
K Show Less
DAVE™
Hi,I’m using a XMC1302 Controller and I need it to consume as few power as possible.Most of the time the CPU doesn’t need to run so I would like to pu...
Show More
Hi,
I’m using a XMC1302 Controller and I need it to consume as few power as possible.
Most of the time the CPU doesn’t need to run so I would like to put it into a sleep mode, but an ADC and one timer has run all the time. How can I achieve that?
I read the POW001 App only works for XMC4x00 controllers. Is there something similar for XMC1x00 controllers?
Best regards,
Michael Show Less
I’m using a XMC1302 Controller and I need it to consume as few power as possible.
Most of the time the CPU doesn’t need to run so I would like to put it into a sleep mode, but an ADC and one timer has run all the time. How can I achieve that?
I read the POW001 App only works for XMC4x00 controllers. Is there something similar for XMC1x00 controllers?
Best regards,
Michael Show Less
DAVE™
Hi,I am new to DAVE and Apps. I have read the docs on a number of the apps and have seen them used in some ways but I can't figure out how to start on...
Show More
Hi,
I am new to DAVE and Apps. I have read the docs on a number of the apps and have seen them used in some ways but I can't figure out how to start on my system. The processor is a 1302t038x200. There are 12 of these as slaves to an I2C master linux system.
The system needs to do 5 things:
The ADC is the low priority job, missing a cycle is fine. The important thing is that I need to know that I missed a reading and flag the cycle to be dropped.
Now come my questions:
Which apps are best to build this?
How do I call my code from the app routines to do the manipulations for the ADC and comparitor scanning?
How can I detect that I missed a reading?
What would you build the I2C prolocol decoder on?
thanks in advance,
jerry Show Less
I am new to DAVE and Apps. I have read the docs on a number of the apps and have seen them used in some ways but I can't figure out how to start on my system. The processor is a 1302t038x200. There are 12 of these as slaves to an I2C master linux system.
The system needs to do 5 things:
Increment a few timers that count seconds.
process incoming I2C messages and cerate respond (using a protocol rather than register poking)
read a set of digital inputs while twiddlng lines to external mux ever 20ms (50/s) (3@8x1 mux chips)
take the ADC readings on two channels as close together as possible (one current and one voltage) 10us (100k/s)
process incoming I2C messages and cerate respond (using a protocol rather than register poking)
read a set of digital inputs while twiddlng lines to external mux ever 20ms (50/s) (3@8x1 mux chips)
take the ADC readings on two channels as close together as possible (one current and one voltage) 10us (100k/s)
these then are used as input into a real and apparent power cacls (square each separately and add to accumlator, multiply, square and add to accumulator)
if need be we can cut the frequency down a bit, but definitely want to be over 20k/s
detect is any readings were missed
At the end of each half cycle (V < near0), take square roots, filter. If startV > near0 or missed a reading, drop and wait for a new half cycle
if need be we can cut the frequency down a bit, but definitely want to be over 20k/s
detect is any readings were missed
At the end of each half cycle (V < near0), take square roots, filter. If startV > near0 or missed a reading, drop and wait for a new half cycle
The ADC is the low priority job, missing a cycle is fine. The important thing is that I need to know that I missed a reading and flag the cycle to be dropped.
Now come my questions:
Which apps are best to build this?
How do I call my code from the app routines to do the manipulations for the ADC and comparitor scanning?
How can I detect that I missed a reading?
What would you build the I2C prolocol decoder on?
thanks in advance,
jerry Show Less
DAVE™
There are max. 2 inputs for USIC module 0 & 1 (USIC0 & USIC1) and 4 inputs for USIC module 2 (USIC2) according to Table 4-4 (DMA Handler Service Reque...
Show More
There are max. 2 inputs for USIC module 0 & 1 (USIC0 & USIC1) and 4 inputs for USIC module 2 (USIC2) according to Table 4-4 (DMA Handler Service Request inputs) of "xmc4500_rm_v1.5_2014_07".
If you want to use 6 DMAs, you can either assign pins to 3 different USIC modules (USIC0, USIC1 & USIC2) or 2 different USIC modules with USIC module 2 included (USIC0 & USIC2 or USIC1 & USIC2). Show Less
If you want to use 6 DMAs, you can either assign pins to 3 different USIC modules (USIC0, USIC1 & USIC2) or 2 different USIC modules with USIC module 2 included (USIC0 & USIC2 or USIC1 & USIC2). Show Less
DAVE™
Hi all,I have my program in XMC4500... Is it possible to create second new project with only one "user" function();This user function should be in spe...
Show More
Hi all,
I have my program in XMC4500... Is it possible to create second new project with only one "user" function();
This user function should be in special place in Flash memory (which is denied for first main program)
Calling the user function from main program could be done by pointer to function from special place in Flash memory.
My target: Upload the first main program to the XMC4500. Then user can create second program and add it to the flash memory (throught Memtool).
Is it possible????
BR
Koumak Show Less
I have my program in XMC4500... Is it possible to create second new project with only one "user" function();
This user function should be in special place in Flash memory (which is denied for first main program)
Calling the user function from main program could be done by pointer to function from special place in Flash memory.
My target: Upload the first main program to the XMC4500. Then user can create second program and add it to the flash memory (throught Memtool).
Is it possible????
BR
Koumak Show Less
DAVE™
Hi, I am using the DAVE app I2S002 with the XMC4500 Relax Kit board. What I try to do is to get half-duplex I2S TX with DMA with both audio channels (...
Show More
Hi, I am using the DAVE app I2S002 with the XMC4500 Relax Kit board. What I try to do is to get half-duplex I2S TX with DMA with both audio channels (right/left) working. Currently I see only I2S data on the left I2S channel. The right channel data frame is always high (or low depending on the SCTR.PDL bit setting). Both the frame width and data width are set to 16 bit, which should be correct. SCLKOUT is 1.5 MHZ and SELOX (WCLK) is 48 kHz.
I guess that I only get left channel I2S TX data has something to do with the DMA configuration or DMA itself, because when I switch to the I2S002 app setting half-duplex I2C TX without DMA I can see audio data on both the left and the right channel. During my research on the configuration settings for DMA I didn't find a solution for my problem.
I would be really grateful if you could help me on this. In XMC4500's manual I can't find a solution to this problem. Please let me know if you need any specific information from me. Show Less
I guess that I only get left channel I2S TX data has something to do with the DMA configuration or DMA itself, because when I switch to the I2S002 app setting half-duplex I2C TX without DMA I can see audio data on both the left and the right channel. During my research on the configuration settings for DMA I didn't find a solution for my problem.
I would be really grateful if you could help me on this. In XMC4500's manual I can't find a solution to this problem. Please let me know if you need any specific information from me. Show Less
DAVE™
Good day, I want to customized Output Waveform, using DACWG003.I can choose between Triangle, Sinus und Custom waveforms.Question is, for last case, w...
Show More
Good day,
I want to customized Output Waveform, using DACWG003.
I can choose between Triangle, Sinus und Custom waveforms.
Question is, for last case, where in memory LUT (say, from 256 points) shall be located?
Or maybe Interrupt shall be used each time for new customaized value?
Please clarify.
BR
K Show Less
I want to customized Output Waveform, using DACWG003.
I can choose between Triangle, Sinus und Custom waveforms.
Question is, for last case, where in memory LUT (say, from 256 points) shall be located?
Or maybe Interrupt shall be used each time for new customaized value?
Please clarify.
BR
K Show Less