This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

header files for "swatch" function

can any one tell me the header files that are to be included for the function "SWATCH"

and can it give delay of the order of microseconds???

Parents
  • Example
    The following signal function provides a 10Hz input to PORT3.2.
    
    signal void int0_signal (void)
    
    {
    
      while (1)
    
    {
    
        PORT3 |= 0x04; * pull PORT 3.2 high   */
    
        swatch (0.05); /* wait 50 milliseconds */
    
        PORT3 &= ~0x04;/* pull PORT 3.2 low    */
    
        swatch (0.05); /* wait 50 milliseconds */
    
      }
    

    this is the message that i got when i searched for swatch...
    now by what way can i think that i cant use it in my code?? so i feel i can use it in my source c code

    if i am wrong , please correct me
    }

Reply
  • Example
    The following signal function provides a 10Hz input to PORT3.2.
    
    signal void int0_signal (void)
    
    {
    
      while (1)
    
    {
    
        PORT3 |= 0x04; * pull PORT 3.2 high   */
    
        swatch (0.05); /* wait 50 milliseconds */
    
        PORT3 &= ~0x04;/* pull PORT 3.2 low    */
    
        swatch (0.05); /* wait 50 milliseconds */
    
      }
    

    this is the message that i got when i searched for swatch...
    now by what way can i think that i cant use it in my code?? so i feel i can use it in my source c code

    if i am wrong , please correct me
    }

Children