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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/10/07 20:56
Modified:
  04/10/07 20:58

Read: times


 
#136942 - a recommendation and a question
Responding to: ???'s previous message
the below is 'code sketches', should get you going

1) do not code both serials first time, get one going
2) some of the derivatives with two serials are 'strange' which one do you use
3) No need to start a new thread, but stay here, Steve or Craig will delete the original, I hope.
4) an embedded processor do not return from main() you need to stay there
void main()
{
  // initialize
  ...
  // workloop
  for(;;)
  {
  ....
  }
}

the 'standard way to send data w/o interrupts is
  while (more_data_to_output)
  {
    while (!TI);
    SBUF = next_character;
  }

in an ISR it will be
  if (TI)
  {
    SBUF = next_character;
  }
Erik

ps if "Herr Malund" is a snicker, I am sorry I helped you, if it is extreme politeness, there is no need for that, I sign 'Erik'

List of 17 messages in thread
TopicAuthorDate
"Newbie's" etc with indents            01/01/70 00:00      
   a recommendation and a question            01/01/70 00:00      
      am I missing something?            01/01/70 00:00      
         Re: missing something?            01/01/70 00:00      
      re: recc's and question            01/01/70 00:00      
         glossary            01/01/70 00:00      
         "bible" time            01/01/70 00:00      
   Where is the Interupt Handler?            01/01/70 00:00      
      re: handler location            01/01/70 00:00      
      re: actual handler location            01/01/70 00:00      
   Status update            01/01/70 00:00      
      that is problematic            01/01/70 00:00      
         re: Problematic.            01/01/70 00:00      
      just spotted this            01/01/70 00:00      
         re: Interrupt number            01/01/70 00:00      
            if you do like this (http://....)            01/01/70 00:00      
               re: interrupt *solution*            01/01/70 00:00      

Back to Subject List