Hi As part of my job, I have been thrown into deep working on XC161F (Infineon chip). I am terribly frightened of working witht this chip because it is my first time to use 16 microcontroller chip because I have been using a basic 8051 chip. Now I have to learn how to generate Pulse Width Modulation so I tried to google more information and sample code. Unfortunately it didn't help me very much. Help me to develop the simple code for PWM. Thank you guys Saraah Ghafoor
Welcome to the club! You are going from a Piper Cub to a 747 so there is much to learn. First, find a quiet place and read the over 800 pages of data sheets for the XC16x. Now, start looking at the example programs. Once you figure out how to use this processor you will not want to use any other. Good luck!
Hi I have checked infineon website and I am quite disappointed because it doesn't offer any exammple of using Pulse Width Modulation and CAPCOM. Does anyone know where to find plenty examples?
Hi Fiona, Here is a link to a nice tutorial from the University of Adelaide that includes the CAPCOM1/2. http://www.mecheng.adelaide.edu.au/robotics_novell/WWW_Devs/Dragon12/LNotes/MP6/MP6.ppt I don't know what problem you are having (or need more explanation with)? The user's manual is very good at explaining the modes and capabilities of the CAPCOM1/2 unit. Some other hints: The CAPCOM1/2 unit does not have shadow registers so you need to be careful when working with high frequency PWM that are close to 0 or 100% DC. If you need this then you should consider using the CAPCOM6 unit. Additionally, the CAPCOM1/2 on the XC16x devices has an additional non-staggered mode that allows the channels to run in parallel. If this does not help you then perhaps you could detail a very specific question. The effort you spend on the question will be reflected in the answer given (at least by me). -Chris
Thank you for the useful link. Bascially I need to know how to generate sine wave using CAPCOM for three phase AC motor. The trouble is I don't have a clue how to do it. So I would be grateful if you guys give me any guide. Regards Fiona
Ok, then go to the Infineon website again(http://www.infineon.com\microcontrollers) Here are two specific application notes "Space Vector Modulation" which are exactly what you are looking for. AP0803620 AP1605710 I don't know how you can be disappointed with these as they are extremely well written? -Chris
Maybe this is also useful to you: http://www.keil.com/appnotes/docs/apnt_189.asp
Thank you for the link but I have noticed that some of codes and platform are different that I intend to make sine wave in my XC161 platform. So I would appreicate to make sine wave for XC161.... Any recommendation? Fiona
For 3-phase Motor control you really need a CAPCOM6 peripheral. I would ask you to seriously reconsider you choice of derivative and switch to the XC167 as it has the same package as the XC161. Otherwise you will have a hard time to succeed as a novice to implement this with the CAPCOM1/2 peripherals.
Unfortunately I have to use the same processor :-( Fiona
Since you recommend me to use different processor, can you please explain what is your reason behind your decision? Fiona
"can you please explain what is your reason behind your decision?" Wasn't that clearly stated in his post of 1/7/06 11:49:38 ??