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
Hello. I would like to hear your opinion on this version of data acquisition module:
ADS7818x8_DIG16_USBUART.zip
I used the ADS7818 as an external ADC.
Short description:
Number of analog channels - 8.
Number of digital channels - 16 (there is the possibility of increasing to 32)
Frequency of data collection - 20 kHz
Transmission channel - USBUART.
It is possible to simulate the ADC data for debugging (in the absence of ADC chips)
To test the project there is a simple program - an oscilloscope (Win32 only).
Program features:
- View up to 8 ADC channels in real time on the screen of the oscilloscope.
- The ability to synchronize on any analog channel.
- View 16 channels of digital data on the other screen.
I have a problem in setting up the CAN-communication properly.
The "CAN001" app is used with 2 message objects for transmit (LMO1) and receive (LMO2). In both cases the acceptance mask is set to "0" and interrupts are enabled as well as connected to the "NVIC002" - app.
Everytime I send a message to the XMC4500, I want to change my destination address as well as my data. I've tried it in many different ways and found 2 issues with updating the MO-data-registers.
Firstly my destination address is fixed as well as my data. The length of my databytes is 6 but if I change it to 7 or 8, the message won't be received by my destination-tablet.
The other problem is changing the destination address in dependence on my source address. For example I get a message from 0x111 and it should be send to 0x112 with the same data and on the same CAN-port.
I attached my receive-routine below as well as the project via an archive file and hope, that somebody can help me.
best regards,
Sebastian
Show Less
/* Check receive pending status in LMO2 */
if(CAN001_GetMOFlagStatus(&CAN001_Handle0,2,RECEIVE_PENDING) == CAN_SET)
{
/* Clear the flag */
CAN001_ClearMOFlagStatus(&CAN001_Handle0,2,RECEIVE_PENDING);
/* Read the received Message object and stores in variable CanRecMsgObj */
CAN001_ReadMsgObj(&CAN001_Handle0,&CanRecMsgObj,2);
TempMsgHandle.Identifier = 0x123;
TempMsgHandle.data[0] = 0xEF;
TempMsgHandle.data[1] = 0xEF;
TempMsgHandle.data[2] = 0xEF;
TempMsgHandle.data[3] = 0xEF;
TempMsgHandle.data[4] = 0xEF;
TempMsgHandle.data[5] = 0xEF;
TempMsgHandle.data[6] = 0xEF;
TempMsgHandle.data[7] = 0xEF;
TempMsgHandle.DataLength = 6; //7 and 8 is not possible
TempMsgHandle.IDExten =0;
TempMsgHandle.MsgObjEN = CAN001_ENABLE; // must be enabled
TempMsgHandle.MsgObjType = 1; // Tx=1 or Rx=0
CAN001_ConfigMsgObj(&CAN001_Handle0, &TempMsgHandle, 1);
CAN001_SendDataFrame(&CAN001_Handle0,1);
}
/* Check for Node error */
if(CAN001_GetNodeFlagStatus(&CAN001_Handle0,CAN001_ALERT_STATUS) == CAN_SET)
{
/* Clear the flag */
CAN001_ClearNodeFlagStatus(&CAN001_Handle0,CAN001_ALERT_STATUS);
}
I am using the CAN001 App to do the CAN TX process. Wondering if maybe I am not handling a specific error during TX? Each board also has a different address/mask setup. Show Less
I'm trying to find my way into DMA ussing dave apps, But I can't quite find the way.
Thanks in advance Show Less
I am using the DMA to Transfer some data triggered by the ADC peripheral.
It is running. After a Transfer the channel enable bit is cleared. Thus it is needed to activate the DMA channel once again when it is needed next time.
// => Enable DMA0 channel 3
GPDMA0->CHENREG |= 0x101U << 3;
The goal will be to use the DMA channel continuously without activating the DMA channel after every Transfer.
Thanks for your remarks! Show Less
I have a question about what should be considered in software when switching chip form factor. The program on a 16 pin XMC1100 MCU on my own board works differently than on the XMC2GO with its VQFN 24 pin XMC1100 chip. I am simply reading ADC values so no external factors should be affecting operation. I see nothing that would have to be different for different MCUs.
Where should I be looking for any differences and what should I expect to be different?
Suggestions?
I also noticed that I had to set the the BMI value to 0xFFD0 too to enable a timeout so the software starts after flash programming but unfortunately this setting is not in the tooling guide so I didn't know if was relevant. Since the use of the timeout value is not differentiated from the regular bootstrap loading mode in the the boot document, it should be fixed. Otherwise, the only thing people can do is program the chip and not actually run code.
Thanks,
Jason Show Less
some day ago, I post a problem of 3280 kit on the USB controller item. I copy the post here:
We just use the 3280 kit to develop a kind of new HID device, which is very interesting(we can introduce the HID device in other post, if someone interest with it).
In the 3280 kit, the explanation in datasheet for CapSecce Wizard is quite perfect, so we can use the CapSence of the kit easily.
In other hand, we also want to use USB interface in the kit for communiction with a host. We find, ther are also "HID Report Temlate Editor" and " USB setup wizard". However, when we open the datasheet for the USB, we can not find appropriate instructions for the " USB setup wizard".
We are raw hands to use USB, and hope to get expert advice.
the platform we use is psoc designer 5.4.
i used the example project to write and read from eeprom. but on reading i am getting 0xff only.
The flash reading will takes some time that cuases the TX8 delay.Time taken by the user module should be (x*9/19200)+ (11*x/24M).When the CPU clock is 24MHz.Note: The ROMX is used read the flash and please refer the assembly guide for the time required to execute the ROMX instruction.
Thanks,
Achuth
Show Less-
TraveoII
UART buadrate Setting
by chandan1995 Jun 19, 2023