Jump to content
43oh

nathanpc

Members
  • Content Count

    4
  • Joined

  • Last visited

About nathanpc

  • Rank
    Noob Class

Contact Methods

  • Website URL
    http://about.me/nathanpc

Profile Information

  • Location
    Brazil
  • Github
    http://github.com/nathanpc
  1. For the past 4 hours I've been trying to troubleshoot a I2C communication between my MSP430G2335 and a DS1307 (powered from a external 5V PSU). This is the code I'm using (it uses alanbarr I2C library): #include <msp430g2553.h> #include "i2c.h" void main() { WDTCTL = WDTPW + WDTHOLD; // Disable WDT. BCSCTL1 = CALBC1_1MHZ; // 1MHz clock. DCOCTL = CALDCO_1MHZ; BCSCTL2 &= ~(DIVS_3); // SMCLK = DCO = 1MHz. i2cSetupPins();//0x68 i2cSetupTx(0x68); i2cTransmit(0, 1); i2cSetupRx(0x68); char t[100]; i2cReceive(t, 1); // Nothing. Just for testing. } The problem is tha
  2. Thanks very much for the warm welcome!
  3. For my next project I have to use a Nokia 5110 LCD with a MSP430G2553. After searching for a while on the internet I came across RobG's SPI-based driver. It's a great driver, but the problem is that I'll be using a I2C chip in this project too, so I decided to create a bit-bang driver. The code is extremely well documented and you should easily be able to use it for anything you want. Here's the GitHub repo: msp430-nokia-5110.
×
×
  • Create New...