XMC™ Forum Discussions
XMC™
To generate the desire PWM frequency and duty cycle using CCU4 / CCU8, we need to program the correct count value into the "Timer Period Value registe...
Show More
To generate the desire PWM frequency and duty cycle using CCU4 / CCU8, we need to program the correct count value into the "Timer Period Value register" and "Compare Value register". The Timer Period Value correspond to the period of the PWM and the Compare value correspond to the duty cycle. These 2 values are applicable in both the PWM Center or Edge align mode.
Please see attachment for more detail information to calculate the Timer period / compare Value of CCU4 / CCU8.
G@@d Luck ... Show Less
Please see attachment for more detail information to calculate the Timer period / compare Value of CCU4 / CCU8.
G@@d Luck ... Show Less
XMC™
XMC1000 does not provided input for external crystal or oscillator but it is possible to implement a closed-loop control with external reference frequ...
Show More
XMC1000 does not provided input for external crystal or oscillator but it is possible to implement a closed-loop control with external reference frequency.
We can use CCU4 to capture the period of reference frequency and adjust the Fractional Divider of the MCLK in register CLKCR.FDIV.
For example, if the reference frequency is 32KHz and CCU4 resolution is configured to 32nsec, capturing the period of the reference frequency will give a value of 1000.
If the captured value is less than 1000, this means the MCLK is slower than it should and we should decrease the fractional divider.
If the captured value is more than 1000, this means the MCLK is faster than it should and we should increase the fractional divider.
Attached is the basic example on the closed loop control via external reference frequency.
One CCU4 slice is used to captured the external frequency (32KHz) and another slice is used to generate a 32KHz PWM.
By varying the reference frequency, the generated PWM output frequency will follow the reference frequency.
This example is tested on XMC1200 and XMC1300 boot kit.
The input pin for the reference frequency is P0.3 and the generated PWM output pin is P0.4.
Show Less
We can use CCU4 to capture the period of reference frequency and adjust the Fractional Divider of the MCLK in register CLKCR.FDIV.
For example, if the reference frequency is 32KHz and CCU4 resolution is configured to 32nsec, capturing the period of the reference frequency will give a value of 1000.
If the captured value is less than 1000, this means the MCLK is slower than it should and we should decrease the fractional divider.
If the captured value is more than 1000, this means the MCLK is faster than it should and we should increase the fractional divider.
Attached is the basic example on the closed loop control via external reference frequency.
One CCU4 slice is used to captured the external frequency (32KHz) and another slice is used to generate a 32KHz PWM.
By varying the reference frequency, the generated PWM output frequency will follow the reference frequency.
This example is tested on XMC1200 and XMC1300 boot kit.
The input pin for the reference frequency is P0.3 and the generated PWM output pin is P0.4.
Show Less
XMC™
Hi all,I would like to share a very small project I have realized using my XMC1200 boot kit:"Camera control for digital camera Panasonic Lumix DMC-FZ3...
Show More
Hi all,
I would like to share a very small project I have realized using my XMC1200 boot kit:
"Camera control for digital camera Panasonic Lumix DMC-FZ30 using XMC1200".
Attached you can find
a) The project description including the circuit: Just two operations are supported by the remote control input of the camera: “Focus” and “Click”.
b) The small C demo program that I developed from the example "EasyMain.c" by doing minimal adaptation: Take pictures for a time-lapse video.
c) A small demo time-lapse video realized with the project, putting together the pictures into a film using "Windows Life Movie Maker".
Since the camera operation is handled by the circuit now, adding extra circuitry for activation of the camera would be the next obvious step: photo sensor, motion detector, ... The XMC1200 would observe inputs from the sensors and activate the camera, when certain conditions are met. Many possible applications for a tinkerer!
Have fun, Jan Show Less
I would like to share a very small project I have realized using my XMC1200 boot kit:
"Camera control for digital camera Panasonic Lumix DMC-FZ30 using XMC1200".
Attached you can find
a) The project description including the circuit: Just two operations are supported by the remote control input of the camera: “Focus” and “Click”.
b) The small C demo program that I developed from the example "EasyMain.c" by doing minimal adaptation: Take pictures for a time-lapse video.
c) A small demo time-lapse video realized with the project, putting together the pictures into a film using "Windows Life Movie Maker".
Since the camera operation is handled by the circuit now, adding extra circuitry for activation of the camera would be the next obvious step: photo sensor, motion detector, ... The XMC1200 would observe inputs from the sensors and activate the camera, when certain conditions are met. Many possible applications for a tinkerer!
Have fun, Jan Show Less
XMC™
Dear all,You may download application examples from the respective XMC1000 Boot Kit webpage:XMC1100 Boot Kithttp://www.infineon.com/cms/en/product/microcontrollers.../boot-kit-xmc1100/......
Show More
Dear all,
You may download application examples from the respective XMC1000 Boot Kit webpage:
XMC1100 Boot Kit
http://www.infineon.com/cms/en/product/microcontrollers.../boot-kit-xmc1100/...
XMC1200 Boot Kit
http://www.infineon.com/cms/en/product/microcontrollers.../boot-kit-xmc1200/...
XMC1300 Boot Kit
http://www.infineon.com/cms/en/product/microcontrollers.../boot-kit-xmc1300/...
Note: The Simple_* examples are provided as DAVE projects, written in C code with no DAVE apps used. Show Less
You may download application examples from the respective XMC1000 Boot Kit webpage:
XMC1100 Boot Kit
http://www.infineon.com/cms/en/product/microcontrollers.../boot-kit-xmc1100/...
XMC1200 Boot Kit
http://www.infineon.com/cms/en/product/microcontrollers.../boot-kit-xmc1200/...
XMC1300 Boot Kit
http://www.infineon.com/cms/en/product/microcontrollers.../boot-kit-xmc1300/...
Note: The Simple_* examples are provided as DAVE projects, written in C code with no DAVE apps used. Show Less
XMC™
XMC1000 Motor Control Application Kit webpage:http://www.infineon.com/cms/en/product/microcontrollers/... You can find useful Getting Started training...
Show More
XMC1000 Motor Control Application Kit webpage:
http://www.infineon.com/cms/en/product/microcontrollers/...
You can find useful Getting Started training slides, example codes, user's manuals, etc.. available for download. Show Less
http://www.infineon.com/cms/en/product/microcontrollers/...
You can find useful Getting Started training slides, example codes, user's manuals, etc.. available for download. Show Less
XMC™
There is a Virtual COM Port when you connect any of the XMC1000 Boot kit to the computer.When you connect the Boot kit to your system for the first ti...
Show More
There is a Virtual COM Port when you connect any of the XMC1000 Boot kit to the computer.
When you connect the Boot kit to your system for the first time, it will installed the driver and registered a COM Port in your system.
This COM Port allows the XMC1000 device to communicate with the PC terminal program using UART protocol.
Plug in the Boot Kit in your PC and you will find "JLink CDC UART Port" in the system Device Manager.
The COM Port number indicated there is refer to the Boot Kit Virtual COM Port.
Then, setup your terminal program to connect to this COM Port number.
After that, configure the XMC1000 UART Transmit pin to P1.2 and Received pin to P1.3.
Now, your XMC1000 is ready to send and receive data from the PC terminal program. 🙂 Show Less
When you connect the Boot kit to your system for the first time, it will installed the driver and registered a COM Port in your system.
This COM Port allows the XMC1000 device to communicate with the PC terminal program using UART protocol.
Plug in the Boot Kit in your PC and you will find "JLink CDC UART Port" in the system Device Manager.
The COM Port number indicated there is refer to the Boot Kit Virtual COM Port.
Then, setup your terminal program to connect to this COM Port number.
After that, configure the XMC1000 UART Transmit pin to P1.2 and Received pin to P1.3.
Now, your XMC1000 is ready to send and receive data from the PC terminal program. 🙂 Show Less
XMC™
If you want to store your web pages in the XMC flash then you have to convert the HTML pages and images into C codes readable by the MCU.1. To do this...
Show More
If you want to store your web pages in the XMC flash then you have to convert the HTML pages and images into C codes readable by the MCU.
1. To do this you need the makefsdata.exe which can be downloaded from this thread "makefsdata.zip".
2. Then the next thing to do is to follow the procedures in this document "Procedures to store webpage in flash mem.docx" which describe the use of the makefsdata. Show Less
1. To do this you need the makefsdata.exe which can be downloaded from this thread "makefsdata.zip".
2. Then the next thing to do is to follow the procedures in this document "Procedures to store webpage in flash mem.docx" which describe the use of the makefsdata. Show Less
XMC™
Each result register has an individual data valid flag (VF) associated with it. This flag indicates when “new” valid data has been stored in the corresponding result register and can be read out.
if (G0RES1.VF) // Check if there is a valid result in ADC_Ch1
{
Buffer = G0RES1.RESULT; // Read ADC_Ch1 result and VF flag is cleared after read
}
When a result register is read via the application view, the corresponding valid flag is automatically cleared when the result is read. This also happened when you are montitoring the ADC result register which will affect the flow of your software (Buffer will never gets updated).
Thus to prevent such misunderstanding during software debugging, it is most advisable to use the "VADC Group Result register, debug" (GxRESDy) when you are monitoring the ADC results. Show Less
Each result register has an individual data valid flag (VF) associated with it. This flag indicates when “new” valid data has been stored in the corre...
Show More
Each result register has an individual data valid flag (VF) associated with it. This flag indicates when “new” valid data has been stored in the corresponding result register and can be read out.
if (G0RES1.VF) // Check if there is a valid result in ADC_Ch1
{
Buffer = G0RES1.RESULT; // Read ADC_Ch1 result and VF flag is cleared after read
}
When a result register is read via the application view, the corresponding valid flag is automatically cleared when the result is read. This also happened when you are montitoring the ADC result register which will affect the flow of your software (Buffer will never gets updated).
Thus to prevent such misunderstanding during software debugging, it is most advisable to use the "VADC Group Result register, debug" (GxRESDy) when you are monitoring the ADC results. Show Less
XMC™
Hey all,The current version of Keils µVision V4.70 could be configured in a way that the PFLASH is programmed twice without erasing in between. This l...
Show More
Hey all,
The current version of Keils µVision V4.70 could be configured in a way that the PFLASH is programmed twice without erasing in between. This leads to the situation that the Flash cannot be read anymore and the Debugger(ULINK2 and ULINKpro) cannot connect anymore. To correct this behavior install this patch.
Regards Show Less
The current version of Keils µVision V4.70 could be configured in a way that the PFLASH is programmed twice without erasing in between. This leads to the situation that the Flash cannot be read anymore and the Debugger(ULINK2 and ULINKpro) cannot connect anymore. To correct this behavior install this patch.
Regards Show Less
- « Previous
- Next »