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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/15/09 07:06
Read: times


 
#161520 - And my reply to Charles
Responding to: ???'s previous message
Charles Townsend said:
I tried moving that line to the ISR, and I tried uncommenting the line in the main loop. It doesn't make a difference.

Your program is limping between using interrupts and not using interrupts. I wouldn't dare to confirm what any trying is going to result in because it's all so far from good practice. what you really need to do is get a feel for the proper use of interrupts and make some clear decisions in advance on how your race horse is going to work at the very core before driving yourself nuts trying to repair the cripple you have produced so far ;-) Even if you manage to make it appear to work, it will severely limit your future options.

Charles Townsend said:
What happens when I want to send just one byte? What happens when the byte does not come from code memory?

Two words: ring buffers. One for reception, one for transmission. Do a search on this board to see what I mean.

Charles Townsend said:
How is the stack empty when it returns? I don't understand.

My mistake. I misread your code. The flow isn't a problem.

Charles Townsend said:
I realize that this is a foolish statement,
but it worked in the simulator!

When talking about I/O, timing and interrupts, all bets are off when referring to simulation results. Simulators are of limited use, valuable aminly for looking at the working of algorithms and program flow. Fortunately, you seem to realize the limited usefulness of simulator results.

List of 23 messages in thread
TopicAuthorDate
serial interrupt?            01/01/70 00:00      
   Your Problem            01/01/70 00:00      
      still not working            01/01/70 00:00      
         you need to flag somehow the end of transmission            01/01/70 00:00      
            reply to Jan            01/01/70 00:00      
   Several            01/01/70 00:00      
      To Hans            01/01/70 00:00      
         And my reply to Charles            01/01/70 00:00      
   no interrupts works            01/01/70 00:00      
   the solution            01/01/70 00:00      
      Isn't that what Hans said?            01/01/70 00:00      
      Perfectly????? Prolly should look again.            01/01/70 00:00      
         Got to look ahead...            01/01/70 00:00      
         Another thing to consider            01/01/70 00:00      
            reply to Andy Neil            01/01/70 00:00      
         reply to Michael Karas            01/01/70 00:00      
      why is this a bad idea            01/01/70 00:00      
         Exactly why not perfect !!!            01/01/70 00:00      
         response to Jan Waclawek            01/01/70 00:00      
            interrupts forever            01/01/70 00:00      
            nope            01/01/70 00:00      
               Re: Erik            01/01/70 00:00      
   if you HAVE to mix ...            01/01/70 00:00      

Back to Subject List