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

the problem of Distance2Go's UART about setting of the MSB/LSB

$
0
0
Dear, Infenion.

I'm haneul yun.

I used Distance2Go and i try to uart communication.

i am trying to configure UART transmission for an Distance2Go.

and i finished setting of the UART Pins in order to use the UART as belows.

#define UART_TX P0_1
#define UART_RX P0_0

And i tried to transfer data using the UART_TX and it's successful.

But there are problems about sending the data transmit.

I don't see the ascii data in my serial data monitoring programs.

i only see the incorrented hex data compare of original data.

Also, When I checked the signal with an oscilloscope the bits came out LSB.

ex) i send the 0x3A(0x00111010), the signal with an oscilloscope is 0x5C(0x0101 1100)

I guess this problem occurs the LSB setting and in order to solve this problems i have to set as the MSB when the data is transmit.

how can i set the MSB setting in UART?

Could you give me an example code or information about MSB/LSB setting?




my code is as belows.


#include "uart.h"
#include "xmc_uart.h"


/* Initialization structure for both USIC0_CH0 and USIC0_CH1 channels */
XMC_UART_CH_CONFIG_t uart_config =
{
.data_bits = 8U,
.stop_bits = 1U,
.baudrate = 9600, //Baudrate
};

XMC_GPIO_CONFIG_t uart_tx =
{
.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2,
.output_level = XMC_GPIO_OUTPUT_LEVEL_LOW,
.output_strength = XMC_GPIO_OUTPUT_STRENGTH_WEAK
};

XMC_GPIO_CONFIG_t uart_rx =
{
.mode = XMC_GPIO_MODE_INPUT_TRISTATE
};

/* Transmit handling IRQ */
void USIC0_0_IRQHandler(void)
{

}

const uint8_t message[] = "Hello radar!!\n";


void uart_init()
{

XMC_UART_CH_Init(XMC_UART1_CH1, &uart_config);

XMC_UART_CH_Start(XMC_UART1_CH1);

XMC_GPIO_Init(UART_TX, &uart_tx);

// XMC_USIC_CH_SetShiftDirection(XMC_UART1_CH1, XMC_USIC_CH_SHIFT_DIRECTION_MSB_FIRST);

// XMC_USIC_CH_SHIFT_DIRECTION_LSB_FIRST /**< Shift LSB first. The first data bit of a data word is located at bit position 0. */
// XMC_USIC_CH_SHIFT_DIRECTION_MSB_FIRST /**< Shift MSB first. The first data bit of a data word is located at the bit position given by the configured word length. */

send_uart_data("Uart/n",sizeof("Uart/n"));

XMC_UART_CH_Transmit(XMC_UART1_CH1, 0x60);


}

void send_uart_data(unsigned char *data, uint32_t length)
{
uint32_t index;

for (index = 0; index < length; index++)
{
XMC_UART_CH_Transmit(XMC_UART1_CH1, data[index]);

}
}

What is TC 1.6 and TC 1.6.1 architecture difference ?

$
0
0
I am flashing an AUTOSAR compliant code on TC297TP and TC375TE. However the throughput for an API on TC297TE is 4 times the throughput calculated on TC375TP but the CPU freq and STM freq are same on both boards
i.e 200 MHz and 100 MHz respectively. Compiler used is Tasking 6.2r2.

I read in few AURIX trainings that 1.6P and 1.6E architecture have different instruction cycles i.e 6 and 4 respectively but I couldn't find this in any manual. I am aware TC297 uses 1.6 and TC375 uses 1.6.1 architecture,
but how do I figure from 1.6P/1.6E and 1.61P/1.6.1E is being used on the respective boards ?

What could be the possible reason for the 4Times throughput value for same code, same compiler flags etc. Everything same only different board ?

Please help !!!!

What is TC 1.6 and TC 1.6.1 architecture difference ?

$
0
0
I am flashing an AUTOSAR compliant code on TC297TP and TC375TE. However the throughput for an API on TC297TE is 4 times the throughput calculated on TC375TP but the CPU freq and STM freq are same on both boards
i.e 200 MHz and 100 MHz respectively. Compiler used is Tasking 6.2r2.

I read in few AURIX trainings that 1.6P and 1.6E architecture have different instruction cycles i.e 6 and 4 respectively but I couldn't find this in any manual. I am aware TC297 uses 1.6 and TC375 uses 1.6.1 architecture but,
how do I figure from 1.6P/1.6E and 1.61P/1.6.1E is being used on the respective boards ?

What could be the possible reason for the 4Times throughput value for same code, same compiler flags etc. Everything same only different board ?

Please help !!!!

F4-23MR12W1M1P_B11 heatsink

$
0
0
Hi everyone,

I'm using F4-23MR12W1M1P_B11 power module in my projet and i'm looking for a heatsink to use with, does anyone have any recommandations ?

Thank you

Parallelization IGBT

$
0
0
First, obviously it is recommend paralleling IGBTs of the same part number, i.e. same chip technology and package.

Then, the main target when designing with paralleled IGBTs is to ensure equal current sharing between them during operation. Otherwise, the current imbalance could damage the IGBT with higher current due to excessive power dissipation. The difference in static and dynamic performance of the paralleled IGBTs due to their electrical parameters distribution, together with a poor pcb layout and cooling system design, are the main issues to achieve an equal current sharing.

