Jump to content


  • Content Count

  • Joined

  • Last visited

About Lacto

  • Rank

Recent Profile Visitors

696 profile views
  1. Lacto

    OV7670 and MSP430

    The I2C address was correct. I got ACKs after i switched the pullups from 10k to 1k and lowered the speed from 390 kHz to 63 kHz. At the Moment it works not reliably (weird readings) but at least I am a step further.
  2. Lacto

    OV7670 and MSP430

    Could solve the problem. The datasheet is wrong: For normal operation RESET has to be pulled up and not down ... Now I have a problem with I2C. The Camera gives me no ACK. void InitCam(void){ UCB0CTL1 = UCSWRST; UCB0CTL0 = UCMODE_3 + UCMST + UCSYNC; // I2C master mode UCB0CTL1 = UCSSEL_2 + UCSWRST; // Use SMCLK, keep SW reset //UCB0BR0 = 0x29; // < 400 kHz UCB0BR0 = 0x30; // << 400 kHz UCB0I2CSA = 0x21; // address UCB0CTL1 &= ~UCSWRST; //go to register UCB0CTL1 |= UCTR + UCTXSTT; // I2C TX,
  3. Lacto

    OV7670 and MSP430

    I am not touching the I2C at the moment. I am just listening to the camera output. Here is my code: #include <msp430.h> /* * main.c */ void main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer BCSCTL1 = RSEL3 + RSEL2 + RSEL1;//DCO2 + DCO1 + DCO0;//CALBC1_16MHZ; DCOCTL = DCO0 + DCO1;//XT2OFF + RSEL3 + RSEL2 + RSEL1 + RSEL0; BCSCTL2 = DIVS_3; P1DIR = BIT4 + BIT0; P1SEL = BIT4; P1OUT = BIT0; for(;{ _delay_cycles(10000000); P1OUT ^= BIT0; } } #include <msp430g2553.h> #include <ili9341b.h> unsigned int a = 0
  4. Hej guys (and gilrs also in case there are any), I am trying to connect a OV7670 (no FIFO) to a MSP430G2553 (3.3 V, 28 pins). As the OV7670 is only tolerant up to 2.8 V I use a MSP430G2231 at 2.8 V and ~11 MHz to feed the XCLK of the OV7670. Everything else should be handled by the 2553 (3.3 V). The 2231 works fine and I am listening to the output pins of the OV7670 with the 2553. The problem: there is nothing. Any ideas? http://www.ebay.de/itm/VGA-OV7670-CMOS-Camera-Module-Lens-CMOS-640X480-SCCB-W-I2C-Interface-Arduin-M35-/301724381213?hash=item46402cb01d:g:UPoAAOSwcu5UNjqp Reset is
  5. I am aware of these limitations. They do not really harm my plans. As far a I understand it is no problem to write more than one block, correct?
  6. Petit FatFs does not need 512 bytes of RAM. http://forum.43oh.com/topic/1427-petitefs-fatfs-sdcard-usci-code/
  7. Hello, I would like to start using SD-cards in my MSP430-projects. I have read there is Petit FatFs ported to the MSP430g2553. I already checked the files and found the code quite messy and difficult to guess how to use it. There is an example in the forum including temperature logging but also sending the temperature to the computer. Does anyone has a SIMPLE program/project what is just opening a file, reading a something from the file and saving something (maybe the temperature)? PS: I am using CCS and a MSP430G2553
  8. So F5529LP, FR5969LP and FR4133 LP's work with all MSP430s. The old G2 launchpad just with MSP430F20xx, F21x2, F22xx, G2x01, G2x11, G2x21, G2x31, G2x53 according to http://www.ti.com/lit/ug/slau278u/slau278u.pdf And inofficially FR57xx, F5638, F6638 because of the same hardware of the MSP-EXP430FR5739. Did I miss any device for the G2 launchpad?
  9. There is a huge amount of TI-Launchpads on the market already. Does anyone has a list of compatible MSP430s for every Launchpad? What about MSP432? I just know the MSP-EXP430G2 works with FR57XX and G2XX1/2/3. Does the compatibility also depend on your software (CCS or Energia)?
  10. I have a problem with I2C and the MSP430G2553. Here is my Code: #include <msp430g2553.h> const unsigned char Init[] = {0xAE,0x81,0x07,0x20,0x01,0x21,0x00,0x7F,0x22,0x00,0x07,0x40,0xA0,0xA8,0x3F,0xC0,0xD3,0x00,0x8D,0x14,0xDA,0x12,0xD5,0x80,0xD9,0x22,0xDB,0x20,0xA6,0xA4,0xAF}; const unsigned char Mod[] = {0xA5}; void printC(const unsigned char* Array, unsigned int length){ UCB0CTL1 = UCSWRST; UCB0CTL0 = UCMODE_3 + UCMST + UCSYNC; // I2C master mode UCB0CTL1 = UCSSEL_2 + UCSWRST; // Use SMCLK, keep SW reset UCB0BR0 = 0x40; // < 100 kHz UCB0I2CSA =
  11. It is not really "better". The chip itself ist better but with the MSP-EXP430F5529LP you get the FET for all SBW-MSPs. You can actually build your own device (with or without boosters) and program more than just the chip on the board.
  12. Thanks RobG. It works.
  13. Hello, I try to write my own library for the MSP430G2553 and and the 2.2" ILI9341 display. I know RobG has made one but this project is basically for learning about LCDs and SPI. I took the code from http://www.elecfreaks.com/wiki/index.php?title=2.2S%22_TFT_LCD:_TFT01-2.2S and modified it for the MSP430G2553. It worked fine but only as solftware SPI. Now I want to use the hardware SPI. Here ist my code: #include <msp430g2553.h> #define LCD_MISO BIT1 #define LCD_CLK BIT4 #define LCD_MOSI BIT2 #define LCD_DC BIT0 #define LCD_CS BIT3 #define LCD_REST BIT5 void LCD_Writ_Bus
  • Create New...