Legacy microcontrollers Forum Discussions
About Setting of MFT register(wfta/wftb:OCCP/TCCP)
We want to use MFT for PWM as below usages.
- Usages of MFT
It start from dead time of both channel.
First, I set MFT register(wfta/wftb:OCCP/TCCP) for deadtime.
next, It work for PWM of both channel.
I set MFT register(wfta/wftb:OCCP/TCCP) for expected pulse.
How much need cycle time for between each instruction (min or max)?
Do you have your recommendation or specification?
Show LessI think PZR needs to be set 1(open drain) when I uses I2C.
But, I2C poling example in PDL 2.0.2 seems not to set PZR.
How is PZR set correctly?
Show LessIn Adc_Init: SCIS01 and SCIS02 are 16bit registers. The uint8_t cast disables some channels.
Best Regards,
Simon Maurer
--- a/2.1.0/drivers/adc/adc.c 2017-12-22 17:29:24.000000000 +0100
+++ b/2.1.0/drivers/adc/adc.c 2019-01-25 13:49:19.501977384 +0100
@@ -467,9 +467,9 @@
if(NULL != pstcConfig->pstcScanInit)
{
// Set Scan Conversion Input Selection Register
- pstcAdc->SCIS01 = (uint8_t)(0x0000FFFFul & pstcConfig->pstcScanInit->u32ScanCannelSelect.u32AD_CHn);
+ pstcAdc->SCIS01 = (uint16_t)(0x0000FFFFul & pstcConfig->pstcScanInit->u32ScanCannelSelect.u32AD_CHn);
- pstcAdc->SCIS23 = (uint8_t)((0xFFFF0000ul & pstcConfig->pstcScanInit->u32ScanCannelSelect.u32AD_CHn) >> 16u);
+ pstcAdc->SCIS23 = (uint16_t)((0xFFFF0000ul & pstcConfig->pstcScanInit->u32ScanCannelSelect.u32AD_CHn) >> 16u);
// Conversion mode single, repeated
Show LessI can communicate with the QUAD-SPI FLASH N25Q03 using both standard SPI and Quad SPI on the U1C1.
So far so good.
I have then connected the N25Q03 to U2C1 on a XMC4500F144 using the below pinout:
P4.7 - Data0
P4.6 - Data1
P4.5 - Data2
P4.4 - Data3
P4.3 - CS
P4.2 - CLK
When using the Infineon XMC pin-out tool, it indicates that this setup is possible to use for Quad-SPI.
But when looking at the view for SPI Master in the pin-out tool there is no possibillity to use this setup.
The MOSI-pins are only available at P3.11 and P3.5 (DOUT0) for SPI Master, the other P4.x pins are fine.
Why is this the case ?
Cannot the U2C1 be used for Standard SPI (MOSI/MISO/CLK/CS) ?
I have rewritten the above example to use the U2C1 and tried to send data using Standard SPI but cannot get any data on my MOSI-pin. Show Less
Hi,
I have a problem.
When I using a 4 MHz quartz oscillator, I entered to the internal bootloader with the INIT reset signal and sending the "V" symbol through the UART4, 9600 baud. This is good.
However, using a 12MHz oscillator and the same procedure, the internal bootloader does not respond. What's the problem, is the bootloader can't operate at 12 MHz?
Show LessWe have boards that mount either 9BF564L or 9BF566L.
Our custom bootloader checks for application code integrity computing CRC over the application flash area and so he needs to know how big is this area.
We can of course having different bootloaders for different MCUs but it would be better if we can do this with just one bootloader that's able to recognize the MCU where it's running (or, in equivalent way, that's able to detect how much flash memory is available on chip).
Any idea?
ARM MCUs have plenty of registers in System Control area (0xE000_0000..0xE00F_FFFF) for checking cpu/system type/revision/features/etc but I can't find out anything just simple or useful like a "manufacturer device id" or "flash size" or something like that...
Show LessHello,
Can you please support to provide example code for Eth driver(at least the register definition) for Traveo1 S6J32*E* (AMBER I4L)?
If not can you please redirect me from where I can get/request it?
Thank you!
Best Regards,
Valentin.
Show Less