Quantcast
Channel: Infineon Forums
Viewing all 9892 articles
Browse latest View live

Welcome to the Multicopter-Forum

$
0
0
does this kit have WLAN?
where can one acquire the kit?

No Interrupt At USIC0_CH1

$
0
0
HI,

I cannot offer you exact answer to your question while it would be easier for me that you tell me what do you want to achieve, but I can offer you suggestion/advice. Try to do first DAVE CE project that works. Meaning open an empty DAVE CE project, add UART APP and configure it with the parameters you need (baudrate, data bits, stop bits, and so on). Then run that project on your board and verify that it is working. If you have issues even then take a look at UART_XMC_Lib_XMC12 example. So why I´m suggesting this? Because once you have example that is doing exactly that you expect, you can then do step by step debugging and see which instructions are performed on direct register access level. This way you can easily which line in your upper code is maybe wrong/missing/or redundant.

Let me know if you need additional help but then give me some more details in advance (baudrate, data bits, parity, stop bits, pin that are you using, etc.).

Best regards,
Deni

H bridge for DC motor

$
0
0
Hi guys how are you?, I am working in a drive dc motor prototype. I am using the IRFP250MPbF MOSFET and IR2110 for gate control. I attached a picture of the circuit.

Attachment 2616

Attachment 2617

The H bridge circuit has had problems with the snubber circuits. I would like to help me calculate an appropriate snubber circuit.

I'm also trying to simulate the circuit in PSPICE, but I have problems with the IR2110 circuit.

The characteristics of switching are:

PWM to 40 kHz, it is implemented in a development board FPGA.

The characteristics of DC Motor are:

Continuous stall current 21 Amps

Peak current 92 Amps

Rated speed 3000 rpm

Thanks,
Attached Images

Infineon xmc4700 relax kit, getting started questions

$
0
0
Quote:

Originally Posted by tecnologic View Post
Hi Paul,

most ARM Cortex derivates have a datasheet for the specific chip and a reference manual for the line of chips. In the reference manual u find the discription of the peripherials and the registers.
http://www.infineon.com/cms/de/produ...91de8#ispnTab4

have a look at this page. And consider the application notes for the different peripherials also, these are quite good.

regards

tec

got pretty helpful. thanks for the post.. seeking for more :)

UART background oparation

$
0
0
Hello,
I'm trying to implement serial interface with the lowest possible processor load.
Should I use DMA or Interrupts. If interrupts are the option, how do I implement handler on data receive event if there's no IRQ handler available for the user in UART DAVE APP.
There's only event on successful receive declared number of bytes, but how would I know, how many bytes to receive? I don't want to check if there's data in buffer in a loop, like it's in all exaples.

Communication between multiple microcontrollers

$
0
0
I'd like to start implementing a system consisting of N microcontrollers (N >= 2 MCUs), but I would like to know the possibilities to let them communicate one with the other.

Ideally, (N-1) microcontrollers are placed inside the house acting as clients, while the last (the "server") one is connected to a PC via USB. The problems I have right now is how to connect these (N-1) microcontrollers to the "server". The clients MCUs perform very simple tasks, so it may not be a good solution to use ARMs to do such simple jobs just because they provide CAN / PHY-MAC.

The communication will not happen more than once every few minutes for most of the devices and on demand for others. The speed is not very critical (message is short): 1 Mbit/s I think is WAY overkill for my purposes.

The MCUs I plan on using are the following.

Atmel AVR Tiny / Mega



TI MSP430 ARM Cortex M3/M4 (Possibly Atmel AVR UC3 - 32-bit)

I'd like to avoid PICs if possible (personal choice), simply because there are less possibilities to program them (all the above have more or less open source tools as well as some official tools).

I know some ARMs provide CAN functionality and am not so sure about the others.

Right now I came up with these possibilities:

Simple GPIO to send data (say > 16 bits at HIGH to indicate start of message, > 16 bits at LOW to indicate end of message). However it has to be at a standard frequency << (frequency_client, frequency_server) to be able to detect all bits. Only need one cable per client MCU.
RS-232: I think this is by far the most commonly used communication protocol, but I don't know how well it scales. I'm considering up to 64 client MCUs right now (probably more later)
USB: AFAIK this is mostly like RS-232, but I don't think it scales very well in this case (though USB supports lots of devices - 255 if I remember correctly - it may be overly complicated for this application)
RJ45 / Ethernet: this is what I'd really love to use, because it allows transmission over long distances without a problem (at least with shielded >Cat 6 cable). The problem is the cost (PHY, MAC, transformer, ...). I don't know if you can actually solder it well at home though. This way I wouldn't need a client MCU

