ON 20080801@8:39:26 AM at page: http://www.piclist.com/techref/microchip/rs232.htm#39661.3607175926 Mark Torrens[MT-CL-J77] Says I've developed a simple and free RS232 program that runs on a PIC16F690 which will echo characters written in Hyperterminal. The software is intended to work with a standard MAX232 device. The software can be found here. http://www.choclab.eu/mtorrens/Files/rs232.asm ON 20080801@9:29:08 AM at page: http://www.piclist.com/microchip/spi.htm#39660.9535300926 James Newton[JMN-EFP-786] removed post 39660.9535300926 |Delete 'athar_abid@hotmail.com asks:
hollo
i m using PIC16F877A controller.. i want to interface two SPI ports of controllers in master slave manner using wireless USB,s
can u send me code for this??
Regards
  • ' ON 20080808@10:16:25 AM at page: http://www.piclist.com/microchip/mplabbugs.htm#39668.0971180556 James Newton[JMN-EFP-786] published post 39668.0971180556 anders.gustafsson@pedago.fi " Note that SW1 on Microchip's Low Pin Count Demo Board does not work when you run PICkit2 from MPLAB." |Delete 'P-' before: '' but after: 'FREE PIC32 C compiler Now Available" ON 20080814@2:40:22 PM at page: http://techref.massmind.org/microchip/index.htm#39674.4238657407 James Newton[JMN-EFP-786] removed post 39674.4238657407 |Delete 'vmanjubh.tech@gmail.com asks:
    Hi,

    I am working on PIC24F series micro controller. I have wrote all the interrupt handlers in a seperate file named interrupts.c. If i try use a variable which is defined ina any other file say uart.h it is throwing me an error saying that it is an undefined variable.

    I have made all the registers and baud rate setting required for the UART communication. I have used UART2 for the same

    illustration of the above expalined issue

    interrupt.c file
    --------------------

    #include "uart.h"

    void __attribute__((__interrupt__, auto_psv)) _U2RXInterrupt(void)
    {
    IFS1bits.U2RXIF = 0;
    l_test_var_U8 = U2RXREG;
    }



    uart.c file
    -------------

    char l_test_var_U8;



    uart.h file
    --------------

    extern char l_test_var_U8;


    If i declare this variable in the interrupt.c file and use it then it is compling and working for me

    Could you please let me know what the issue could. Hope my question is undersatndable ::))


    Thanks and Regards

    Manju Bhargavi
  • ' ON 20080827@3:16:52 PM at page: http://www.piclist.com/microchip/condrepl.htm#39687.3196875 James Newton[JMN-EFP-786] published post 39687.3196875 Merci!
    Looked exactly for this code, building my Min/Max thermometer with DS18B20. |Delete 'P-' before: '' but after: 'embedded erlang ? language for distributed systems ?" ON 20080831@11:29:41 PM at page: http://www.piclist.com/techref/microchip/16x-74hc595-lg.htm#39691.9789467593 James Newton[JMN-EFP-786] Says Here is one possible C version of this code.
    void OutPORT(unsigned char data) 
    
    { 
       unsigned char bits; 
       for (bits=0x80; bits!=0; bits >>= 1) 
       { 
          if ((bits & data) == bits)            // send Data 
             SRDAT = 1; 
          else 
             DRDAT = 0; 
          SRCLK = 1;                              // Clock the data
          SRCLK = 0; 
       } 
       SRLAT = 1;                                  // Latch the data 
       SRLAT = 0; 
    }