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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/10/08 12:34
Read: times


 
#160822 - 'polling' is NOT "standard C"
Responding to: ???'s previous message
As I said, we were using non-polling method before, and we wanted to use standard C functions for serial port only for menu since polling is fine for the menu.
'polling' is NOT "standard C" it is a "convenince routine" provided by the Compiler manufacturer

Since the menu part is quite extensive for byte by byte handling of ISR, we thought it wise to go for polling.
the "exstent" is not a determinator for ISR/poll, I would state that the more extensive, the more importns interrupt driven becomes.

In fact, we continued with normal coding after shifting one structure to 03H !! Before that, it was normally declared so that Keil could place it where it wanted. But after moving it to 03H, the code was actually working
that is not "the code was actually working" but "the code just happened to work, although faulty"

Erik

List of 21 messages in thread
TopicAuthorDate
Program hangs at one point - 8051F340            01/01/70 00:00      
   Assembly window            01/01/70 00:00      
   hyper terminal interface            01/01/70 00:00      
      Stack size?            01/01/70 00:00      
         Stack size            01/01/70 00:00      
            Stack Management            01/01/70 00:00      
   Watchdog            01/01/70 00:00      
      stack and preview..            01/01/70 00:00      
         Limited stack            01/01/70 00:00      
      Where is the UART ISR?            01/01/70 00:00      
         ISR for UART            01/01/70 00:00      
            ISR for UART?            01/01/70 00:00      
               why "TI0=1;" is required            01/01/70 00:00      
            No, it isn't            01/01/70 00:00      
               Solved - I guess            01/01/70 00:00      
                  'polling' is NOT "standard C"            01/01/70 00:00      
                     You are right Erik..            01/01/70 00:00      
      Thought I will thank you individually..            01/01/70 00:00      
   Disable watchdog            01/01/70 00:00      
      and in Keil it is:            01/01/70 00:00      
         Status : WDT disabling in the status worked            01/01/70 00:00      

Back to Subject List