need guide on programming PIC16f877

Discussion in 'Embedded Systems and Microcontrollers' started by hung88, May 1, 2011.

  1. hung88

    Thread Starter New Member

    Apr 30, 2011
    3
    0
    im new in programming. can someone give me some guide on how i start writting code for pic16f877?
     
  2. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    In assembly or "C" ? Which IDE you are using like MPLAB or microC ?
     
  3. hung88

    Thread Starter New Member

    Apr 30, 2011
    3
    0
    im using mikroC. i guess it will be easier if im using C?
     
    Last edited: May 1, 2011
  4. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    I think you know about language C atleast a bit,if not then google for C tutorial before learning PIC programming using C.After that you will also need to know a bit about the architecture of the mcu so the best way is to go for the datasheet,you will get it form microchip's website.You are using 16F877 ,as per me you should use 16F877A that comes with a bit new features.

    mikroC have some examples in their help files.

    Here you go the datasheet:
    PIC16F877 : http://ww1.microchip.com/downloads/en/DeviceDoc/30292c.pdf
    PIC16F877A : http://ww1.microchip.com/downloads/en/DeviceDoc/39582b.pdf

    Good luck
     
  5. hung88

    Thread Starter New Member

    Apr 30, 2011
    3
    0
    thx for the guide :p
     
Loading...