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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/06/07 19:25
Read: times


 
#134409 - A little bit of sarcasm as usual but often helpful
Responding to: ???'s previous message
Erik Malund, this is not the first time you have responded to my question, but have been a tremendous help to some of my other questions which i could not have made it without you help, albeit a little sarcastic at time :) But it is all good. A rare gem among other 8052.com forumers i can say. Thank you!

Now let's get back into question :


you can not just jump into coding, you need to knoe the basics first. Where do you initialie the UART, what inteface do you use, you ask about totally impossible assembler instructions....


Yes, i have thought of the initiazation and i do not, by any means blindly jump into the pool without knowing how to swim. As i have already mentioned, the configuration of the modem is assume to have been properly set and is now ready to accept command. The configuration being assumed done here is resetting TI/RI flags, setting the baud rate by means of using the auto-reload of Timer 1(i still do not know what is the proper baud rate to be used though), configuring TCON, SCON, etc.


FIRST
How does a Pin 3.1 which is also called as TxD differs from other port if i want
get familiar with "the bible" ch 3 has lots of stuff on the UART.



I have done some deeper research *again* with "the bible" and i now know that Pin 3.1 has the SBUF capability to store and send out a single byte at a time and thus saving programmer time from coding the data transmission from the scratch using bit by bit method.



THEN
a byte of data out from the TxD (P3.1) to a modem
verify that your modem is TTL or RS232, if TTL it is a wire, if it is RS232 you will need a MAX232(equivalent) between the uC and the modem.



It is using RS232 interface using MAX232 and yes, i have take account of the communication line needed to be done between the modem and the 8051. So far, the only pin needed to be used is the TxD and RxD on both 8051 and the DB9 connector. The only thing i have left now is to communicate properly with the modem by means of sending a string of any AT Command to it. I already have the AT Command set of the modem and once the method of communication is taken care of, i can proceed with the operation of the modem hopefully by myself.

Lastly but not least, thank you very much for the helpful links i will take a look into it as soon as possible.

List of 72 messages in thread
TopicAuthorDate
Serial Communication Related Problem            01/01/70 00:00      
   partial answers            01/01/70 00:00      
      Oh yeah, i forgot about that            01/01/70 00:00      
   FIRST, THEN, THEN, THEN            01/01/70 00:00      
      A little bit of sarcasm as usual but often helpful            01/01/70 00:00      
         Proper baud rate...            01/01/70 00:00      
            baud rate            01/01/70 00:00      
               calculator            01/01/70 00:00      
            modem is autobauding            01/01/70 00:00      
               Noted            01/01/70 00:00      
   Some answers            01/01/70 00:00      
      Thanks for a patience reply            01/01/70 00:00      
   Nothing to add, but ...            01/01/70 00:00      
      i second(ed) that motion            01/01/70 00:00      
         My location profile?            01/01/70 00:00      
            with this known, it would do no good ...            01/01/70 00:00      
               Radio Shack            01/01/70 00:00      
                  Even so            01/01/70 00:00      
                     I can buy it from the local electronic shop            01/01/70 00:00      
            Sarcasm            01/01/70 00:00      
               I agree            01/01/70 00:00      
      Thanks for understanding and recommendation! - NT            01/01/70 00:00      
      More info            01/01/70 00:00      
         you need to understand the parameters.            01/01/70 00:00      
            "more valid" evidently means invalid            01/01/70 00:00      
            not quite            01/01/70 00:00      
               What a wonderful example that when total crap is s            01/01/70 00:00      
                  lesson            01/01/70 00:00      
            No, it doesn't            01/01/70 00:00      
   TxD pin to TxD pin?            01/01/70 00:00      
      dte-dce-dce-dte            01/01/70 00:00      
         Noted! Thanks!            01/01/70 00:00      
            same request question            01/01/70 00:00      
      Meaning of "Transmit"            01/01/70 00:00      
   same request question 2            01/01/70 00:00      
   Initial command sending code; help me take a look!            01/01/70 00:00      
      Make it simple for yourself            01/01/70 00:00      
         Why the need of circular buffer? Receiving?            01/01/70 00:00      
            polling versus interrupt            01/01/70 00:00      
               Check OK string at RXD or DCD at interupt?            01/01/70 00:00      
                  no good            01/01/70 00:00      
                     Voice mode only! No data communication.            01/01/70 00:00      
                        you are missing the basics            01/01/70 00:00      
                           NO carrier sent after DCD didn't found            01/01/70 00:00      
                              I do not agree            01/01/70 00:00      
                                 Interupt DCD signal for clear transmission            01/01/70 00:00      
                        For Voice Dialling            01/01/70 00:00      
                           and by the way            01/01/70 00:00      
                           Sorry for multiposting            01/01/70 00:00      
                           The ";" works but...            01/01/70 00:00      
                              ";" to return to idle state            01/01/70 00:00      
                              +++ with 3 seconds no modem activity            01/01/70 00:00      
                                 +++ escape sequence            01/01/70 00:00      
                                    Monkey See. Monkey Do.            01/01/70 00:00      
                                       Now monkey also understand?            01/01/70 00:00      
                                 Are you mistaken?            01/01/70 00:00      
                                    I think so            01/01/70 00:00      
            Circular buffers            01/01/70 00:00      
               Initial code for receiving modem response            01/01/70 00:00      
                  don't fiddle with the timer, let it run            01/01/70 00:00      
                     Understood, will run TR1 in global init, thx! - NT            01/01/70 00:00      
                  check this out, Eugene...            01/01/70 00:00      
                     Ah! Didn't know that! Thanks! -NT            01/01/70 00:00      
                     Code; modem commands & responses            01/01/70 00:00      
   V.250 (formerly V.25-ter) - get it free!            01/01/70 00:00      
   code,modem command and response            01/01/70 00:00      
   system froze when connected to hyperterminal            01/01/70 00:00      
      Your code...            01/01/70 00:00      
         It should not be a hardware problem since..            01/01/70 00:00      
            Not necessarily            01/01/70 00:00      
      Just taking a stab at it...            01/01/70 00:00      
         two 'ugly' guesses            01/01/70 00:00      

Back to Subject List