Legacy microcontrollers Forum Discussions
Legacy microcontrollers
My question relates to XC2300 family MultiCan module.See user manual ref xc2300e_um_v1.0_2011_01.pdfMy question is : how much lists are currently supp...
Show More
My question relates to XC2300 family MultiCan module.
See user manual ref xc2300e_um_v1.0_2011_01.pdf
My question is : how much lists are currently supported by the multican module ?
The xc2300e_um_v1.0_2011_01 manual is definitely unclear about that :
- Page 22.4, n_lists is clearly specified to 8
- Page 22.14, it is said that "The MultiCAN module provides 16 different lists" and also there is a "A 4 bit LIST bit field in the Message Object Control Register", (so assuming there are 16 lists)
- Page 22.58 that chapter rawly says there are only 8 lists, and this looks confirmed by the number of available LISTxH registers.
- Page 22-85, LIST field is effectively codded with 4 bits, meaning 16 lists could be supported.
So, what's the effective number of supported lists?
Vincent Show Less
See user manual ref xc2300e_um_v1.0_2011_01.pdf
My question is : how much lists are currently supported by the multican module ?
The xc2300e_um_v1.0_2011_01 manual is definitely unclear about that :
- Page 22.4, n_lists is clearly specified to 8
- Page 22.14, it is said that "The MultiCAN module provides 16 different lists" and also there is a "A 4 bit LIST bit field in the Message Object Control Register", (so assuming there are 16 lists)
- Page 22.58 that chapter rawly says there are only 8 lists, and this looks confirmed by the number of available LISTxH registers.
- Page 22-85, LIST field is effectively codded with 4 bits, meaning 16 lists could be supported.
So, what's the effective number of supported lists?
Vincent Show Less
Legacy microcontrollers
Hello,I'm starting a new project running a XC2388E MCU.My question relates about the SCU driver required to init and test the PLL.Today, I have the ch...
Show More
Hello,
I'm starting a new project running a XC2388E MCU.
My question relates about the SCU driver required to init and test the PLL.
Today, I have the choice between 3 different tools able to handle the PLL:
- The KEIL tool is able to generate a startup code handling the PLL. The code is quite simple, but I'm assuming it is compliant with infineon specs. But this code does fully manage oscillator faults.
- The DAVE tool generates a SCU driver, named SCS.C
- Application notes "ap1617011_Power_Management_with_SCU_Driver" also comes with its own SCU driver
I would like to ask the following questions :
- I would like to generate a 128 MHz sys clock from a 20 MHz external oscillator. But Dave looks unable to find a solution, and generated code is not so clear to be customised. How could I solve that issue ?
- Ap1617011 comes with a tool named ScuConfigTool.exe, but this tool does not accept more than 16Mhz for the source frequency. How could I solve that issue ?
- What's the Infinéon recommandation regarding SCU driver to be used in a real project ?
Vincent Show Less
I'm starting a new project running a XC2388E MCU.
My question relates about the SCU driver required to init and test the PLL.
Today, I have the choice between 3 different tools able to handle the PLL:
- The KEIL tool is able to generate a startup code handling the PLL. The code is quite simple, but I'm assuming it is compliant with infineon specs. But this code does fully manage oscillator faults.
- The DAVE tool generates a SCU driver, named SCS.C
- Application notes "ap1617011_Power_Management_with_SCU_Driver" also comes with its own SCU driver
I would like to ask the following questions :
- I would like to generate a 128 MHz sys clock from a 20 MHz external oscillator. But Dave looks unable to find a solution, and generated code is not so clear to be customised. How could I solve that issue ?
- Ap1617011 comes with a tool named ScuConfigTool.exe, but this tool does not accept more than 16Mhz for the source frequency. How could I solve that issue ?
- What's the Infinéon recommandation regarding SCU driver to be used in a real project ?
Vincent Show Less
Legacy microcontrollers
Hello, I'm a german student and I try to implement an IIC Interface on my XE162FL to transmit data to an eeprom.First I tried to get the code with Dav...
Show More
Hello, I'm a german student and I try to implement an IIC Interface on my XE162FL to transmit data to an eeprom.
First I tried to get the code with Dave but it doesn't work. After that, I tried to setup the register manually but that doesnt work too.
I tried to put a simple byte on the SDA line...
I have a debugger, where I can see all the register it seems like it is all correctly but on my oscilloscop I cant see anything.
For example the TBUF00 Register gets loaded with 0xA6 like in the code I attached.
Can anybody help me? (sorry for my written english)
Some deatails:
USIC1 CH0 -->U1C0
Master Mode
SCL pin P10.11
SDA pin P10.13
void vInit_IIC_CU_HW(void) {
// Sperren der seriellen Schnittstelle ueber Channel Control Register
U1C0_CCR = 0x0000;
// Voreinstellung Baudrate
//Baudrate auf 400,000 kbaud einstellen
U1C0_FDRL = 0x83C0; /// - The Fractional divider is selected
/// - The step value STEP = 960
U1C0_BRGL = 0x6100;
U1C0_BRGH = 0x0002;
/// - The data input DX0D (P10.13) is selected
U1C0_DX0CR = 0x0003; // load U1C0 input control register(Data)
/// - The clock input DX1D (P10.11) is selected
U1C0_DX1CR = 0x0003; // load U1C0 input control register(Clock)
// Festlegen der Interrupt-Kanaele
U1C0_INPRL = 0x0000; //
U1C0_INPRH = 0x0000; //
// Shift Control
U1C0_SCTRL = 0x0303;
U1C0_SCTRH = 0x073F; //Word Length = 7
// Transmit Control Register
U1C0_TCSRL = 0x0500; // single shot mode und TBUF Data enable
U1C0_TCSRH = 0x0000;
// Protocol Control Register
U1C0_PCRL = 0x0000;
U1C0_PCRH = 0x0002;
// FIFO Configuration
U1C0_TBCTRL = 0x0000; // load U1C0 transmitter buffer control
U1C0_TBCTRH = 0x0200; // load U1C0 transmitter buffer control
U1C0_RBCTRL = 0x0004; // load U1C0 receive buffer control register
U1C0_RBCTRH = 0x0100; // load U1C0 receive buffer control register
P10_IOCR13 = 0x00D0; //set direction register
P10_IOCR11 = 0x00D0; //set direction register
U1C0_CCR = 0x0004; // load U1C0 channel control register mit IIC
U1C0_TBUF00 = 0xA6;
} Show Less
First I tried to get the code with Dave but it doesn't work. After that, I tried to setup the register manually but that doesnt work too.
I tried to put a simple byte on the SDA line...
I have a debugger, where I can see all the register it seems like it is all correctly but on my oscilloscop I cant see anything.
For example the TBUF00 Register gets loaded with 0xA6 like in the code I attached.
Can anybody help me? (sorry for my written english)
Some deatails:
USIC1 CH0 -->U1C0
Master Mode
SCL pin P10.11
SDA pin P10.13
void vInit_IIC_CU_HW(void) {
// Sperren der seriellen Schnittstelle ueber Channel Control Register
U1C0_CCR = 0x0000;
// Voreinstellung Baudrate
//Baudrate auf 400,000 kbaud einstellen
U1C0_FDRL = 0x83C0; /// - The Fractional divider is selected
/// - The step value STEP = 960
U1C0_BRGL = 0x6100;
U1C0_BRGH = 0x0002;
/// - The data input DX0D (P10.13) is selected
U1C0_DX0CR = 0x0003; // load U1C0 input control register(Data)
/// - The clock input DX1D (P10.11) is selected
U1C0_DX1CR = 0x0003; // load U1C0 input control register(Clock)
// Festlegen der Interrupt-Kanaele
U1C0_INPRL = 0x0000; //
U1C0_INPRH = 0x0000; //
// Shift Control
U1C0_SCTRL = 0x0303;
U1C0_SCTRH = 0x073F; //Word Length = 7
// Transmit Control Register
U1C0_TCSRL = 0x0500; // single shot mode und TBUF Data enable
U1C0_TCSRH = 0x0000;
// Protocol Control Register
U1C0_PCRL = 0x0000;
U1C0_PCRH = 0x0002;
// FIFO Configuration
U1C0_TBCTRL = 0x0000; // load U1C0 transmitter buffer control
U1C0_TBCTRH = 0x0200; // load U1C0 transmitter buffer control
U1C0_RBCTRL = 0x0004; // load U1C0 receive buffer control register
U1C0_RBCTRH = 0x0100; // load U1C0 receive buffer control register
P10_IOCR13 = 0x00D0; //set direction register
P10_IOCR11 = 0x00D0; //set direction register
U1C0_CCR = 0x0004; // load U1C0 channel control register mit IIC
U1C0_TBUF00 = 0xA6;
} Show Less
Legacy microcontrollers
Hi, I have a problem. I have a ringbuffer for my serial port. If I push an element in my buffer and, If at the same time I receive an interrupt,my bu...
Show More
Hi,
I have a problem.
I have a ringbuffer for my serial port. If I push an element in my buffer and, If at the same time I receive an interrupt,my buffer got corrupt.
To avoid this a want to suspend the interrupt when I push an element too my buffer.
If I disable the interrupt UCSI0.0IC=0 when I enter the function the interrupt got lost. I want to delay the interrupt.
How do i do that?
Hope you can help. Show Less
I have a problem.
I have a ringbuffer for my serial port. If I push an element in my buffer and, If at the same time I receive an interrupt,my buffer got corrupt.
To avoid this a want to suspend the interrupt when I push an element too my buffer.
If I disable the interrupt UCSI0.0IC=0 when I enter the function the interrupt got lost. I want to delay the interrupt.
How do i do that?
Hope you can help. Show Less
Legacy microcontrollers
Hi all, I am just trying to check the functionality of the two CAN on-board transcievers.These two CAN transceiver are connected to the MultiCAN on XC...
Show More
Hi all,
I am just trying to check the functionality of the two CAN on-board transcievers.These two CAN transceiver are connected to the MultiCAN on XC2000 node 0 and 1. The transceivers are connected on the Kit to two IDC10 plugs. I connected these two transcievers using two jumper wires i.e CAN1L to CAN2L and CAN1H to CAN2H. When I programmed the chip to send the typed characters using serial interface through these CAN transcievers to be displayed on the screen and also an LED P10.0 should be toggled.But when I debuged the code, neither the LED blinks nor I see anything on the Hyperterminal.The have synchronised the settings of hyperterminal with the ASC.When I don't use the CAN bus transcievers, then the serial interface just alone works fine.
Can anybody suggest me some solution to this? Show Less
I am just trying to check the functionality of the two CAN on-board transcievers.These two CAN transceiver are connected to the MultiCAN on XC2000 node 0 and 1. The transceivers are connected on the Kit to two IDC10 plugs. I connected these two transcievers using two jumper wires i.e CAN1L to CAN2L and CAN1H to CAN2H. When I programmed the chip to send the typed characters using serial interface through these CAN transcievers to be displayed on the screen and also an LED P10.0 should be toggled.But when I debuged the code, neither the LED blinks nor I see anything on the Hyperterminal.The have synchronised the settings of hyperterminal with the ASC.When I don't use the CAN bus transcievers, then the serial interface just alone works fine.
Can anybody suggest me some solution to this? Show Less
Legacy microcontrollers
Hello all,Actually I want to simulate Hardware-triggered ADC0 with the CCU61-SR3.I have enabled Parallel source and used Ch0 and Ch1 for conversion.In...
Show More
Hello all,
Actually I want to simulate Hardware-triggered ADC0 with the CCU61-SR3.I have enabled Parallel source and used Ch0 and Ch1 for conversion.In the Result Reg1 and Result Reg 2, I have enabled SR0 interrupt.Now in CCU61's Timer 13, I have selected the Period to be 1sec.After the function calls for ADC0_vStartParReqChNum() and CCU61_StartTmr(),the ADC0 doesnot the interrupt to get the converted value on the Port 10.
I am not sure,is it the problem with ADC0 SR0 interrupt or with CCU61 settings?
Thanks in advance for your replies! Show Less
Actually I want to simulate Hardware-triggered ADC0 with the CCU61-SR3.I have enabled Parallel source and used Ch0 and Ch1 for conversion.In the Result Reg1 and Result Reg 2, I have enabled SR0 interrupt.Now in CCU61's Timer 13, I have selected the Period to be 1sec.After the function calls for ADC0_vStartParReqChNum() and CCU61_StartTmr(),the ADC0 doesnot the interrupt to get the converted value on the Port 10.
I am not sure,is it the problem with ADC0 SR0 interrupt or with CCU61 settings?
Thanks in advance for your replies! Show Less
Legacy microcontrollers
Hello,I test in Infineon website sample code. (ap0809811_low_pwr_modes_xc82x_xc83x.exe)But now XC822 can't link FLOAD via SPD when it used power savin...
Show More
Hello,
I test in Infineon website sample code. (ap0809811_low_pwr_modes_xc82x_xc83x.exe)
But now XC822 can't link FLOAD via SPD when it used power saving mode.
What can i check this issue? Show Less
I test in Infineon website sample code. (ap0809811_low_pwr_modes_xc82x_xc83x.exe)
But now XC822 can't link FLOAD via SPD when it used power saving mode.
What can i check this issue? Show Less
Legacy microcontrollers
Hello! As far as I concern, the XC2765's Multican node doesn't go into the BUS OFF state when it must. I'm trying the force the BUS OFF state(for ...
Show More
Hello!
As far as I concern, the XC2765's Multican node doesn't go into the BUS OFF state when it must. I'm trying the force the BUS OFF state(for testing). To do that, one of the nodes on a CAN bus is configured to send a lot of messages with the wrong baudrate. But for some reason Rx Error counter in my XC2765 MCU stops at value of 136. The Error Warning Limit interrupt is generated normally, but the BUS OFF interrupt is not generated, NSRx.BOFF bit is not set and thus Multican doesn't go in BUS OFF state.
What is the reason for that? I've encountered similar behaviour on another MCU. May be I understand the logic of CAN controller in the wrong way? Show Less
As far as I concern, the XC2765's Multican node doesn't go into the BUS OFF state when it must. I'm trying the force the BUS OFF state(for testing). To do that, one of the nodes on a CAN bus is configured to send a lot of messages with the wrong baudrate. But for some reason Rx Error counter in my XC2765 MCU stops at value of 136. The Error Warning Limit interrupt is generated normally, but the BUS OFF interrupt is not generated, NSRx.BOFF bit is not set and thus Multican doesn't go in BUS OFF state.
What is the reason for that? I've encountered similar behaviour on another MCU. May be I understand the logic of CAN controller in the wrong way? Show Less
Legacy microcontrollers
I am working with the XC164 family. Is there any mean to protect the code in flash from reading ? If not, is there any µC which can protect flash code...
Show More
I am working with the XC164 family. Is there any mean to protect the code in flash from reading ? If not, is there any µC which can protect flash code ?
Show Less
Legacy microcontrollers
I'm trying to implement an I²C/SMBus master using SSC.I can use SSC_CONL.PO to switch the clock idle from high (no transmission) to low (idle state be...
Show More
I'm trying to implement an I²C/SMBus master using SSC.
I can use SSC_CONL.PO to switch the clock idle from high (no transmission) to low (idle state between bytes).
I have to do something similar with the TX pin to generate the start and stop conditions. I haven't found any information on the TX pin idle state in the handbook. Show Less
I can use SSC_CONL.PO to switch the clock idle from high (no transmission) to low (idle state between bytes).
I have to do something similar with the TX pin to generate the start and stop conditions. I haven't found any information on the TX pin idle state in the handbook. Show Less