Pic18 uart programming

Discussion in 'Embedded Systems and Microcontrollers' started by bala8989, Mar 13, 2012.

  1. bala8989

    Thread Starter New Member

    Mar 13, 2012
    4
    0
    hi everyone,

    this is bala, i m trying to write code to send and receive data from my pic through UART. but i cant do this. will any one pls help me how to write uart code for PIC18F46k20..
    if u hav any example code it may be help full to me.....


    help me out guys.....


    thank you,
    bala
     
  2. CVMichael

    Senior Member

    Aug 3, 2007
    416
    17
    What compiler do you use and what language? ASM, C, Basic, Pascal? I use mikroC (for example).

    To communicate with what ? your computer? (are you using the MAX232 chip ?) or is it another PIC ?

    Show the schematic how you connected to (whatever the other thing is).
     
    bala8989 likes this.
  3. bala8989

    Thread Starter New Member

    Mar 13, 2012
    4
    0
    i m using the MPLAB IDE software. embedded c language & i m using the c18 library functions. i m trying to communicate with the iphone.
     
  4. CVMichael

    Senior Member

    Aug 3, 2007
    416
    17
    So your compiler is C18, right?
    Did you try to google "C18 uart example"?
     
  5. bala8989

    Thread Starter New Member

    Mar 13, 2012
    4
    0
    ya i tried it but i cant get much details on c18 libraries..
     
  6. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,017
  7. bala8989

    Thread Starter New Member

    Mar 13, 2012
    4
    0
    thanks .......
     
Loading...