Jump to content
43oh

demonGeek

Members
  • Content Count

    7
  • Joined

  • Last visited

Reputation Activity

  1. Like
    demonGeek reacted to RobG in MSP430 servo control   
    No, servo input is a regular digital input, no diode is required.
    The way the servo works is by comparing width of the pulse form the input with the pulse generated by the internal one shot timer. When motor is moving, it is turning it's internal pot which then adjusts timer's width. When both pulses are equal, motor stops.
  2. Like
    demonGeek reacted to nobody in MSP430 servo control   
    Controll input is not inductive. In the servo is its own controller (or simple PID regulator) and power bridge to motor control.
  3. Like
    demonGeek reacted to RobG in MSP430 servo control   
    Here's how you can do it

    The 2 transistor circuit is non-inverting so it should work without any changes, 1 transistor circuit will require inverting PxOUT signal. There's no need for power transistors, 2N2222 or 2N3904 will do just fine. Base resistors are optional, but some say that they have blown their chips when there was no base resistor (never happened to me.) Collector resistors can be anything >1k, basically higher value will draw less current, but the speed will be affected. If you don't care about higher current usage, use 2.2k.
  4. Like
    demonGeek reacted to RobG in PWM: Which Output Pin?   
    Module's outputs/inputs are hardwired to specific pin(s) and you cannot change it, you can only enable/disable them. As gwdeveloper already wrote, see device specific datasheet, there's a terminal function table there. Also, enabling pin function is not always done the same way, sometimes you have to configure module's registers, sometimes you simply set the PxSEL1 register.
  5. Like
    demonGeek reacted to nexusone1984 in PWM: Which Output Pin?   
    Best advice is to download the datasheet for a list of what ports have access to what functions.
     
    While all port pins support general input/output.
     
    The timer example used to create a PWM output, uses the internal timer's.
    Example: Timer_A0 out is only available on specific pins (P1.1 and P1.5), the same with Timer_A1 is (P1.2 and P1.6), which give you two options.
     
    When starting a project best to look at what I/O functions you will be using first, and then write the code.
     
    If you used software to generate the PWM, then you could use any of the port pins.
     
    Many of the TI demo's show off using the device in low power mode, but no reason you have to use them that way.
  6. Like
    demonGeek reacted to gwdeveloper in PWM: Which Output Pin?   
    P1.2 is Timer_A2.TA1
     
    You might be interested in trying the Grace plugin for CCS to learn more about the GPIO. I used it to get the basics down of which pins do what.
    http://focus.ti.com/docs/toolsw/folders/print/grace.html?DCMP=Grace&HQS=Other+EM+grace
    or just use the datasheet
    http://focus.ti.com/lit/ds/symlink/msp430g2231.pdf page4 has the pinouts
×
×
  • Create New...