pic microcontroller

Discussion in 'Embedded Systems and Microcontrollers' started by sovannarith, Feb 22, 2010.

  1. sovannarith

    Thread Starter Member

    Feb 11, 2010
    18
    0
    Dear All

    Could you give me link to video showing the using of pic microcontroller? I'm just a beginner so I think video tutorial will help me.

    Thank for helping
     
  2. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    I do not know about videos but google PIC tutorials. Also, visit www.microchip.com
     
  3. Tahmid

    Active Member

    Jul 2, 2008
    344
    25
    Hi,
    For videos, go to youtube or metacafe and search for PIC microcontrollers or PIC projects or something of that sort.
     
  4. sovannarith

    Thread Starter Member

    Feb 11, 2010
    18
    0
    I know the tallest building in the world starts from the first brick that why I try to do a simple work with pic 16f876 and picket2 programmer I have. Could any one give me some simple code use with these devices. Example code that simple turn led on form a pin.

    Thanks
     
  5. Tahmid

    Active Member

    Jul 2, 2008
    344
    25
    Hi sovannarith,
    I don't know which language and compiler you use but if you are using mikroBASIC, try this:
    Code ( (Unknown Language)):
    1. program LEDon
    2. main:
    3.    TRISB = 0 'Make PORTB output
    4.    PORTB = 0 'Clear default PORTB values
    5.    PORTB = 1 'Turn RB0 on
    6.    while true 'Wait here forever
    7.    wend
    8. end.
    mikroC:
    Code ( (Unknown Language)):
    1. void main(void) {
    2.    TRISB = 0; //Make PORTB output
    3.    PORTB = 0; //Clear PORTB default state
    4.    PORTB = 1; //Turn RB0 on
    5.    while (1); //Wait here forever
    6. }
    You should download the datasheet from the Microchip website.

    Hope this helps.
    Tahmid.
     
  6. sovannarith

    Thread Starter Member

    Feb 11, 2010
    18
    0
    Sorry, I use MPASM in MPLAB. And could you give me the whole simple could including configuration...

    Thank
     
  7. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,012
    Configuration depends on your particular PIC.

    I suggest you purchase the PICKit 3 and Demo 18f45K22 board combination.

    It comes with sample code for that PIC along with lessons.


    I would have selected a 5V PIC for a newbie demo board but this is the one that microchip selected for whatever reason. Jut remember that is is 3.3V and be careful when switching from a 5V project.


    Also check the link that mik3 posted.

    But I like this one better

    http://www.mikroe.com/en/books/pic-books/mikroc/


    You really need to learn a bit about PICs before running code.
     
  8. Louise

    New Member

    Jan 17, 2010
    13
    1
    Hi sovannarith! I'm just starting out with a PIC as well. You might find the some helpful information at the following sites:

    www.mhennessy.f9.co.uk/pic

    www.rev-ed.co.uk/picaxe

    No videos, but I found the information quite easy to understand.
     
  9. russ_hensel

    Well-Known Member

    Jan 11, 2009
    818
    47
    For beginners I strongly suggest that you use a high level language like C, JAL....
    There are free compilers for small programs ( and sometimes large ) for most pic chips
    See:Microcontrollers for Beginners also follow the link to using C
     
Loading...