Show Posts
Pages: [1]
1  Using Arduino / Storage / Re: ATMEL 93c46 on: March 20, 2012, 12:53:55 am
but how did i make this code work for AT93c46 any one guys
 thanks
2  Using Arduino / Storage / Re: I2C EEPROM AT24C16 on: March 17, 2012, 05:36:31 am
any one guys please
3  Using Arduino / Storage / I2C EEPROM AT24C16 on: March 16, 2012, 09:08:15 am
hey
     
      i was working with AT24C32 eeprom wrote a code for that and it work pretty well,but now i am working with 24c16
      when i run the same code interfacing 24c16 the code stops working.can anyone tell me where the threat is
     
Code:
#include <Wire.h>
int ledpin =13;

byte high = 0x00, low=0x00;
byte dataword[]={"Hello World!"};

void setup()
{
  pinMode(ledpin ,OUTPUT);
  Wire.begin();
  Serial.begin(9600);
}

void loop()
{
   digitalWrite(ledpin ,HIGH);
  for (int i=0;i<=11;i++)
 {
    Wire.beginTransmission(0x50);
    Wire.write(high);
    Wire.write(low);
    Wire.write(dataword[i]);
    Wire.endTransmission();
    delay(5);
    low++;
 }
 low=0x00;
 for (int i=0;i<=11;i++)
 {
  Wire.beginTransmission(0x50);
  Wire.write(high);
  Wire.write(low);
  Wire.endTransmission();
  Wire.requestFrom(0x50 ,1);
  char data=Wire.read();
  delay(5);
  Serial.print("DATA  ");
  Serial.print(data);
  Serial.print("  LO ADD  ");
  Serial.println(low);
  delay(100);
  low++;
 }
 digitalWrite(ledpin ,LOW);
 while(1);
}

     have a great day all
     thanks
     
       
4  Using Arduino / Storage / ATMEL 93c46 on: March 13, 2012, 02:52:04 am
hey
        i wanted to work with all the microwire eeprom available,till now 93c56 and 93c66 is done,but
having trouble with 93c46.
     
Code:
//difining pins for eeprom   
int CLOCK =4;         
int DATA_OUT =3;
int DATA_IN = 2;
int CHIP_SEL =5;

int high = 0,low =0;     //high and low address
byte dataword[]={"hello world!"};    //data to send in eeprom

byte READ  = 0b1100;                //read instruction
byte WRITE = 0b1010;               //write instruction
byte EWEN  = 0b10011;         //erase write enable instruction

void setup(){
  pinMode(CLOCK ,OUTPUT);
  pinMode(DATA_OUT ,OUTPUT);
  pinMode(DATA_IN ,INPUT);
  pinMode(CHIP_SEL ,OUTPUT);
  digitalWrite(CHIP_SEL ,LOW);
  Serial.begin(9600);
}

void loop()
{

  digitalWrite(CHIP_SEL ,HIGH);                 
  shiftOut(DATA_OUT,CLOCK,MSBFIRST,EWEN);     //sending EWEN instruction
  digitalWrite(CHIP_SEL ,LOW);
  delay(10);
  for(int i=0;i<=13;i++)
  {
    digitalWrite(CHIP_SEL ,HIGH);
    shiftOut(DATA_OUT,CLOCK,MSBFIRST,WRITE); //sending WRITE instruction
    shiftOut(DATA_OUT,CLOCK,MSBFIRST,low);   //sending low address
    shiftOut(DATA_OUT,CLOCK,MSBFIRST,dataword[i]); //sendind data
    digitalWrite(CHIP_SEL ,LOW);
    delay(100);
    low++;       //incrementing low address
  }
  low=0;
  for (int i=0;i<=13;i++)
  {
    digitalWrite(CHIP_SEL ,HIGH);
    shiftOut(DATA_OUT,CLOCK,MSBFIRST,READ); //sending READ instruction
    shiftOut(DATA_OUT,CLOCK,MSBFIRST,low);   //sending low address
    byte incoming = shiftIn(DATA_IN,CLOCK,MSBFIRST); //sendind data
    digitalWrite(CHIP_SEL ,LOW);
    low++;       //incrementing low address
    Serial.println(char(incoming));
  }
  while(1);
}

this code works for 93c56 and 93c66 ,but when i plug 93c46 it doesn't write and read properly.
so anyone can tell me what changes should i do in order to make this code work for 93c46.
 have a great day all
 thanks
 
5  Using Arduino / Storage / Re: Microchip 93lc56a and ST 93c56 on: March 09, 2012, 07:08:24 am
hey
 
     thanks for the reply   
    sorry i forget to code this ,now i have put in code and after that dataword [ i ] automatically comes up.this is a working code, works for 93lc56a but not work correctly  for 93c56

    thanks
 
6  Using Arduino / Storage / Microchip 93lc56a and ST 93c56 on: March 09, 2012, 04:57:52 am
hey
      
       this is my code for reading and writing from the microwire eeprom
      