Wireless / ZigBee: modules are very expensive, though it may be the way to go in order to avoid "spaghetti" behind the desk

RF modules / transceivers: I'm speaking of those in the 300 MHz - 1 GHz band, so they should be difficult to solder at home. The modules are all built-in, but they are quite as expensive as the ZigBee (at least the RF's modules at Mouser, at Sparkfun there seem to be cheaper ones).
CAN? It seems to be very robust. Even though I don't plan to use it in automotive applications, it may still be a good alternative.
I2C / SPI / UART? Again - better avoid "spaghetti" with the cables if possible PLCs are not really an option. Performance degrade pretty fast as the length increases and depends on the capacitance load of the power network. I think price-wise is about the same as Ethernet.
Furthermore, which protocol would be "better" in case of simultaneous transmissions (let's assume the rare case that at the very same instant two devices begin transmitting: which protocol provides the best "conflict management system" / "collision management system"?

To sum it up: I'd like to hear what may be the best solution for a distributed client system that do very light data communication, considering both flexibility (max number of devices, conflict / collision management system, ...), price, easy to make at home (soldering), ... I'd like to avoid spending 20$ on just the communication module, but at the same time having 30 wires behind the desk would suck.

The solution I'm imaging right now would be to do basic communication between near MCUs by GPIO or RS-232 (cheap!) and use Ethernet / ZigBee / Wi-Fi on one MCU per "zone" to communicate with the server (expensive, but it is still a lot cheaper than one Ethernet module per each client MCU).

Instead of cables it may as well be possible to use fiber optic / optical fibers. Though additional conversions are necessary, and I'm not sure if it'd be the best solution in this case. I'd like to hear additional details on them.

Forum: Cannot use search with Chrome

c167, read SPI eeprom

$
0
0
Hi,
I’ve a hybrid control unit with a C167 controller, 95320 SPI eeprom and 29F400 flash.
I want to read the SPI eeprom somehow. I tried it by Minimon in bootstarp mode, but I can read the flash only, because if I choose the Minimon driver for the eeprom (X25160), than I can’t see “reas_SPI_eeprom” between the features and I can’t run it.
Has somebody any idea, how to read the eeprom?
Thanks is advance!
Zax

Setting Channel Boundary levels

$
0
0
Hi,

I'm new with this platform and just started working with a first project. I am trying to implement an overcurrent protection in the program, but I am unable to find where to set channel boundary levels which are activated in the ADC_MEASUREMENT_ADV APP (Boundary Settings tab).

I have found some references about it, but they look old. I can't find ADCCH001 nor ADCGROUP001 APPS, which look like the ones where it could be set.

In my list of APPs (checked today if I had the last version), I have VADC_GROUP_CONFIG, which I don't know if it is the current one. However, when I try to add it, I get this error message:

"DAVE is not able to grant your last hardware resources request"


DAVE version: 4.3.2
APPs version: Update_Site_Pack_2016-09-26


BS,
Lucas

FAQ for XMC4800 EtherCAT

$
0
0
Question: is there any instructions/tutorials how to generate code for CiA402 application (motor drive profile)?

I could not generate such app with SSC tool. After I create new SSC project with Infineon template (and subsequently create project from xlsx file), then SSC Application ->CiA402_DEVICE becomes read only with value 0. Any ideas how to proceed? I assume I would need xlsx file for CiA402 profile but I couldn't find any from the Internet.

Any hints would be greatly appreciated, a R&D project is is stuck with this issue. Thanks!

programming the C167CS

$
0
0
I have similar problem and I'm using Infineon Minimon for read.

reading and programming data flash in SAK c167cs-32fm

CAN Baudrate Error

$
0
0
Hi Knecht Patrick,

if I understood everything correctly, you would like to be able to change baudrate dynamically during the run-time. I don´t know how you tried to do it (at least on the XMC side), but I can give you some hints and you can try something like that.

First of all it´s very important to understand that you shouldn´t change the baudrate while the NODE is part of the active CAN network. Things like bus errors just wait to happen. For this reason I suggest to first terminate participation of the node in CAN traffic. You do this by calling "XMC_CAN_NODE_SetInitBit" function.

However, be sure that you already finished with transmitting/receiving on the node you want to disable. If you disable the node in the middle of operation, you´ll end up with an error. So, check the status flag first and then proceed with terminating participation of the node.

Once you done that, call "XMC_CAN_NODE_NominalBitTimeConfigure" with appropriate baudrate argument to the function. Inside of this function NCRx.CCE will be set and reset so you don´t need to take care about it. Once that is done, you can enable the participation of the node in CAN traffic by calling "XMC_CAN_NODE_ResetInitBit" function.

Try something like this and let me know how it went.

Best regards,
Deni

EtherCAT CiA402 motor drive profile with XMC4300 or XMC4800

$
0
0
Anyone aware of any instructions/tutorials how to generate code for EtherCAT CiA402 application (motor drive profile) that works with XMC4300 or XMC4800?

I could not generate such app with Beckhoff SSC tool. After I create new SSC project with Infineon template (and subsequently create project from xlsx file), then SSC Application ->CiA402_DEVICE becomes read only with value 0. Any ideas how to proceed? I assume I would need xlsx file for CiA402 profile but I couldn't find any from the Internet.

Any hints would be greatly appreciated, a R&D project is is stuck with this issue. Thanks!

XMC4800 EtherCAT CiA402 Profile

$
0
0
I have exactly same sort of issue.

mophong, did you find a way to create OD file and make the CiA402 work? Thanks for your help!

ESC Kalibration

$
0
0
Hi!

Ich glaube ich habe ein Problem mit der ESC Kalibration. Wenn ich die "ESC_Calibrate_CopterRocks" Firmware aufs Board flashe, piepsen die ESCs zwar ein paar Mal und leuchten nach ein paar Sekunden grün, die Motoren drehen sich aber nicht, so wie es laut Anleitung sein sollte.
Hat jemand ein ähnliches Problem und kann mir helfen?

thx

XMC4800 How enter in Hibernate mode?

$
0
0
Hello, I have a XMC4800 Relax kit and I'd like to enter in hibernate mode in order to make power saving, but without success.
My goal is enter in hibernate mode and wakeup the XMC from the alarm of the internal RTC.
Bottom there is a part of my test, there is anything wrong because xmc4800 don't enter in hibernate mode..
can you help me?

Thank You


XMC_SCU_CLOCK_EnableLowPowerOscillator();
XMC_SCU_HIB_SetRtcClockSource(XMC_SCU_HIB_RTCCLKSR C_OSI);
XMC_RTC_Init(&rtc_config); // contains alarm settings
XMC_RTC_SetTime(&rtc_time);
XMC_RTC_EnableHibernationWakeUp(XMC_RTC_WAKEUP_EVE NT_ON_ALARM);
XMC_SCU_HIB_ClearEventStatus(XMC_SCU_HIB_EVENT_WAK EUP_ON_RTC);
XMC_SCU_HIB_EnableEvent(XMC_SCU_HIB_EVENT_WAKEUP_O N_RTC);
XMC_SCU_RESET_ClearDeviceResetReason();
XMC_SCU_HIB_ClearWakeupEventDetectionStatus();

XMC_RTC_Start();

XMC_SCU_HIB_EnterHibernateState();

while(1);

DMA Problems

$
0
0
I am trying to use the DMA to transfer data from USIC_CH0 to a RAM buffer. The USIC is set to IIS mode. I only need the data from the first IIS channel, so only the contents of RBUF0 are of interest.

As far as I know I have set the DMA and USIC configuration correctly. I have set the USIC receive interrupt to SR1. I am using DMA channel 1 in the GPDMA0 set to use link lists. The DLR is set.

When I enable the DMA, multiple blocks are transferred into my buffers and the transfer completes correctly. But when I analyse the data I can see that the same data is being read twice some of the time. The complete time for the transfer is also too short based on my baud rate.

It seems as if the DMA is not waiting for the receive interrupt correctly, or the interrupt is not being reset after the DMA read.

What could be the cause of this problem?

Multicore Programming on Tricore

CCU4: Measure PWM duty cycle and period

$
0
0
Hi,
i like to measure the duty and frequency of an PWM-signal,but it doesn't worked for me. Something seems to be wrong configured in the
- CCU4_SLICE_CONFIG - "Function Settings" - and - "Event Settings"
or
- HW Signal Connections.

Would you please post screenshots of these two register-cards and from the "HW Signal Connections"-overview? Or an Example Project?

thx & br, matthias
Viewing all 9892 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>