Jump to content


  • Content Count

  • Joined

  • Last visited

About leetrieu

  • Rank
  • Birthday 12/06/1991

Contact Methods

  • Website URL

Profile Information

  • Gender
    Not Telling
  • Location
    Viet Nam
  • Sparkfun
    Try your best ! Let me see!
  • Github

Recent Profile Visitors

496 profile views
  1. Hello everybody !! I tried to calibrtion 1Hz on RTC BQ32000 of TI. The calibration process is described below. This calibration process does not works and I would like to know the way in which it should be done correctly. The steps taken during the calibration procedure were the following: 1. Write 0xE0 in the CAL_CFG1 Register during the initialization of the microcontroller . This was done in order to enable the test signal on the IRQ pin of the bq32000. bit 7 = OUT = 1 bit 6 = FT = 1 bit 5 = S = 1 bit 4, bit 3, bit 2, bit 1, bit 0 = CAL = 00000 2. Write 0xFF
  2. HI all !! Please guide me, how to makes 2 Msp430g2553 working together ???? I don't understand when i using i2C to interface, what is slave address?? and what is master address?? Thanks you so much !!
  3. Thanks you so much ! Maybe I understands your idea !!
  4. Thanks you ! I started new topic here, please give me your idea !! http://forum.43oh.com/topic/4412-help-how-to-make-2-devices-working-together-using-i2c/
  5. Hello everybody !! I have a problem with I2C. I don't known how to make 2 devices working together using the same I2C bus. this is my code to interface with RTC(BQ32000) //************************* void main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; conf_io(); conf_lcd(0); conf_clock(); i2c_init(0x68); //initialization I2C BQ32000 i2c_write(0x00,8,datawrite); //Set Time for BQ32000 while(1) { read_bq32000();//readtime from BQ32000 display_time(); //Show Time on LCD display_date();//Show Date on LCD } } a
  6. Thanks you so much !!! I sloved my problem with "read twice" and now it is really working !! Today, I have a problem with two I2C devices. There are RTC(BQ3200) and 24C04. I don't known, how do these two devices work together?? Please guide me !! Thanks all !!
  7. Thanks you so much !! It working but i have a little problem, please help me explain it ? I using below code to test: #include "msp430g2553.h" #include "I2C.c" unsigned char datawrite[3]={0x3f,0x13,0x21}; unsigned char dataread[4]; unsigned char tmp1,tmp2,tmp3,tmp4; void main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; P1DIR |= 0x0f; P1SEL |= BIT6 + BIT7; // Assign I2C pins to USCI_B0 P1SEL2|= BIT6 + BIT7; i2c_init(0x50); i2c_write(0x01,3,datawrite);//write 3 value from datawrite to 0x01,0x02 and 0x03 registers __delay_cycles(5
  8. Thanks for your answer !! But I sure I removed it, please review my code and tell me what happen with it?? I did used this I2C Library for my RTC BQ32000, it still working but with 24C04 it hang in that command. while (!(IFG2&UCB0TXIFG));
  9. I'm tired to interface 24C04 with msp430g2553. Please help me !! this is my hardware: This is code in main.c #include "msp430g2553.h" #include "I2C.c" unsigned char datawrite[2]={2,8}; unsigned char dataread[2]; unsigned char i,j; void main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; i2c_init(0xa0); i2c_write(0x00,2,datawrite); while(1) { i=dataread[0]; j=dataread[1]; } } When i debug it hang on command line: while (!(IFG2&UCB0TXIFG)); Please guide me !! Thanks all so much !! EEPRO
  10. Hi Touch ~!! Can you tell me how can i receive value when i press button on keypad??? you are using UART???? If i don't want to use UART, How can i save value of a key??? Thanks you so much !!!
  11. #include <Keypad.h> const byte ROWS = 4; //four rows const byte COLS = 3; //three columns char keys[ROWS][COLS] = { {'1','2','3'}, {'4','5','6'}, {'7','8','9'}, {'*','0','#'} }; byte rowPins[ROWS] = {P1_6,P1_7,P2_2,P1_0}; //connect to the row pinouts of the keypad byte colPins[COLS] = {P1_5,P1_4,P1_3}; //connect to the column pinouts of the keypad Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); void setup(){ Serial.begin(9600); } void loop(){ char key = keypad.getKey(); if (key){ Serial.println(key); } } can you help me modify this
  12. Thanks you so much !! Please tell me your idea about "Simple Digital clock"??? I want to design a simple digital clock using msp430. Hope all help me design it ?? Thanks all ! PS: So sorry, my english so bad !!
  13. Hello every body !!| I'm a new user of msp430. who can help me using 4x4 matrix keypad please?? I have a project need interface with 4x4 keypad. please give me a single sample !! Thanks alll!
  • Create New...