Code:
int CLOCK =13;            
 int DATA_OUT =11;
 int DATA_IN = 12;
 int CHIP_SEL =10;

int high = 0x00,low = 0;              //high and low address
byte dataword[]={"Hello world!"};         //data to send in eeprom

byte READ  = 0b1100;                    //read instruction
byte WRITE = 0b1010;                    //write instruction
byte EWEN  = 0b10011000;                //erase write enable instruction
 
 void setup(){
    pinMode(CLOCK ,OUTPUT);
    pinMode(DATA_OUT ,OUTPUT);
    pinMode(DATA_IN ,INPUT);
    pinMode(CHIP_SEL ,OUTPUT);
    digitalWrite(CHIP_SEL ,LOW);
    Serial.begin(9600);
 }
 
 void loop()
 {
  
      digitalWrite(CHIP_SEL ,HIGH);                  
    shiftOut(DATA_OUT,CLOCK,MSBFIRST,EWEN);     //sending EWEN instruction
    shiftOut(DATA_OUT,CLOCK,MSBFIRST,0b0000); //the last 4 bits of EWEN ins  
    digitalWrite(CHIP_SEL ,LOW);
    delay(10);
     for(int i=0;i<=11;i++)
   {
     digitalWrite(CHIP_SEL ,HIGH);
     shiftOut(DATA_OUT,CLOCK,MSBFIRST,WRITE); //sending WRITE instruction
     shiftOut(DATA_OUT,CLOCK,MSBFIRST,low);   //sending low address
     shiftOut(DATA_OUT,CLOCK,MSBFIRST,dataword[i]); //sendind data
     digitalWrite(CHIP_SEL ,LOW);
     delay(100);
    low++;       //incrementing low address
   }
     low= 0;
     for (int i=0;i<=11;i++)
     {
     digitalWrite(CHIP_SEL ,HIGH);
     shiftOut(DATA_OUT,CLOCK,MSBFIRST,READ); //sending WRITE instruction
     //shiftOut(dataout,clock,MSBFIRST,high);  //sending high address
     shiftOut(DATA_OUT,CLOCK,MSBFIRST,low);   //sending low address
     byte incoming = shiftIn(DATA_IN,CLOCK,MSBFIRST); //sendind data
     delay(20);
     digitalWrite(CHIP_SEL ,LOW);
     low++;       //incrementing low address
     delay(2);
     Serial.println(char(incoming));
     }
    
      while(1);
 }

this program works fine for 93lc56a ,but when i connect ST 93c56 instead of Hello world! it write's
 eHll oowlr!d just invert's the data between 1 and 2 position 3 and 4 position and so on   . i don't     know what's wrong,i have tied the org pin to ground for x8 organization and  there is no org pin in 93lc56a microchip.
   any help on this would greatly appreciated
  have a great day all
       thanks
7  Using Arduino / Sensors / Re: IRremote library on: March 02, 2012, 05:17:37 am
thanks
           right on target,that was really helpful
       
          have a great day
       
8  Using Arduino / Sensors / Re: IRremote library on: March 02, 2012, 01:59:08 am
hey
         sorry for the delay,here some information.
         the color of the IRremote lib doesn't  turn orange.where the other lib I include has an orange
         color in it,and when i hit upload it says Error compiling.i compile all the examples but it says
         the same.
       
        good day
9  Using Arduino / Sensors / IRremote library on: February 29, 2012, 09:10:30 am
hey

       i wanted to do some cool stuff with my tv remote control,so i added IRremote lib .
       but it gives an error while compiling.can anybody guide me how to fix this.
      
         thanks
      have a great day

 
    
  
10  Using Arduino / Sensors / Re: Problem with IR receiver and Arduino Uno on: February 28, 2012, 08:20:12 am
hey
      i also wanted to work with ir receiver, but my  IRremote lib demo program doesn,t work
     can  u tell me why
 
      have a great day 
11  Using Arduino / Storage / Re: serial eeprom on: February 21, 2012, 03:14:34 am
hey
        thanks for this lib works fine.if u include some examples it wont take that much time to understand.

  have a good day.
12  Using Arduino / Storage / Re: serial eeprom on: February 12, 2012, 02:47:35 am
can u please tell me how to send instruction i think im not getting it.
13  Using Arduino / Storage / serial eeprom on: February 11, 2012, 08:50:28 am
hey

        I have this microchip 93LC56A eeprom.I want to read and write this eeprom .I have tried bunch of stuff.I have read
       its pdf all it says is . The 93LC56A powers up in the ERASE/WRITE
       Disable (EWDS) state. All programming modes must be preceded by an ERASE/WRITE Enable instruction.
       i have send (EWEN) instruction and then write instruction and then the data but it wont work at all.
       i know how to work with I2C eeprom  but its a different story,
       so please can anyone help me out here.

      thanks
        
Pages: [1]