Jump to content

Search the Community

Showing results for tags 'ADS1118'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 2 results

  1. I'm trying to combine some Energia libraries for the ADS1118 ADC and the SPI serial LCD included on the ADS1118 Booster Pack. Using simple digitalWrite() calls, I'm able to write to the LCD, but I'm trying to switch to using the Energia SPI library. The documentation for SPI.begin() says I can set a slave select pin; however, the compiler rejects a call to SPI.begin(LCD_CS) because there is no SPI.begin(int slaveSelectPin) defined. With the following code, the default pin 2 slave select appears to be used, because it happens to be connected to the buzzer on the ADS1118 Booster Pack, and I can hear it. Judging from the description, Energia commit 5c4dab5 seems to be aimed at fixing this, but it still doesn't work as expected. // Stellaris LaunchPad with ADS1118 Booster Pack #include <SPI.h> int LCD_RS = 12; // Register Select int LCD_CS = 13; // LCD chip select int ADC_CS = 8; // ADS1118 chip select int SI = 15; // Slave Serial data Input int SO = 14; // Slave Serial data Output int SCL = 7; // Serial data CLock int BUZZER = 2; // ADS1118 buzzer pin void setup() { Serial.begin(9600); Serial.println("# -+-+- RESET -+-+-"); // initialize the LCD pinMode(LCD_RS, OUTPUT); pinMode(SI, OUTPUT); pinMode(SO, INPUT); pinMode(SCL, OUTPUT); pinMode(LCD_CS, OUTPUT); delay(10); writecom(0x30); // wake up writecom(0x30); // wake up writecom(0x30); // wake up writecom(0x39); // function set writecom(0x14); // internal osc frequency writecom(0x70); // contrast writecom(0x56); // power control writecom(0x6D); // follower control delay(10); writecom(0x0C); // display on writecom(0x01); // clear delay(5); writecom(0x06); // entry mode delay(10); } void loop() { Serial.print("# loop "); lcdClear(); lcdPrint("Hello world!"); sleep(1000); } void lcdClear() { writecom(0x01); delay(5); } void lcdMoveTo(unsigned int x) { writecom(0x80 + (x & 0x7f)); delay(5); } void lcdPrint(char *s) { while(*s != 0) { lcdPrintChar(*s++); } } void lcdPrintChar(char c) { writedata(c); delay(1); } void writecom(int d) { SPI.begin(); // SPI.begin(LCD_CS) does not work SPI.setClockDivider(SPI_CLOCK_DIV128); digitalWrite(LCD_CS, LOW); digitalWrite(LCD_RS, LOW); // LOW = command SPI.transfer(d); digitalWrite(LCD_CS, HIGH); SPI.end(); // SPI.end(LCD_CS) does not work } void writedata(int d) { SPI.begin(); // SPI.begin(LCD_CS) does not work SPI.setClockDivider(SPI_CLOCK_DIV128); digitalWrite(LCD_CS, LOW); digitalWrite(LCD_RS, HIGH); // HIGH = data SPI.transfer(d); digitalWrite(LCD_CS, HIGH); SPI.end(); // SPI.end(LCD_CS) does not work }
  2. I've just noticed that the ADS1118 Booster Pack's J4 connector has long pins extending below the PCB, and one of them can contact the top of the VDD jumper. It looks like a possible short could occur between these two points. For now, I've stuck a business card in between to keep them from touching. Do the Booster Pack design guidelines include any bottom-side exclusion areas for downward-extending pins?
×