XMC™ Forum Discussions
Sort by:
XMC™
I have a question in 3 Phase 600V gate driver IC.see the overview and in Main features.and there is Maximum blocking voltage +600, what does it mean ?...
Show More
I have a question in 3 Phase 600V gate driver IC.
see the overview and in Main features.
and there is Maximum blocking voltage +600, what does it mean ?? help me. Show Less
see the overview and in Main features.
and there is Maximum blocking voltage +600, what does it mean ?? help me. Show Less
XMC™
I need better documentation and sample code for HRPWM module.When the Infineon will release a HRPWM user guide with code sample like was done for ADC?...
Show More
I need better documentation and sample code for HRPWM module.
When the Infineon will release a HRPWM user guide with code sample like was done for ADC?
Ari. Show Less
When the Infineon will release a HRPWM user guide with code sample like was done for ADC?
Ari. Show Less
XMC™
Hi, I'm trying to use the HRPWM module on XMC4400. I'm using XMC Lib in Keil, and there are two examples provided by infineon but they won't work. Thr...
Show More
Hi,
I'm trying to use the HRPWM module on XMC4400. I'm using XMC Lib in Keil, and there are two examples provided by infineon but they won't work. Through debugging I find that the initialization function provided by XMC Lib is not executing correctly.
The first two line can execute correctly, however,
This line is not able to set the GLBANA.GHREN to 1, the bit stays 0 after the statement. And following this, HRGHRS.HRGR won't become 1.
I'm wondering if this is a hardware issue?
Thanks,
Fan Show Less
I'm trying to use the HRPWM module on XMC4400. I'm using XMC Lib in Keil, and there are two examples provided by infineon but they won't work. Through debugging I find that the initialization function provided by XMC Lib is not executing correctly.
hrpwm->HRCCFG |= (clkc << HRPWM0_HRCCFG_CLKC_Pos);
hrpwm->HRCCFG |= HRPWM0_HRCCFG_HRCPM_Msk; /* Release HR generation from power down mode */
XMC_HRPWM_lDelay(); /* As per Initialization sequence */
/* Enable global high resolution generation / Force charge pump down */
hrpwm->GLBANA |= HRPWM0_GLBANA_GHREN_Msk;
XMC_HRPWM_lDelay();
/* Check High resolution ready bit field */
if ((hrpwm->HRGHRS & HRPWM0_HRGHRS_HRGR_Msk) == 1U)
{
/* High resolution logic unit is ready */
status = XMC_HRPWM_STATUS_OK;
}
The first two line can execute correctly, however,
hrpwm->GLBANA |= HRPWM0_GLBANA_GHREN_Msk;
This line is not able to set the GLBANA.GHREN to 1, the bit stays 0 after the statement. And following this, HRGHRS.HRGR won't become 1.
I'm wondering if this is a hardware issue?
Thanks,
Fan Show Less
XMC™
I am new to Dave and Micro controllers, so forgive me if this is a dumb question. I am working with Dave3 (I know its not up to date but it is necess...
Show More
I am new to Dave and Micro controllers, so forgive me if this is a dumb question. I am working with Dave3 (I know its not up to date but it is necessary for my project) and I am attempting to store an ADC value converted from an external
potentiometer into a variable such as "ADC_Result" in the MCU's C code. I have been working with the examples written by infineon, however they all seem to store the results in a variable that can only be accessed via the debug mode, and I need my variable to be accessible dynamically within the code, such that it may be used to change the frequency of an LED for example.
Let me know if you need screenshots of the code or APPs setup.
Thanks Show Less
potentiometer into a variable such as "ADC_Result" in the MCU's C code. I have been working with the examples written by infineon, however they all seem to store the results in a variable that can only be accessed via the debug mode, and I need my variable to be accessible dynamically within the code, such that it may be used to change the frequency of an LED for example.
Let me know if you need screenshots of the code or APPs setup.
Thanks Show Less
XMC™
Recently I was using XMC4500 and i have a problem in using can module.According to the loopback example code provided by Infineon,i develop my program...
Show More
Recently I was using XMC4500 and i have a problem in using can module.According to the loopback example code provided by Infineon,i develop my program. I need use P1.12 and P1.13 pins as CAN pins,these pins belong to the node1. Following code is used to initialise two pins.
#define CAN_RX_PIN P1_13
#define CAN_TX_PIN P1_12
XMC_GPIO_CONFIG_t can_tx =
{
.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2,
.output_strength = XMC_GPIO_OUTPUT_STRENGTH_MEDIUM
};
XMC_GPIO_CONFIG_t can_rx =
{
.mode = XMC_GPIO_MODE_INPUT_TRISTATE
};
XMC_GPIO_Init(CAN_TX_PIN,&can_tx);
XMC_GPIO_Init(CAN_RX_PIN,&can_rx);
Following code is used to initialise CAN module
#define CAN_FREQUENCY 120000000
/*CAN message= CAN_MO4 */
XMC_CAN_MO_t CAN_message_4 =
{
.can_mo_ptr = CAN_MO4,
.can_priority = XMC_CAN_ARBITRATION_MODE_IDE_DIR_BASED_PRIO_2,
.can_identifier = 0xFF,
.can_id_mask= 0xFF,
.can_id_mode = XMC_CAN_FRAME_TYPE_EXTENDED_29BITS,
.can_ide_mask = 1,
.can_data_length = 8,
.can_data = {0x01234567, 0x89ABCDEF},
.can_mo_type = XMC_CAN_MO_TYPE_TRANSMSGOBJ
};
void CAN_INIT(void)
{
/*CAN Bit time*/
XMC_CAN_NODE_NOMINAL_BIT_TIME_CONFIG_t baud =
{
.can_frequency = CAN_FREQUENCY,
.baudrate = 100000,
.sample_point = 8000,
.sjw = 1,
};
/*Configure CAN Module*/
XMC_CAN_Init(CAN,CAN_FREQUENCY);
/*Configure CAN Node baudrate*/
XMC_CAN_NODE_NominalBitTimeConfigure(CAN_NODE1,&baud);
/*NODE 1 initialization*/
XMC_CAN_NODE_EnableConfigurationChange(CAN_NODE1);
/*XMC_CAN_NODE_EnableLoopBack(CAN_NODE1);*/
XMC_CAN_NODE_SetReceiveInput(CAN_NODE1,XMC_CAN_NODE_RECEIVE_INPUT_RXDCC);
XMC_CAN_NODE_DisableConfigurationChange(CAN_NODE1);
XMC_CAN_NODE_ResetInitBit(CAN_NODE1);
XMC_CAN_MO_EnableEvent(&CAN_message_4,XMC_CAN_MO_EVENT_TRANSMIT);
XMC_CAN_MO_SetEventNodePointer(&CAN_message_4, XMC_CAN_MO_POINTER_EVENT_TRANSMIT, 7);
XMC_CAN_AllocateMOtoNodeList(CAN, 1, 4);
/*Enable nvic node*/
NVIC_EnableIRQ(CAN0_7_IRQn);
XMC_CAN_MO_Config(&CAN_message_4);
XMC_CAN_MO_Transmit(&CAN_message_4);
}
According to the code,i transmit a message.But on the oscilloscope, I did not see any waveform on pin1.12.
Can you help me?
If you have some can code,please send these code to 594373280@qq.com.
Thanks Show Less
#define CAN_RX_PIN P1_13
#define CAN_TX_PIN P1_12
XMC_GPIO_CONFIG_t can_tx =
{
.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2,
.output_strength = XMC_GPIO_OUTPUT_STRENGTH_MEDIUM
};
XMC_GPIO_CONFIG_t can_rx =
{
.mode = XMC_GPIO_MODE_INPUT_TRISTATE
};
XMC_GPIO_Init(CAN_TX_PIN,&can_tx);
XMC_GPIO_Init(CAN_RX_PIN,&can_rx);
Following code is used to initialise CAN module
#define CAN_FREQUENCY 120000000
/*CAN message= CAN_MO4 */
XMC_CAN_MO_t CAN_message_4 =
{
.can_mo_ptr = CAN_MO4,
.can_priority = XMC_CAN_ARBITRATION_MODE_IDE_DIR_BASED_PRIO_2,
.can_identifier = 0xFF,
.can_id_mask= 0xFF,
.can_id_mode = XMC_CAN_FRAME_TYPE_EXTENDED_29BITS,
.can_ide_mask = 1,
.can_data_length = 8,
.can_data = {0x01234567, 0x89ABCDEF},
.can_mo_type = XMC_CAN_MO_TYPE_TRANSMSGOBJ
};
void CAN_INIT(void)
{
/*CAN Bit time*/
XMC_CAN_NODE_NOMINAL_BIT_TIME_CONFIG_t baud =
{
.can_frequency = CAN_FREQUENCY,
.baudrate = 100000,
.sample_point = 8000,
.sjw = 1,
};
/*Configure CAN Module*/
XMC_CAN_Init(CAN,CAN_FREQUENCY);
/*Configure CAN Node baudrate*/
XMC_CAN_NODE_NominalBitTimeConfigure(CAN_NODE1,&baud);
/*NODE 1 initialization*/
XMC_CAN_NODE_EnableConfigurationChange(CAN_NODE1);
/*XMC_CAN_NODE_EnableLoopBack(CAN_NODE1);*/
XMC_CAN_NODE_SetReceiveInput(CAN_NODE1,XMC_CAN_NODE_RECEIVE_INPUT_RXDCC);
XMC_CAN_NODE_DisableConfigurationChange(CAN_NODE1);
XMC_CAN_NODE_ResetInitBit(CAN_NODE1);
XMC_CAN_MO_EnableEvent(&CAN_message_4,XMC_CAN_MO_EVENT_TRANSMIT);
XMC_CAN_MO_SetEventNodePointer(&CAN_message_4, XMC_CAN_MO_POINTER_EVENT_TRANSMIT, 7);
XMC_CAN_AllocateMOtoNodeList(CAN, 1, 4);
/*Enable nvic node*/
NVIC_EnableIRQ(CAN0_7_IRQn);
XMC_CAN_MO_Config(&CAN_message_4);
XMC_CAN_MO_Transmit(&CAN_message_4);
}
According to the code,i transmit a message.But on the oscilloscope, I did not see any waveform on pin1.12.
Can you help me?
If you have some can code,please send these code to 594373280@qq.com.
Thanks Show Less
XMC™
Hi,I'm looking at using the XMC4800 for a new design. Will an evaluation board and/or a reference design be made available at some point soon?Thanks i...
Show More
Hi,
I'm looking at using the XMC4800 for a new design. Will an evaluation board and/or a reference design be made available at some point soon?
Thanks in advance! Show Less
I'm looking at using the XMC4800 for a new design. Will an evaluation board and/or a reference design be made available at some point soon?
Thanks in advance! Show Less
XMC™
Hi All,I am a new user of XMC microcontrollers and I can not find the "XMC_2Go_Initial_Start" which is mentioned in the "Write your first program guid...
Show More
Hi All,
I am a new user of XMC microcontrollers and I can not find the "XMC_2Go_Initial_Start" which is mentioned in the "Write your first program guide".
Can someone please point me to it?
Regards Show Less
I am a new user of XMC microcontrollers and I can not find the "XMC_2Go_Initial_Start" which is mentioned in the "Write your first program guide".
Can someone please point me to it?
Regards Show Less
XMC™
Hi,I have a very simple question but could not find out the answer. I have XMC 4500 relax kit and i want to know on which logic voltage level it opera...
Show More
Hi,
I have a very simple question but could not find out the answer. I have XMC 4500 relax kit and i want to know on which logic voltage level it operates 5V or 3.3V. for example does it consider 5V as logic 1 or 3.3V as logic 1.
BR,
Fahad Show Less
I have a very simple question but could not find out the answer. I have XMC 4500 relax kit and i want to know on which logic voltage level it operates 5V or 3.3V. for example does it consider 5V as logic 1 or 3.3V as logic 1.
BR,
Fahad Show Less
XMC™
Hi, I need urgently of a example for the POSIF module in Quadrature decoder mode. I would like to measure the angular position, measure revolution usi...
Show More
Hi,
I need urgently of a example for the POSIF module in Quadrature decoder mode. I would like to measure the angular position, measure revolution using the Workaround for the POSIF_AI.001 (index errata) and measure the velocity by capturing the time between encoder pulses transactions.
Thanks.
Ari. Show Less
I need urgently of a example for the POSIF module in Quadrature decoder mode. I would like to measure the angular position, measure revolution using the Workaround for the POSIF_AI.001 (index errata) and measure the velocity by capturing the time between encoder pulses transactions.
Thanks.
Ari. Show Less
XMC™
Hi all,Where can one find "XMC_2Go_Initial_Start" DAVE project? I can not find it anywhere, the tutorial (http://www.infineon.com/dgdl?fileId=db3a3043444ee5dc014453df5ce178d5...
Show More
Hi all,
Where can one find "XMC_2Go_Initial_Start" DAVE project? I can not find it anywhere, the tutorial (http://www.infineon.com/dgdl?fileId=db3a3043444ee5dc014453df5ce178d5) also does not point in the correct direction.
Regards Show Less
Where can one find "XMC_2Go_Initial_Start" DAVE project? I can not find it anywhere, the tutorial (http://www.infineon.com/dgdl?fileId=db3a3043444ee5dc014453df5ce178d5) also does not point in the correct direction.
Regards Show Less
Trending discussions