Jump to content

nesslersreagent

Members
  • Content Count

    9
  • Joined

  • Last visited

About nesslersreagent

  • Rank
    Noob Class
  1. Hi, I've designed a circuit to produce a high voltage, high frequency sine wave from a low voltage square, produced by a microcontroller(Stellaris Launchpad). I've used a simple LC oscillator as a voltage magnifier. Voltage input to LC circuit = 3.3v (peak to peak) Voltage out = 54.42v (peak to peak) Resonance frequency = 355kHz The voltage generator produces a square wave Vmax=3.3v, Vmin=0v, with an internal resistance of 20k ohms at a frequency of 355kHz. Duty cycle is 50%. to simulate the microcontrollers output pin. The buffer IC used, is the LMH6321. Is this circuit effective? Are there any modifications or improvements to it? Any alternative circuits? Also, will the current circuit be safe to interface to the microcontroller (no chances of over heating or short circuiting)?
  2. nesslersreagent

    TivaC sample ADC code problem

    Thanks Lyon for your help. Most helpful.
  3. nesslersreagent

    TivaC sample ADC code problem

    Hi, I have modified the code as per Lyon's suggestions and it works! Thanks. Also I've realised that the ADC speed must be changed before the ADC peripheral is enabled. This was the prime cause of all my troubles. Output: 1 2 3 4 5 6 7 8 Code: #include "Energia.h" #include "driverlib/sysctl.h" #include "driverlib/adc.h" void setup() { Serial.begin(115200); Serial.println("1"); //set the speed to 1Msps. SysCtlADCSpeedSet(SYSCTL_ADCSPEED_1MSPS); //enable the adc0 peripherial. Serial.println("2"); SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE); GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3); Serial.println("3"); //set the auto avergage to 64. ADCHardwareOversampleConfigure(ADC0_BASE, 64); Serial.println("4"); //before setting up I must disable the sequence 3. ADCSequenceDisable(ADC0_BASE, 3); Serial.println("5"); //set the sequence to use (adc0 sequence 3). ADCSequenceConfigure(ADC0_BASE, 3, ADC_TRIGGER_PROCESSOR, 0); Serial.println("6"); //set up the sequence step. //set up the last step and start an interrupt when the conversion it's over. ADCSequenceStepConfigure(ADC0_BASE, 3, 0, ADC_CTL_CH0 | ADC_CTL_END); Serial.println("7"); //enable the sequence again! ADCSequenceEnable(ADC0_BASE, 3); Serial.println("8"); } void loop() { }
  4. nesslersreagent

    TivaC sample ADC code problem

    Hi, I've recently upgraded my Energia IDE to the latest release 0101E0011. I'm using the Stellaris Launchpad with lm4f120h5qr. My sample ADC code doesn't seem to work right. Worked well in the previous release of Energia. The code compiles properly but does not produce the right output. The only changes made were to change "ADC_BASE" to "ADC0_BASE" as required. I've added Serial output code for debugging purposes. The serial output produced is: 1 2 3 Code: #include "Energia.h" #include "driverlib/sysctl.h" #include "driverlib/adc.h" void setup() { Serial.begin(115200); Serial.println("1"); //enable the adc0 peripherial. SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0); Serial.println("2"); //set the speed to 1msps. SysCtlADCSpeedSet(SYSCTL_ADCSPEED_1MSPS); Serial.println("3"); //set the auto avergage to 64. ADCHardwareOversampleConfigure(ADC0_BASE, 64); Serial.println("4"); //before setting up I must disable the sequence 3. ADCSequenceDisable(ADC0_BASE, 3); Serial.println("5"); //set the sequence to use (adc0 sequence 3). ADCSequenceConfigure(ADC0_BASE, 3, ADC_TRIGGER_PROCESSOR, 0); Serial.println("6"); //set up the sequence step. //set up the last step and start an interrupt when the conversion it's over. ADCSequenceStepConfigure(ADC0_BASE, 3, 0, ADC_CTL_TS | ADC_CTL_IE | ADC_CTL_END); Serial.println("7"); //enable the sequence again! ADCSequenceEnable(ADC0_BASE, 3); Serial.println("8"); } void loop() { }
  5. nesslersreagent

    Launchpad USB example and documentation additions/labs

    Much appreciated! Keep it up!
  6. nesslersreagent

    Sample UDEV file for Stellaris Launchpad

    Thanks, That "add user to dialout group" did the trick. Now it works perfectly. And speaking of temperature sensor code, I am actually using your code and it's simple/brilliant! I intend to do more research on Stellarisware and possibly port some over to Energia. Thanks again. Cheers, Shaun
  7. nesslersreagent

    Sample UDEV file for Stellaris Launchpad

    Hi Bernard, Thanks for your solution. My Ubuntu(12.04 LTS) installation now allows me to program my Stellaris Launchpad via Energia. No ICDI driver problems anymore. But I still have to manually enter the command "sudo chmod 666 /dev/ttyACM0" in the terminal else my Launchpad's serial connection is not available in the Energia IDE. This is not a problem but it would help if I could automate this somehow. Note: I'm trying to read serial data(temperature sensor) from the Stellaris via the serial port, so I've got to enable my serial port for this. Cheers, Shaun
  8. Hi, I'm trying to get my Stellaris Launchpad to work with the Energia IDE. I'm told to upload programs and to run the serial port I've got to create a udev entry. I'm relatively new to linux (although not Ubuntu) so could anyone please provide me with a sample udev file. My Stellaris board's on port /dev/ttyACM0, VID=1cbe and PID=00fd. As of now I'm using this -> # This file allows non-root access to TI stellaris launchpad # See udev(7) for syntax. # SUBSYSTEM=="usb",ATTRS{idVendor}=="1cbe",ATTRS{idP roduct}=="00fd",MODE="0666" KERNEL=="ttyACM0",ATTRS{idVendor}=="1cbe",ATTRS{id Product}=="00fd",MODE="0666" # Thanks in advance
  9. Hi, Is it possible to use the MSP430 launchpad as a "usb to serial/TTL" interface so that I could use the UART of some other chip/deice to communicate with the PC? Like connecting the respective TXD and RXD pins(of the device) to the launchpad. If so, could you please elaborate on this setup?
×