Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/26/09 09:38
Modified:
  05/26/09 10:01

Read: times


 
#165595 - ?...Doesnot Work...?
Responding to: ???'s previous message
Dear Mahesh,
The characteristic for the RFID card reader that i'm using is 2400 bauds/sec ,8 bits,no parity,1 stop bit.Each tag has a unique ID of 12 bytes,the first 0A and the last 0D.
I've checked how the reader is transmitting by connecting it to the PC via a MAX232 interface and the results are shown in picture below.

http://rapidshare.com/files/237356283/3.jpg.html

After that i've connected the rfid to the 89s52: the SOUT pin to RxD pin of 89s,the GND&/ENABLE pins to gnd and the VCC pin to +5v.The reader is powered-up and transmitting becuse the on-board led is RED(as stated in datasheet)

What my code is trying to do is make the 89s get a tag ID from the reader,to see if it starts with 0A and ends with 0D and if so to make a LED glow.

I think the problem is here
START_RX:
               JNB 00h, WAIT_RX
               MOV @R0,A
               CJNE R0,#4Ah,INC
 
i don't know were to go if i already received 10 bytes

I've also tried the code u provided and i get an error when making the hex file
CMP_NXT:
               MOV A,R2
               MOVC A,@A+DPTR
               CJNE A,@R0,NO_MATCH  ;the error is at this line "Undefined symbol/label"


 






List of 54 messages in thread
TopicAuthorDate
Project using 89s52            01/01/70 00:00      
   RET (Where?)            01/01/70 00:00      
      Loops?            01/01/70 00:00      
         Loops?            01/01/70 00:00      
            with a quick glance            01/01/70 00:00      
               with a quick glance            01/01/70 00:00      
                  search for ...            01/01/70 00:00      
            Loops Something like this            01/01/70 00:00      
               School work?            01/01/70 00:00      
                  Nope            01/01/70 00:00      
               Loops Something like this            01/01/70 00:00      
                  ?...Doesnot Work...?            01/01/70 00:00      
                     ?...Doesnot Work...?            01/01/70 00:00      
                        Correct            01/01/70 00:00      
                        You sure you get a line feed before RFID?            01/01/70 00:00      
                            You sure you get a line feed before RFID?            01/01/70 00:00      
                              Try This            01/01/70 00:00      
                                 Try This            01/01/70 00:00      
                                 error            01/01/70 00:00      
                                    it's bible time            01/01/70 00:00      
                                       it's bible time            01/01/70 00:00      
                                    Is it ERROR or DOUBT???            01/01/70 00:00      
                                       Is it ERROR or DOUBT???            01/01/70 00:00      
                                 Compare            01/01/70 00:00      
                                    Simulate your function.            01/01/70 00:00      
                                       Simulate your function.            01/01/70 00:00      
                                          Use the free Keil C compiler Evaluation            01/01/70 00:00      
                                    COMPARE            01/01/70 00:00      
                                       compare            01/01/70 00:00      
                                          Still not out of time for C            01/01/70 00:00      
                                             Still not out of time for C            01/01/70 00:00      
                                                Read up on pointer            01/01/70 00:00      
                                                   Read up on pointer            01/01/70 00:00      
                                                      Me or you?            01/01/70 00:00      
                                                   Or do not use a pointer            01/01/70 00:00      
                                                      working code            01/01/70 00:00      
                                                         Describe your work process            01/01/70 00:00      
                                                            v            01/01/70 00:00      
                                                               Did you read? Did you debug?            01/01/70 00:00      
                                                         Why dont you define correct id in "code" space            01/01/70 00:00      
                                                            Hoping to get someone relegated?            01/01/70 00:00      
   Reading or Transmitting Data            01/01/70 00:00      
      Reading or Transmitting Data            01/01/70 00:00      
   a trip to the wild blue younder            01/01/70 00:00      
      This is where it gets lost            01/01/70 00:00      
   The fundamental problem is...            01/01/70 00:00      
      Same as its always been,            01/01/70 00:00      
         Yep I cannot think            01/01/70 00:00      
            Yep I cannot think            01/01/70 00:00      
               Why too late?            01/01/70 00:00      
            for a simple task ...            01/01/70 00:00      
               More than one way to skin a cat            01/01/70 00:00      
                  my $0.02            01/01/70 00:00      
                     If you can not code it in ASM ...            01/01/70 00:00      

Back to Subject List