Jump to content
43oh

majeddotcom

Members
  • Content Count

    12
  • Joined

  • Last visited

About majeddotcom

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks bro, That was so helpful. I asked another question in another topic. but didn`t get my answer. so I write it again: when I try to to see what will be my maximum frequency, with 16MHZ I just get around 200khz . am I doing anything wrong? also I figured out that the timer starts to count again when it goes out of ISR. is it possible that when it came inside the interrupt it reset the timer and start the counting? in this case I can have higher frequency. here is my code: ============================================================================================
  2. one more question! you said I need 4Mhz clock for 3.9us. but when I try to to see what will be my maximum frequency, with 16MHZ I just get around 200khz . am I doing anything wrong? also I figured out that the timer starts to count again when it goes out of ISR. is it possible that when it came inside the interrupt it reset the timer and start the counting? in this case I can have higher frequency. here is my code: ============================================================================================ void main(void) { WDTCTL = WDTPW + WDTHOLD; // St
  3. hi everybody. I saw in MSP430G2553 that the minimum capture time is 20ns. does it mean that I can capture input signal each 20ns? if yes, how can I achieve this ? even if I use 16mhz crystal and use the same clock for timer, that means 1/16mhz and equals to 62ns for each clock cycle. it doesn`t make sense for me. any body have any idea about it?
  4. Thanks Man, Yes I meant CC430 . your information was so helpful . actually my RF front end is an analog circuit and just filter the recieved signal, remove reader signal and at the end of the day prepare a digital signal which is just tag signal without any change. so the recieved signal is 256khz (because of impinj reader that I`m using) and miller encoded. BTW, Is it possible that we talk together online in any messenger? I think you can help me a lot. anytime that works for you
  5. Also I saw that Ti has a RFID reader based on CC1101 which is based on MSP430 as you know. They are decoding miller4 for sure. But they read their RF Rx buffer for recieved signal . I`m going to read it using input capture. Actually I`m not sure that I can capture the data in 256khz using input capture. Can i? do you have any resource or sample code that I can just capture data and store it in a register in interrupt routing in this frequency? Thanks
  6. If I store samples in specific amount of time, for example each 20us when 0 bit is 40us. then store 1000 of samples in a variable. then I should be able to decode it after 1000 sample. What do you think about it?
  7. Hi everybody, I`m already designed RF front-end to capture RFID data. now I can recieve Tag signal in miller4 and in 256khz frquency. anybody here can help me in: 1: how can I capture this data and do decoding of the signal in a MSP430? 2: what is minimum system frequency is required to capture recieved signal without missing any data? 3: anybody here did the Miller4 decoding in C or C++? 4: should I store the signal first and then process the data? or I can detect each bit on interrupt routin? any information or help or sample code is so appereciated. also if an
  8. Hi; it takes error from this line: UCB0I2CSA = 0b1010000; after removing this line the program is compiling. but doesn`t work. after this line: for(i = 1; i < 12; i++) { while(!(IFG2 & UCA0TXIFG)); UCA0TXBUF = rxdata; //UART TX data } it is giving an error: No source available for "c_int00_noexit() at 0xc24c" and after that : No source available for "0xc2bc" and program in hanging hear. P1.6 jumper removed. i2c PINs are pulled up with 10k resistor. ground for 24LC256 is common with launchpad board.
  9. nothing yet. I removed interrupts and used while loop for sending data . now it`s working. but there is another problem. now it goes to i2c_int() . also it goes to write routine or read routine correctly. but after i2c_data.count==0 it will stay in : while (UCB0CTL1 & UCTXSTP); and can not pass this step. I don`t have osiloscope around here now. do you think this problem is because of no response from EEprom memory? I changed the code like this: i2c_tx(11, 0xA0, txdata, 1, 0); //i2c TX 11 bytes("HELLO WORLD") while (!(i2c_int())){ } and
  10. Thanks man for response, I used exactly your code . without any change. even I removed any other things and just tried to send and receive a sample data. you know, when it wants to start communication it seems it`s hanging. why hanging? I can`t understand. I`m sure it`s not IC problem . I removed P1.6 jumper and the same GND for both IC and 10K resistor pullup for SDA pin. when I`m in debug mode and check the program line by line, when it comes back from interrupt routing and wants to start reading for the first time, it hangs. any idea?
  11. majeddotcom

    i2c Explorer

    Hi; I`m going to communicate between MSP430G2553 and an EEPROM memory from Microchip (24LC256). I used the code in this topic: 43oh.com/forum/viewtopic.php?f=9&t=2262&p=22254#p22254 but when it wants to start communication it seems it`s hanging. I`m using CCS. I`m sure it`s not IC problem . I removed P1.6 jumper and the same GND for both IC and 10K resistor pullup for SDA pin. when I`m in debug mode and check the program line by line, when it comes back from interrupt routing and wants to start reading for the first time, it hangs. please help thnx
  12. Hi; Thank you so much for sharing. I`m going to use i2c interface with an EEprom memory chip from microchip (24lc256). I used your code (I`m using CCS) for communication. but when I debug the program it will stuck before ( u8 i2c_int(void) { ) in i2c.c file and doesn`t do any thing after that. first time it goes to that and after going back to interrupt and coming back to i2c.c it stuck at this point. what is the problem?
×
×
  • Create New...