Microcontrollers Forum Discussions
Browse the Community
PSoC™ 6
Discussion forum regarding PSoC™ 6 - 32-bit Arm Microcontroller (MCU) Forum, discusses the 40-nm technology - best combination of ultra-low-power consumption, flexibility, security and high-performance topics.
PSoC™ 4
PSoC™ 4 - Arm®-based Forum, discusses the low-power Cortex®-M0 and Cortex®-M0+ cores, CapSense®, and Bluetooth® Low Energy
PSoC™ 5, 3 & 1
The PSoC™ 5LP, PSoC 2 and PSoC 1 Forum discusses - 24-bit Digital Filter Block (DFB), 24 UDBs, DMA controller and integrating AFE, digital logic with user interface ICs with an Arm Cortex-M3 CPU solutions.
CAPSENSE™ & MagSense
The Sensing Technology Forum discusses CAPSENSE™ - capacitive-sensing and MagSense inductive-sensing for consumer, industrial, automotive, and Internet of Things (IoT) applications.
XMC™
AURIX™
In this forum you can post your questions, comments and feedback about the 32-bit AURIX™ TriCore™ Microcontroller. The AURIX™ offers the highest scalability in performance, memory & peripherals across application. It is a safe and secure companion chip, meeting both the ISO functional safety standards and EVITA full security standards. Here you can also find the links to the latest board pages, SW and Tools GitHub, trainings, documents and FAQs
TRAVEO™ T2G
Discussion forum regarding 32-bit TRAVEO™ T2G Microcontroller - based on ARM® for automotive body electronics applications; cutting-edge performance, safety, and security features topics.
MOTIX™ MCU
The MOTIX™ MCU forum is designed for you to post your questions, comments and feedback about the famous Embedded Power ICs at anytime. Ask your technical questions or explore existing content!
Legacy microcontrollers
Featured Discussions
text.format{('custom.tabs.no.results')}
Hi,
starting from the examples MCMCAN_1_KIT_TC375_LK and ADC_Single_Channel_1_TC375_LK I have to send the value acquired from the analog channel with a CAN message. This is how I've tried to do that:
void transmitCanMessage(void)
{
/* Initialization of the RX message with the default configuration */
IfxCan_Can_initMessage(&g_mcmcan.rxMsg); // @suppress("Field cannot be resolved")
/* Invalidation of the RX message data content */
memset((void *)(&g_mcmcan.rxData[0]), INVALID_RX_DATA_VALUE, MAXIMUM_CAN_DATA_PAYLOAD * sizeof(uint32)); // @suppress("Field cannot be resolved")
/* Initialization of the TX message with the default configuration */
IfxCan_Can_initMessage(&g_mcmcan.txMsg); // @suppress("Field cannot be resolved")
/* Define the content of the data to be transmitted */
//g_mcmcan.txData[0] = TX_DATA_LOW_WORD; // @suppress("Field cannot be resolved")
//g_mcmcan.txData[1] = TX_DATA_HIGH_WORD; // @suppress("Field cannot be resolved")
/* Define the content of the data to be transmitted */
g_mcmcan.txData[0] = (uint16)(g_result & 0xFFFF); // @suppress("Field cannot be resolved")
g_mcmcan.txData[1] = (uint16)((g_result >> 16)& 0xFFFF); // @suppress("Field cannot be resolved")
/* Set the message ID that is used during the receive acceptance phase */
g_mcmcan.txMsg.messageId = CAN_MESSAGE_ID; // @suppress("Field cannot be resolved")
/* Send the CAN message with the previously defined TX message content */
while( IfxCan_Status_notSentBusy ==
IfxCan_Can_sendMessage(&g_mcmcan.canNode, &g_mcmcan.txMsg, &g_mcmcan.txData[0]) ) // @suppress("Field cannot be resolved")
{
}
}
but it does not work.In addiction I cannot understand where the global variable g_result is stored.
I'm at a very beginner level and this is for a scolar project, could someone please help me?
Thanks in advice, I'll also share the entire file in the upload section.
您好,我在TL9261芯片的DATASHEET中未看到Node internal delay time的描述,想问一下这个时间应该在哪里查找呢?
Can the dead time of the EVRC driver be adjusted, and if so, where can I find the description of the registers.
Hello everyone, I use MCU that has 3V3 output and 5V input tolerant pins, but for my application I need to have 5V output and 5V tolerant input pins. How can I achieve this? Expander is not in the option because it needs SPI/I2C drivers in firmware, and I want to avoid that. I can make 3V3 pin output into 5V pin output using MOSFETs but then the input part is tricky.
Thanks in advance !
We are using Tasking IDE on Aurix evaluation board. There’s a build in miniWiggler debugger. We can use this miniWiggler debugger to debug the code. We can set break points, stop at break points, evaluate variables at break points. However, one main feature is not working in all the PCs: we cannot do “step into”, “single step”, “step through” features. We must unset the break point in the current step and set a break point in the next step then hit “continue to run” to mimic the “single step” feature. Is that the problem with the debugger? Do j-link debugger work with Tasking IDE?
Thank you so much for your answer.
Show LessMy purpose is to control the private server motor. Because most servo motors are controlled using pulses. So if it involves the acceleration and deceleration of the motor, the interval between each pulse may be different. Therefore, every time the timer is interrupted, the entry time of the next timer will be changed. In STM32, I can make the time into a list. Then directly import the register TIM3->ARR = tim[X]. However, it was found that in XMC1302, it is not allowed to write values directly to the register. But need to use
TIMER_Stop(&TIMER_0);
status = TIMER_SetTimeInterval(&TIMER_0, tim[ X ]);
if (status == TIMER_STATUS_SUCCESS)
{
TIMER_Start(&TIMER_0);
}
This is how you can reset it. But this code runs too slowly. About 60US. This is obviously too long. Is there a faster way?
Hi,
I have a AURIX MotorControl Application Kit with TC234LF, I want to switch from ADS to Visual Studio Code. I'm going to make it through the GCC compiler, but there is a problem using the winIDEA debugger. WinIDEA requires a license. I did not find a price list on the website and how to buy it.
Are there alternative debuggers that can be used in Visual Studio Code?
Hello everyone! There are a couple of phenomena regarding the parameterization of the motor for actual debugging, and I'd appreciate any advice.
1. Startup duty cycle, more than 35% or more, a large number of tests, there will be a probability of power-on direct overcurrent protection, and then the system strike, restart to work properly;
2.Kp Ki parameter design, as if there is not much law, according to Kp/Ki = L / R, this formula does not seem to be very right, because in general, L is particularly small, so must be too large a difference, is not a 2:1 relationship, but at present the test to see how to set up, will only affect the corresponding speed, the motor running stability has not been found to have any effect. Regarding the pi parameter, if there is any opinion, please point it out.
smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/MOTIX-MCU/%E7%94%B5%E6%9C%BA%E5%8F%82%E6%95%B0%E8%AE%BE%E7%BD%AE/td-p/742823
Show LessHi
I want to know sleep current of TLE9853QX & also it auto wake when LIN signal is available. My customer is using in Flush door handle.
I have seen multiple sleep mode specs available in datasheet but not able to understand actual avg sleep mode current required.
Regards
Lucky Kumar
Show Less
Hello,
I am facing an issue while writing data to the DFlash memory region. I am using the TC375 Flash programming Example code with some changes. Below is the scenario for which I am facing the issue.
1. The first time writing data (0xAF000400) to the address 0xAF000240 is writing successfully.
2. reading data from 0xAF000240 reading successfully.
3. If I write the data that is read from 0xAF000240 to the same address by updating the data with some other value, the memory(0xAF000240) is filling with zeros (0x00000000).
Can any one please suggest the solution.
Thank you very much !
Show Less
-
TraveoII
UART buadrate Setting
by chandan1995 Jun 19, 2023