XMC™ Forum Discussions
XMC™
Hello,I have a project to make flicker simulation. I use Arduino shield RGB XMC1202.I try to make a square wave with changing CURRENT parameter at Red...
Show More
Hello,
I have a project to make flicker simulation. I use Arduino shield RGB XMC1202.
I try to make a square wave with changing CURRENT parameter at Red channel but there is time to take 0-100% Current.
I read infineon manual board on page 31 there is information that
Is this information and what I make is related? Can I make fast changing current from 0-100% instantly?
I already try this way from the previous thread but nothing change.
I hope someone can help me with this.
Best regards
Eko Show Less
I have a project to make flicker simulation. I use Arduino shield RGB XMC1202.
I try to make a square wave with changing CURRENT parameter at Red channel but there is time to take 0-100% Current.
I read infineon manual board on page 31 there is information that
Fade Time 0 -> 100%
It takes 20479 dimming clocks for the lamp to dim up from 0 to 100% brightness. The dimming clock frequency is 292.237kHz.
Hence, 20479 dimming clock last approximately 0.07001s.
Fade Time = FADERATE * 0.07001s
A FADERATE value of 0xA leads to a fade time of approximately 700ms
Is this information and what I make is related? Can I make fast changing current from 0-100% instantly?
I already try this way from the previous thread but nothing change.
I hope someone can help me with this.
Best regards
Eko Show Less
XMC™
Hello, I have one question regarding the Infineon Arduino Shield shield with an XMC1202, KITLEDXMC1202AS01TOBO1 Does anyone know why it is not possibl...
Show More
Hello, I have one question regarding the Infineon Arduino Shield shield with an XMC1202, KITLEDXMC1202AS01TOBO1
Does anyone know why it is not possible to set WALKTIME lower than 15?
This code:
I2CWRITE2BYTES (ADDRESS, WALKTIME, 25);
works fine, while this code:
I2CWRITE2BYTES (ADDRESS, WALKTIME, 5)
sets the walktime to 15.
I suppose there is some coding in the XMC1202 itself?
I need to switch off the walktime entirely, so any help would be appreciated very much.
Thanks a lot! Show Less
Does anyone know why it is not possible to set WALKTIME lower than 15?
This code:
I2CWRITE2BYTES (ADDRESS, WALKTIME, 25);
works fine, while this code:
I2CWRITE2BYTES (ADDRESS, WALKTIME, 5)
sets the walktime to 15.
I suppose there is some coding in the XMC1202 itself?
I need to switch off the walktime entirely, so any help would be appreciated very much.
Thanks a lot! Show Less
XMC™
Hi, I have to report, that variable "days_of_week" is not updated caused by missing time_val.daysofweek=current_time->daysofweek; in rtc.c at line 2...
Show More
Hi, I have to report, that variable "days_of_week" is not updated caused by missing
time_val.daysofweek=current_time->daysofweek; in rtc.c at line 288+1
existing Code in Function RTC_GetTime()
/* copy to local structure to keep data safe */
time_val.year = current_time->year;
time_val.month = current_time->month;
time_val.days = current_time->days;
time_val.hours = current_time->hours;
time_val.minutes = current_time->minutes;
time_val.seconds = current_time->seconds;
//pls. add following line to function RTC_SetTime()
time_val.daysofweek=current_time->daysofweek;
In RTC_GetTime(), days_of_week is already provided, but is always 0;
System: DAVE V4.3.2,
APP: RTC_0 4.1.12
µC: XMC4500
Function: RTC_SetTime() Show Less
time_val.daysofweek=current_time->daysofweek; in rtc.c at line 288+1
existing Code in Function RTC_GetTime()
/* copy to local structure to keep data safe */
time_val.year = current_time->year;
time_val.month = current_time->month;
time_val.days = current_time->days;
time_val.hours = current_time->hours;
time_val.minutes = current_time->minutes;
time_val.seconds = current_time->seconds;
//pls. add following line to function RTC_SetTime()
time_val.daysofweek=current_time->daysofweek;
In RTC_GetTime(), days_of_week is already provided, but is always 0;
System: DAVE V4.3.2,
APP: RTC_0 4.1.12
µC: XMC4500
Function: RTC_SetTime() Show Less
XMC™
Hi,
I need to buy a debuger for XMC 1302 Microcontroller. Any recommendation?
thanks,
I need to buy a debuger for XMC 1302 Microcontroller. Any recommendation?
thanks,
XMC™
Hi, I am trying to do some modifications for uart drivers for xmc4800 (on relax kit xmc 4800) and extending them to LIN drivers. When I followed the d...
Show More
Hi, I am trying to do some modifications for uart drivers for xmc4800 (on relax kit xmc 4800) and extending them to LIN drivers.
When I followed the documentation of Infineon reference manual for LIN support, in page 18-72 under
18.3.5 Hardware LIN Support gave some explaination as follows:
A complete LIN frame contains the following symbols:
• Synchronization break:
The master sends a synchronization break to signal the beginning of a new frame. It
contains at least 13 consecutive bit times at 0 level, followed by at least one bit time
at 1 level (corresponding to 1 stop bit). Therefore, TBUF11 if the transmit buffer is
used, (or IN11 if the FIFO buffer is used) has to be written with 0 (leading to a frame
with SOF followed by 12 data bits at 0 level).
A slave device shall detect 11 consecutive bit times at 0 level, which done by the
synchronization break detection. Bit PSR.SBD is set if such an event is detected and
a protocol interrupt can be generated. Additionally, the received data value of 0
appears in the receive buffer and a format error is signaled.
Following that I have made changes in the following lines of code.
into following lines of code
But I am unable to generate break field for LIN following the documentation. Can anyone help in this. Show Less
When I followed the documentation of Infineon reference manual for LIN support, in page 18-72 under
18.3.5 Hardware LIN Support gave some explaination as follows:
A complete LIN frame contains the following symbols:
• Synchronization break:
The master sends a synchronization break to signal the beginning of a new frame. It
contains at least 13 consecutive bit times at 0 level, followed by at least one bit time
at 1 level (corresponding to 1 stop bit). Therefore, TBUF11 if the transmit buffer is
used, (or IN11 if the FIFO buffer is used) has to be written with 0 (leading to a frame
with SOF followed by 12 data bits at 0 level).
A slave device shall detect 11 consecutive bit times at 0 level, which done by the
synchronization break detection. Bit PSR.SBD is set if such an event is detected and
a protocol interrupt can be generated. Additionally, the received data value of 0
appears in the receive buffer and a format error is signaled.
Following that I have made changes in the following lines of code.
if ( !(USIC_CH_TCSR_TDV_Msk & tmp_pChannel->TCSR) )
{
tmp_pChannel->TBUF[0] = ((arg_ByteToSend << USIC_CH_TBUF_TDATA_Pos) & USIC_CH_TBUF_TDATA_Msk);
}
into following lines of code
int j =0;
while(j<12)
{
//tmp_pChannel->TBUF&= ~(1 << tmp_pChannel->TBUF );
tmp_pChannel->TBUF=0;
j++;
}
if ( !(USIC_CH_TCSR_TDV_Msk & tmp_pChannel->TCSR) )
{
tmp_pChannel->TBUF[12] = ((arg_ByteToSend << USIC_CH_TBUF_TDATA_Pos) & USIC_CH_TBUF_TDATA_Msk);
}
But I am unable to generate break field for LIN following the documentation. Can anyone help in this. Show Less
XMC™
Hello everyone! I'm now using MATLAB/Simulink to develop my algorithm and plan to verify it on an XMC4700 microcontroller.I just want to know, if XMC ...
Show More
Hello everyone!
I'm now using MATLAB/Simulink to develop my algorithm and plan to verify it on an XMC4700 microcontroller.
I just want to know, if XMC Library for Embedded Coder supports PIL test. If yes, what is the workflow? Are there some tutorials from Infineon?
Best regards,
qiu Show Less
I'm now using MATLAB/Simulink to develop my algorithm and plan to verify it on an XMC4700 microcontroller.
I just want to know, if XMC Library for Embedded Coder supports PIL test. If yes, what is the workflow? Are there some tutorials from Infineon?
Best regards,
qiu Show Less
XMC™
Hi,I want to use the trigger in the DSM App to integrate over a few values to eliminate noise.When I activate that function, DAVE adds a Event_Detecto...
Show More
Hi,
I want to use the trigger in the DSM App to integrate over a few values to eliminate noise.
When I activate that function, DAVE adds a Event_Detector and Event_Generator.
How can I use a Timer App to trigger instead?
Thanks!
Regards,
Raphael Show Less
I want to use the trigger in the DSM App to integrate over a few values to eliminate noise.
When I activate that function, DAVE adds a Event_Detector and Event_Generator.
How can I use a Timer App to trigger instead?
Thanks!
Regards,
Raphael Show Less
XMC™
Hello!First of all, sorry if I post in the wrong place, I didn't find an specific place for TLE Microcontrollers. I am facing a Problem, and maybe you...
Show More
Hello!
First of all, sorry if I post in the wrong place, I didn't find an specific place for TLE Microcontrollers. I am facing a Problem, and maybe you could help me.
I try to use LIN Communication, but it doesn't work correctly. I configured everything and I get to Interrupt when I receive Information via LIN. For understanding the different steps of the data I receive, I have to work with Flags (EOFSYN and BRK), but These Flags are never set. When I read them, they are always 0.
SYNEN Bit is also enabled. Where could be the Problem? If it is more complicated than a possible easy mistake, and you need the code I wrote, I will kindly update with it!.
UPDATE: The Problem is solved. The cause was a bad configuration of BGSEL for Synch detection!. But I have a question. When Flags SYNCH and BRK are set, it means that the next Byte is the id, but when I read it at SBUF Returns me 0. What could it be?
Thank you.
Kind Regards.
Mjag Show Less
First of all, sorry if I post in the wrong place, I didn't find an specific place for TLE Microcontrollers. I am facing a Problem, and maybe you could help me.
I try to use LIN Communication, but it doesn't work correctly. I configured everything and I get to Interrupt when I receive Information via LIN. For understanding the different steps of the data I receive, I have to work with Flags (EOFSYN and BRK), but These Flags are never set. When I read them, they are always 0.
SYNEN Bit is also enabled. Where could be the Problem? If it is more complicated than a possible easy mistake, and you need the code I wrote, I will kindly update with it!.
UPDATE: The Problem is solved. The cause was a bad configuration of BGSEL for Synch detection!. But I have a question. When Flags SYNCH and BRK are set, it means that the next Byte is the id, but when I read it at SBUF Returns me 0. What could it be?
Thank you.
Kind Regards.
Mjag Show Less
XMC™
I have 6 CAP Apps in Dave3 at my XMC4500, 4 of them are at CCU43 and 2 of them at CCU42. I am just using the period capture interrupt. All of them w...
Show More
I have 6 CAP Apps in Dave3 at my XMC4500, 4 of them are at CCU43 and 2 of them at CCU42. I am just using the period capture interrupt.
All of them works fine, except, that the CCU42-Slice 2 at generating the interrupt will generate an interrupt on CCU42_1_IRQHandler (IRQ_Hdlr_53) and CCU42_0_IRQHandler. (IRQ_Hdlr_52)
The another CAP at CCU42 is using Slice 3 and generates the interrupt at CCU42_0_IRQHandler (IRQ_Hdlr_52).
If i dont start the NVIC on NodeID 53 (for Slice 2), i will still receive the interrupt of Slice 2 at NodeID 52.
If i dont start the NodeID 52,but will start NodeID 53, i will receive the Slice 2 interrupt only on Node 53.
Starting both NVICs, i will receive interrupts from Slice 2 on both interrupt handler.
Is this a bug from the XMC4500?
Is there any solution, that i will not receive 2 different interrupts form 1 CAP ? Show Less
All of them works fine, except, that the CCU42-Slice 2 at generating the interrupt will generate an interrupt on CCU42_1_IRQHandler (IRQ_Hdlr_53) and CCU42_0_IRQHandler. (IRQ_Hdlr_52)
The another CAP at CCU42 is using Slice 3 and generates the interrupt at CCU42_0_IRQHandler (IRQ_Hdlr_52).
If i dont start the NVIC on NodeID 53 (for Slice 2), i will still receive the interrupt of Slice 2 at NodeID 52.
If i dont start the NodeID 52,but will start NodeID 53, i will receive the Slice 2 interrupt only on Node 53.
Starting both NVICs, i will receive interrupts from Slice 2 on both interrupt handler.
Is this a bug from the XMC4500?
Is there any solution, that i will not receive 2 different interrupts form 1 CAP ? Show Less
XMC™
Hi,I have bought the XMC4800 relax kit and I get the RAMCode never stops error when I try to erase the chip. Erasing XMC4800-2048 via SWD-Interface@10...
Show More
Hi,
I have bought the XMC4800 relax kit and I get the RAMCode never stops error when I try to erase the chip.
I was able to test the XMC4800_Relax_EtherCat_APP_Slave_SSC example with TwinCAT
Thank you Show Less
I have bought the XMC4800 relax kit and I get the RAMCode never stops error when I try to erase the chip.
Erasing XMC4800-2048 via SWD-Interface@1000kHz
Erase Thread started.
Could not save file [Sample_DebugFlash.jlink]
Access is denied!
Device "XMC4800-2048" selected.
Performing XMC4500 connection sequence.
AP-IDR: 0x24770011, Type: AHB-AP
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl 0 @ E00FF000
ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM
Debugger initialized successfully.
Performing XMC4500 reset
Timeout while erasing chip, RAMCode did not respond in time
J-Link: Flash download: Total time needed: 10.411s (Prepare: 0.053s, Compare: 0.000s, Erase: 10.247s, Program: 0.000s, Verify: 0.000s, Restore: 0.110s)
Failed to restore target. RAMCode never stops
Erase Thread exited
Erase failed.
I was able to test the XMC4800_Relax_EtherCat_APP_Slave_SSC example with TwinCAT
Thank you Show Less
Trending discussions