Can someone tell me the difference between these two? My guess is that T1CMPR initializes the compare value while CMPR1 allows you to change the value.
T1CMPR and CMPR1
Started by ●April 15, 2010
Reply by ●April 15, 20102010-04-15
Codefragment wrote:> Can someone tell me the difference between these two? My guess is that > T1CMPR initializes the compare value while CMPR1 allows you to change the > value.The _only_ reason that I know that you're talking about some variation of the Texas Instruments event manager peripheral is because I happen to have worked with it -- and I could be wrong. _Always_ tell what processor you're using. It may be the only processor in the world to you, but it isn't the only processor in the world. Just because the processor says it's a "DSP" doesn't mean you're _doing_ DSP -- in this case you're not; you're doing plain ol' embedded code writing, and comp.arch.embedded would be a better place to post. _If_ you're talking about the TMS320F2812, or a substantially similar processor, then T1CMPR and CMPR1 control two entirely different sets of pins -- T1CMPR controls a simple PWM, while CMPR1 controls 1/3 of a three-phase motor control peripheral, which happens to drive not one, but _two_ pins, as well as doing a whole bunch of other interesting stuff. -- Tim Wescott Control system and signal processing consulting www.wescottdesign.com
Reply by ●April 16, 20102010-04-16
Codefragment wrote:> Can someone tell me the difference between these two?I can, but I won't tell you.> My guess is that > T1CMPR initializes the compare value while CMPR1 allows you to change the > value.My guess is that you should go and read the manual. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Reply by ●April 16, 20102010-04-16
>Codefragment wrote: >> Can someone tell me the difference between these two? My guess is that >> T1CMPR initializes the compare value while CMPR1 allows you to changethe>> value. > >The _only_ reason that I know that you're talking about some variation >of the Texas Instruments event manager peripheral is because I happen to >have worked with it -- and I could be wrong. > >_Always_ tell what processor you're using. It may be the only processor >in the world to you, but it isn't the only processor in the world. > >Just because the processor says it's a "DSP" doesn't mean you're _doing_ >DSP -- in this case you're not; you're doing plain ol' embedded code >writing, and comp.arch.embedded would be a better place to post. > >_If_ you're talking about the TMS320F2812, or a substantially similar >processor, then T1CMPR and CMPR1 control two entirely different sets of >pins -- T1CMPR controls a simple PWM, while CMPR1 controls 1/3 of a >three-phase motor control peripheral, which happens to drive not one, >but _two_ pins, as well as doing a whole bunch of other interestingstuff.> >-- >Tim Wescott >Control system and signal processing consulting >www.wescottdesign.com >Sorry, you are correct I am using the TMS320F2812. I was provided code for a lab in school and they use the cmpr1 and T1CMPR. The board is connected to an H-Bridge to drive a small dc motor. If I understand you correctly, which I may not, the T1CMPR is the only thing I should be using for this application. Thank you for your help!!
Reply by ●April 16, 20102010-04-16
Codefragment wrote:>> Codefragment wrote: >>> Can someone tell me the difference between these two? My guess is that >>> T1CMPR initializes the compare value while CMPR1 allows you to change > the >>> value. >> The _only_ reason that I know that you're talking about some variation >> of the Texas Instruments event manager peripheral is because I happen to >> have worked with it -- and I could be wrong. >> >> _Always_ tell what processor you're using. It may be the only processor >> in the world to you, but it isn't the only processor in the world. >> >> Just because the processor says it's a "DSP" doesn't mean you're _doing_ >> DSP -- in this case you're not; you're doing plain ol' embedded code >> writing, and comp.arch.embedded would be a better place to post. >> >> _If_ you're talking about the TMS320F2812, or a substantially similar >> processor, then T1CMPR and CMPR1 control two entirely different sets of >> pins -- T1CMPR controls a simple PWM, while CMPR1 controls 1/3 of a >> three-phase motor control peripheral, which happens to drive not one, >> but _two_ pins, as well as doing a whole bunch of other interesting > stuff. >> -- >> Tim Wescott >> Control system and signal processing consulting >> www.wescottdesign.com >> > > Sorry, you are correct I am using the TMS320F2812. I was provided code for > a lab in school and they use the cmpr1 and T1CMPR. The board is connected > to an H-Bridge to drive a small dc motor. If I understand you correctly, > which I may not, the T1CMPR is the only thing I should be using for this > application. Thank you for your help!!That depends on which pins connect -- read the pile of manuals, and chase down which segments of the Event Manager talk to the pins that drive the H bridge. You can probably limit yourself to the Event Manager manual and the processor's Data Manual (I think that's what they call the extended data sheet). The Event Manager will tell you the names of the pin(s) you need to look at, while the processor's data manual will tell you where those pins go on your particular chip. -- Tim Wescott Control system and signal processing consulting www.wescottdesign.com
Reply by ●April 16, 20102010-04-16
Vladimir Vassilevsky wrote:> > > Codefragment wrote: > >> Can someone tell me the difference between these two? > > I can, but I won't tell you. > >> My guess is that >> T1CMPR initializes the compare value while CMPR1 allows you to change the >> value. > > My guess is that you should go and read the manual.Pile -o- manuals. This is TI. -- Tim Wescott Control system and signal processing consulting www.wescottdesign.com
Reply by ●April 16, 20102010-04-16
On 16 apr, 04:35, Tim Wescott <t...@seemywebsite.now> wrote: ***YOU*** were accusing ***ME*** of being grumpy...?!?!? You owe me a beer! Rune
Reply by ●April 16, 20102010-04-16
Rune Allnor wrote:> On 16 apr, 04:35, Tim Wescott <t...@seemywebsite.now> wrote: > > ***YOU*** were accusing ***ME*** of being grumpy...?!?!? > > You owe me a beer! > > RuneWell, come over and get it! Once you hijack the ship, find out it's draft, and we'll figure out if you have to stop at Astoria, North Portland, or if you can get all the way up to the Willamette Falls. Then I'll know where to come pick you up. Of course the most upstream place to dock a big ship would be North Portland, but a launch will take you up to the boat ramp at Clackamette park. That's the most convenient place for me to pick you up, and is less than a mile from the nearest McMenamins. -- Tim Wescott Control system and signal processing consulting www.wescottdesign.com
Reply by ●April 16, 20102010-04-16
On 16 apr, 19:55, Tim Wescott <t...@seemywebsite.now> wrote:> Rune Allnor wrote: > > On 16 apr, 04:35, Tim Wescott <t...@seemywebsite.now> wrote: > > > ***YOU*** were accusing ***ME*** of being grumpy...?!?!? > > > You owe me a beer! > > > Rune > > Well, come over and get it! > > Once you hijack the ship, find out it's draft, and we'll figure out if > you have to stop at Astoria, North Portland, or if you can get all the > way up to the Willamette Falls. �Then I'll know where to come pick you up. > > Of course the most upstream place to dock a big ship would be North > Portland, but a launch will take you up to the boat ramp at Clackamette > park. �That's the most convenient place for me to pick you up, and is > less than a mile from the nearest McMenamins.Bah! With the current Icelandic volcano (the ash cloud will hit the US in a forthnight or two) it's far more convenient you get into a coanoe, ride the gulf stream, take left at Hitra island, get in the fjord, then right up the Nidelva river, bank at Bakklandet and then walk straight up the bank and I might **just** - if you're lucky - have two miutes to spare to collect the beer at the 'Den Gode Nabo' pub just across the river from the cathedral. That one was for real. 'Den Gode Nabo' is the best pub in town. Rune
Reply by ●April 16, 20102010-04-16
On 16 apr, 21:14, Rune Allnor <all...@tele.ntnu.no> wrote:> That one was for real. 'Den Gode Nabo' is the best pub in town.Some images from the pub: http://www.dengodenabo.com/index.php?p=35-35-32 Probably one of the best beer selections in town; certainly one of the most fascinating jukeboxes: I have spent more than a few dozen hours contemplating the bubbles flowing in the frame of that jukebox... not a single straight angle in the building. But the food is good! Ridiculously good. Rune