With regard to the static performance of IGBTs, the difference of VCEsat due to the typical parameter distribution, results in larger amount of current conduction for the lower VCEsat device. However, if the IGBT’s VCEsat increase as a function of junction temperature (positive temperature coefficient VCEsat), the current sharing is dynamically self-achieved. Thus, if high current flows through one paralleled IGBT, this causes an increase of junction temperature and hence, VCEsat increases and the current is shifted to other paralleled IGBT with lower VCEsat. Therefore, it is recommended IGBTs with positive temperature coefficient VCEsat for easy paralleling.

For the dynamic performance of the IGBTs, the current imbalance during switching events is due mainly to the distribution of switching times ton and toff, gate threshold voltage VGE(th) and its negative temperature coefficient, gate charge Qg, Miller capacitance Cres, and transfer characteristic. Then, to minimize this issue, it is recommended to use split gate resistor for the gate driver network and a very symmetrical pcb layout for the gate driver loop and the emitter power loop, and very small gate common emitter inductance. The split gate resistor connection, as shown in the figure, improves the dynamic current sharing compared to one common gate resistor reducing the parameters distribution and common emitter inductance effects.

In summary, for paralleling IGBTs it is recommended positive temperature coefficient VCEsat, split gate resistor using low tolerance resistors, symmetrical PCB layout for the gate driver loop and the emitter power loop, very small gate common emitter inductance, and cooling system with similar junction-heatsink thermal resistance.
?????

Using program scratch pad

$
0
0
Hi,

I have been trying to execute some of my codes to PRSR (program scratch pad RAM).

In the linker script, I did the following:
group (contiguous, ordered, run_addr = mem:int_ram_core0_P, copy)
{
select ".text.MyModule.SampleFunction";
}

But here the actual instruction code are missing (see only nop).
Attachment 5671

How do I actually do this?
Note: mem:int_ram_core0_P points the PRSR address.
?????

Thermal Spice model subckt in irf135b203 spice model

$
0
0
So this question likely id's me as newbie...but is there an appnote on the use of the spice thermal model subcircuit that appears to be appended to the end of the irf135b203 spice model.
thanks in advance
cmoses

MCU does not start at startup address written in BMHDx

$
0
0
Hello all,

I am using TC332LP and flashed BMHD0 using WinIdea UCB Plugin. I confirmed the written data by checking memory window of the debugger at address 0xAF40_0000. In BMHD, my start address is A000_0000 and my startup code is here.
If I download application code, my program counter (PC) is in correct address only once and winidea shows it correctly and works fine without an issue.
If I reset or power off-on, then my PC starts at address 0xA00A_0020 and code does not work as intended. Do you give me some clues why my PC becomes 0xA00A_0020 when I reset the MCU.

I've attached the memory window.

Attachment 5672
?????

Is there a way to swap banks with miniwiggler and Memtool?

$
0
0
We have AURIX TC367DP on our boards. We're planning to use the SOTA feature. I have a Lauterbach debugger that allows me to swap banks. Can I do it using miniwiggler and Memtool? Most of our internal users don't have Lauterbach, they use Memtool with miniwiggler to program or erase the device.

Looking for the XC164CM UCAN Starter kit USB stick

Multican_1_kit_tc297_tft can tx & rx

Ethernet connection XMC4800

$
0
0
Hi!

Did you set PHY address to 1? Default is 0 and it didn't work for me either....

Regards,
Hubert

Test for japanese

SPI/Flash DIGITAL IO Pin Setting for XMC4500 XMC4500-F100x1024

$
0
0
Thank you and I agree with your comment. Background: I am trying to make the SPI_EXAMPLE_XMC45 app work on the xmc4500 relax-kit.
So I migrated the project to the XMC4500-F144x1024 architecture using
the "DAVE Project Upgrade->Device Migration" menu option, in "App Dependencies" under "SPI_MASTER", I selected
"High if inactive, transmit on falling clock edge, receive on rising clock edge"
and (just to be safe) initiated a "Generate Code" . I built and installed and debugged:

in main.c:142 "N25Q03_StatusRead();" always returns '0' which means that " N25Q03_WriteEnable();" of the previous statement actually did not enable write.

So, judging by your answer, I erred and thought DIGITAL_IO could have something to do with the problem.

Do you have any idea what I could try?

thank you.

can't disable watchdog on TC399XE

$
0
0
The CPU will run for something like fifty milliseconds before a watchdog reset by default.

Are you using the iLLD and/or AURIX Development Studio? This code in Cpu0_Main.c disables the CPU watchdog and the Safety Watchdog:
Code:

    /* !!WATCHDOG0 AND SAFETY WATCHDOG ARE DISABLED HERE!!
    * Enable the watchdogs and service them periodically if it is required
    */
    IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword());
    IfxScuWdt_disableSafetyWatchdog(IfxScuWdt_getSafetyWatchdogPassword());


Soft Reset vs Hard Reset

Play a mp3 file with XMC4500

$
0
0
The thing you will need for sure now is the place to get the mp3s. Back in 2014, it was easy- everything was on torrents. And in addition to this, a ton of websites with free music existed. Now there're only streaming services and nothing else. These days the only place I managed to find my favourite song egyptian wine slow
https://wine-slow-by-egyptian.mp3juices.red/ is here.

What is TC 1.6 and TC 1.6.1 architecture difference ?

SPI diagnosis of TLE9201SG

IoT uses eSIM

$
0
0
I've been planning on IoT project for years already
Viewing all 9892 articles
Browse latest View live


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