Jump to content

taketa

Members
  • Content Count

    11
  • Joined

  • Last visited

About taketa

  • Rank
    Member

Profile Information

  • Location
    spb
  • Interests
    beer robot
  1. many thanks to you. indeed it's no address 0x70 but 0x38. you really cool.you. you have a flair for bugs. I spent a week still did not understand, and in 5 minutes told why. why is this not recorded in the library reference wire.h. why do I have so little brains God sent aaaaaaaaaa Huge thanks also to all the other participants! Sowtware I2C work!
  2. I disconnected my lcd from launchpad i2c_scanner Arduino get the same result Scanning... I2C device found at address 0x01 ! I2C device found at address 0x02 ! I2C device found at address 0x03 ! I2C device found at address 0x04 ! I2C device found at address 0x05 ! I2C device found at address 0x06 ! I2C device found at address 0x07 ! I2C device found at address 0x08 ! I2C device fo
  3. I found i2c_scanner Arduino : #include <Wire.h> void setup() { Wire.begin(); Serial.begin(9600); Serial.println("\nI2C Scanner"); } void loop() { byte error, address; int nDevices; Serial.println("Scanning..."); nDevices = 0; for(address = 1; address < 127; address++ ) { // The i2c_scanner uses the return value of // the Write.endTransmisstion to see if // a device did acknowledge to the address. Wire.beginTransmission(address); error = Wire.endTransmission(); if (error == 0) { Serial.print("I2C device found at address 0x"); if (address<16) Serial.print("0"); Serial.print(address,HEX); Serial.println(" !"); nDevices++; } else if (error==4) { Serial.print("Unknow error at address 0x"); if (address<16) Serial.print("0"); Serial.println(address,HEX); } } if (nDevices == 0) Serial.println("No I2C devices found\n"); else Serial.println("done\n"); delay(5000); // wait 5 seconds for next scan } and Uploaded : Scanning... I2C device found at address 0x01 ! I2C device found at address 0x02 ! I2C device found at address 0x03 ! I2C device found at address 0x04 ! I2C device found at address 0x05 ! I2C device found at address 0x06 ! I2C device found at address 0x07 ! I2C device found at address 0x08 ! I2C device found at address 0x09 ! I2C device found at address 0x0A ! I2C device found at address 0x0B ! I2C device found at address 0x0C ! I2C device found at address 0x0D ! I2C device found at address 0x0E ! I2C device found at address 0x0F ! I2C device found at address 0x10 ! I2C device found at address 0x11 ! I2C device found at address 0x12 ! I2C device found at address 0x13 ! I2C device found at address 0x14 ! I2C device found at address 0x15 ! I2C device found at address 0x16 ! I2C device found at address 0x17 ! I2C device found at address 0x18 ! I2C device found at address 0x19 ! I2C device found at address 0x1A ! I2C device found at address 0x1B ! I2C device found at address 0x1C ! I2C device found at address 0x1D ! I2C device found at address 0x1E ! I2C device found at address 0x1F ! I2C device found at address 0x20 ! I2C device found at address 0x21 ! I2C device found at address 0x22 ! I2C device found at address 0x23 ! I2C device found at address 0x24 ! I2C device found at address 0x25 ! I2C device found at address 0x26 ! I2C device found at address 0x27 ! I2C device found at address 0x28 ! I2C device found at address 0x29 ! I2C device found at address 0x2A ! I2C device found at address 0x2B ! I2C device found at address 0x2C ! I2C device found at address 0x2D ! I2C device found at address 0x2E ! I2C device found at address 0x2F ! I2C device found at address 0x30 ! I2C device found at address 0x31 ! I2C device found at address 0x32 ! I2C device found at address 0x33 ! I2C device found at address 0x34 ! I2C device found at address 0x35 ! I2C device found at address 0x36 ! I2C device found at address 0x37 ! I2C device found at address 0x38 ! I2C device found at address 0x39 ! I2C device found at address 0x3A ! I2C device found at address 0x3B ! I2C device found at address 0x3C ! I2C device found at address 0x3D ! I2C device found at address 0x3E ! I2C device found at address 0x3F ! I2C device found at address 0x40 ! I2C device found at address 0x41 ! I2C device found at address 0x42 ! I2C device found at address 0x43 ! I2C device found at address 0x44 ! I2C device found at address 0x45 ! I2C device found at address 0x46 ! I2C device found at address 0x47 ! I2C device found at address 0x48 ! I2C device found at address 0x49 ! I2C device found at address 0x4A ! I2C device found at address 0x4B ! I2C device found at address 0x4C ! I2C device found at address 0x4D ! I2C device found at address 0x4E ! I2C device found at address 0x4F ! I2C device found at address 0x50 ! I2C device found at address 0x51 ! I2C device found at address 0x52 ! I2C device found at address 0x53 ! I2C device found at address 0x54 ! I2C device found at address 0x55 ! I2C device found at address 0x56 ! I2C device found at address 0x57 ! I2C device found at address 0x58 ! I2C device found at address 0x59 ! I2C device found at address 0x5A ! I2C device found at address 0x5B ! I2C device found at address 0x5C ! I2C device found at address 0x5D ! I2C device found at address 0x5E ! I2C device found at address 0x5F ! I2C device found at address 0x60 ! I2C device found at address 0x61 ! I2C device found at address 0x62 ! I2C device found at address 0x63 ! I2C device found at address 0x64 ! I2C device found at address 0x65 ! I2C device found at address 0x66 ! I2C device found at address 0x67 ! I2C device found at address 0x68 ! I2C device found at address 0x69 ! I2C device found at address 0x6A ! I2C device found at address 0x6B ! I2C device found at address 0x6C ! I2C device found at address 0x6D ! I2C device found at address 0x6E ! I2C device found at address 0x6F ! I2C device found at address 0x70 ! I2C device found at address 0x71 ! I2C device found at address 0x72 ! I2C device found at address 0x73 ! I2C device found at address 0x74 ! I2C device found at address 0x75 ! I2C device found at address 0x76 ! I2C device found at address 0x77 ! I2C device found at address 0x78 ! I2C device found at address 0x79 ! I2C device found at address 0x7A ! I2C device found at address 0x7B ! I2C device found at address 0x7C ! I2C device found at address 0x7D ! I2C device found at address 0x7E !
  4. I ----------------------------------------in EAR i do: /* Initialize the display */ void LCD_Init(void) { I2C_Start(); I2C_Write( 0x70 ); // Slave address indicator+ 0 to set the recording mode in the indicator I2C_Write( 0xCE ); // 11001110b setting the operation mode indicator // 1 - says it's not necessarily the team // 10-sets the mode of operation of the indicator // 0-normal mode // 1-enabled display // 1-1/2 bias // 10-1:2 multiplex I2C_Write( 0xE0 ); // 11100000b selection device inside the indicator // 1-not necessarily the team // 1100-team selection device // 000-one of 8 possible subdevice I2C_Write( 0xF8 ); // 11111000b selection of the memory Bank // 1-not necessarily the team // 1111-bank select // 000 - Bank address I2C_Write( 0xF0 ); // 11110000b blink // 1-not necessarily the team // 1110-blink // 000-blink off I2C_Stop(); } ---------------------------and void LCD_Print(int n, unsigned char sym, unsigned char DP ) { I2C_Start(); I2C_Write( 0x70 ); // Slave address indicator I2C_Write( 0xE0 ); // select the subdevice I2C_Write( 0x00+(n-1)*4 ); // Set data pointer in position for the n-th character if (DP == 1) I2C_Write( Logo10[sym]+1); else I2C_Write( Logo10[sym]); I2C_Stop(); } in Energia I try to do the same
  5. may i need to configure anything addition for ?nergy before wire.begin()?
  6. yes pcf supply range from 2 to 6v and launchpad and pcf has one supply via usb. electric schematic is correct and working with EAR program(software i2c ), but Energia Wire lib doesn't work
  7. intelligent or not energia i2c don't work // +-\/-+ // VCC 1| |20 GND // (A0) P1.0 2| |19 XIN // (A1) P1.1 3| |18 XOUT // (A2) P1.2 4| |17 TEST // (A3) P1.3 5| |16 RST# // (A4) P1.4 6| |15 P1.7 (A7)(SCL) through Pull-up 10K resistor connected to LCD" // (A5) P1.5 7| |14 P1.6 (A6)(SDA) through Pull-up 10K resistor connected to LCD" // P2.0 8| |13 P2.5 // P2.1 9| |12 P2.4 // P2.2 10| |11 P2.3 // +----+ void loop(void) { Wire.begin(); Wire.beginTransmission(_address); Wire.write( 0xCE ); //mode command Wire.write( 0xE0 ); Wire.write(0xF8 ); Wire.write(0xF0 ); Wire.endTransmission(); delay(10); Wire.beginTransmission(_address); Wire.write( 0x00 ); //data command for(int i=0; i<10; i++) { Wire.write(0x74); //data } Wire.endTransmission(); delay(500); }
  8. what did you mean an intelligent manner ? i will correct my post
  9. hello all! why are energia wire lib don't work? I have connected my launchpad 430g2553 to PCF8576 LCD 10. P1_6 to SDL and P1_7 to SDA . I try to write some code to use Software I2C Library but it did't work in energia . But EAR lib for software i2c work correct way. what i can to do to connect LCD with energia ? no software no hardware energia code don't work what 's the reason?
×
×
  • Create New...