Sunday, April 8, 2007

BASIC Language for PIC 16f84A programming

We can use basic or C language for the pic programming ,as
it is easy and simple to understand.The programs written in
assembly language for pic are complex and are not easy to
understand .Its future reference is difficult even thoughits
efficiency is high.
We did the pic programming,using the pic basic.


  • Some things to be noted while writing picbasic pr...


  • High & Low commands in pic basic


  • PIC 16f84A RAM


  • comments


  • The poke command




  • PIC 16F84A registers & ports
  • Friday, April 6, 2007

    PIC 16F84A registers & ports

    The pic 16f84Acontains 2 i/o ports ,port A& port B.
    Each port has two registres associated with it ,the
    TRIS(tri state )register and the address itself.
    The TRIS register controlls whether a particular
    pin on a port is configured as an input line or an
    output line .once the ports are configured the user
    may then read or write information to the port using
    the port register address.In 16f84A there are 8 pins
    available for port B & 5 for port A.
    --------------------------------------------
    REGISTER MEMORY MEMORY
    LOCATION(hex) LOCATION(decimal)
    --------**---------------**-----------------
    PORT A -----05h------------- 5
    PORT B -----06h -------------6
    TRISA -------85h -----------133
    TRISB -------86h------------ 134
    ---------------------------------------------