Jump to content


  • Content Count

  • Joined

  • Last visited

About cromiumlake

  • Rank
    Advanced Member
  1. Hello There, I have modified one of the example files from Proffesor Valvano, I've got this file from: http://users.ece.utexas.edu/~valvano/arm/PWM_4C123.zip I have modified PWM0A_Init so I can see the output on PF3 (Green Led), here the most right comments indicate the changes that I have made: void PWM0A_Init(unsigned short period, unsigned short duty){ volatile unsigned long delay; SYSCTL_RCGCPWM_R |= 0x01<<1; // 1) activate PWM0 >>activate PWM1 SYSCTL_RCGCGPIO_R |= 0x01<<5; // 2
  2. Thank guys, I mange to find this excellent tutorial: http://homepages.ius.edu/RWISMAN/C335/HTML/msp430Polling.HTM http://www.tij.co.jp/mcu/jp/docs/mcuorphan.tsp?contentId=44948 I hope this help anyone
  3. Hello There, I'm trying to understand how to interact with a DC motor by changing the speed by PWM. I want to use a Potentiometer to change the speed. So far I have only the PWM working code for the motor. I have red some theory, but I'm looking for some explanatory code. Perhaps a tutorial that can make me started. Any suggestions? (Please don't point me to energia)
  4. IT works!!!.....When I give it a large enough duty cycle I don't know who decided to put me as an "Advanced Member"...?I'm certainly not sorry for the noise
  5. But, if it was fried would not work when connected directly to 5v line Please the attached picture and tell me what you think
  6. The motor requires 5V at 0.16A how about the motor with the transistor base @ 3.6v?....R: Dit not work, that settup is when I tried the 470 and 10 ohms
  7. Thanks for the tests, nice approach to troubleshooting. I dis the following tests: 470 ohms = fail 10 ohms = fail replace motor with led: just by touching the resistor the led goes on. If connect to Vcc goes on. If plugged LP ground does on. If Connected to anything goes on Now, I just don't get it hhahahha
  8. Yes I did try that. Do I have to configure some kind of pull up resistor perhaps?
  9. Hi There, I am testing the circuit that appears on Slaa120 (PWM DC Motor Control Using Timer_A of the MSP430), of course with some small modifications. ?I made the Darlington pair using 2N3904 transistors, the resistor is 1200ohms. To test the circuit, I connect the base to 5v and...the motor spins. In the other hand the code for PWM is working and I can test it on P1.6, I can see the LED on. My problem is that if I join the two parts, the motor does not spin (I connect the base to P1.6). I can only think that the MSP is not giving me enough power, but the 2N3904 does not need much.
  10. I was looking at the header file, but I can't find it mentioned as Unsigned....how do you know this, is it in any manual?, I just followed 32767 becasue I thought that I had to match the clock speed. The limitations on choosing a diiferent CCR0 values: does it come from the var type only, or do you have hardware constrains? Do you think that some outmnodes are better than others for a particular application (or suitable),: dc motors, steppers, servos, led etc? Please send a link to you video of polymorphic tune player Meanwhile I'm going to test the SLAA120 "PWM DC Motor Control Using
  11. I don't know about the generation gap, I'm clear that you intend no hostility. I think that perhaps your have a more trained eye, and some things looks obvious after a while. I think that the best way to explain is to place yourself into someone else's shoes, that's why I tried to explain you my frustration and confusion along with my query. But, anyways no hard feelings from my side...and I want to share some code (to all the noobs like me), that I think can be really helpful. The code is not all mine, I have edited ideas from different books. ------------------------------
  12. Once again, thanks for exaplining and for your time SimpleAVR Now I understand that table on the datasheet. You are right, I'm getting a bit confused. I can see CCR0 and CCR1 mentioned, on the line: TA1CCR0 = 50000; As I read it as TA1 on CCR0(making no sense), but certainly is not the case. How did you find CCR1?
  13. I don't know what is your problem jpnorair, you have used the 3 last posts using many words to push me away, explain the obvious and not adding anything of real value....that I'm sure you have plenty to say. It takes you the same amount of words to be helpful!
  • Create New...