assembly in Pic


Closed Thread
Results 1 to 12 of 12

Thread: assembly in Pic

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    Ok , he is doing in the program the following:
    sending
    0 0 1 1 1 0 0 0 to portA
    then
    0 0 0 0 1 0 0 0 to portA
    then
    0 0 0 0 0 1 1 0 to portA
    then
    0 0 0 1 0 1 0 0 to portA

    how do we know which one is which (DISPLAY OFF,
    ENTRY MODE SET etc...)

    k

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lerameur View Post
    Ok , he is doing in the program the following:
    sending
    0 0 1 1 1 0 0 0 to portA
    then
    0 0 0 0 1 0 0 0 to portA
    then
    0 0 0 0 0 1 1 0 to portA
    then
    0 0 0 1 0 1 0 0 to portA

    how do we know which one is which (DISPLAY OFF,
    ENTRY MODE SET etc...)

    k
    Get a datasheet for nearly any parallel input LCD (Hitachi 44780 controller chip) and match the bit positions on PortA in the program with the bit positions in the LCD's datasheet. They will match up as long as you have a decent datasheet.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    There's some datasheet with initialisation chart example (http://inst.eecs.berkeley.edu/~cs150...heckpoint3.PDF) . You may try to find some PicBasic LCD routine (not PBP of course)

    now it's just a matter of finding the values in the datasheet.

    a while back i did something for a 4 bit mode, the initialisation sequence looked like..
    Code:
        '           ---------------------------------------------
        '           LCD Initialisation for HD44780 and compatible
        '                           4 BIT MODE
        '           ---------------------------------------------
        asm
        ;   LCD_OUT   Mode, Data, DelayUS
            LCD_OUT   ONCE,  30h,  5000     ; I want to use 4 bit mode !
            LCD_OUT   ONCE,  30h,  500      ;   Did you hear me?
            LCD_OUT   ONCE,  30h,  500      ;   Last chance or... too bad!
            LCD_OUT   ONCE,  20h,  500      ; Official 4 bit mode start
           
            LCD_OUT   SPLIT, 28h,  0        ; Function set [4bit, 2lines,5x7]
            LCD_OUT   SPLIT, 0Ch,  0        ; turn on the display
            LCD_OUT   SPLIT, 01h,  0        ; clear it
            LCD_OUT   SPLIT, 06h,  0        ; entry mode
        endasm
    if you need the source code, i can post it.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    HI, I found the tutorial from Bigonoff for the pic16F84, I read it and it was very good. He also has a tutorial for the pic16F877 (in french also) does anyone has it. Unfortunaetly he removed it from his web site. Have a look
    http://www.abcelectronique.com/bigonoff/
    I would appreciate if somebody who had this 500 page pdf to sent it to me
    thanks

    ken

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i knew he was an a s s h o l e but at that point

    anyways, i think i may have a PDF copy of a OLD previous lessons of him.

    I think i also have a copy of CEGEP du vieux Montreal lesson somewhere... I'll let you know if i find it.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking Politics and Pics ...

    Hi, Ken

    The site is only TEPORARILLY Shut Down ...

    The fact is Bigo. didn't appreciate to get a TRUE "State Leader" ( Whether he is Socialist or Capitalist !!! ).

    May be he could apply His shiny democracy lessons to himself ...

    We just have to wait a moment for him to get out of Childhood ...

    Alain

    He's not the only " who knows" ( we've got TRENT here ...)

    have a look here, in between :

    http://www.hobbyprojects.com/microco...tutorials.html

    P.S : I DO Have the 5+ Zip files on my HDD ... if really necessary.
    Last edited by Acetronics2; - 12th May 2007 at 10:27.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    and while we're at it, MikroElektronika also do some kind of tutorial as well
    http://www.mikroe.com/en/books/picbook/picbook.htm

    untill Mr Bigonoff break his own stupid buble, the above is for sure a nice start point... but as Mr Bigonoff.. it's outdated. Bah, ASM is ASM.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Aug 2004
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Video Stamp

    Dear Julio:
    Are you J.A.Sanchez from the Video stamp project in April 08 Circuit Cellar ?. If so..
    I have several questions about the project:
    I made a small PCB to mount the components, but I added a 4k7 resistor at the Mclr pin,
    because I can not find where do you define the use of the internal reset.
    It works since the first time,but I found comm errors in the transmited data... I will add
    a 8MHZ resonator and will try again...(Note if I cut the Mclr resistor it stops working).
    Also... when I programmed the original hex file with the USB Melabs Progremmer,the osc
    fuse is configured as extrc. Any comments...?
    My congratulations for this outstanding proyect.
    PBP 2.5 MPLAB 8.02 PIC18F2520
    Greetings...
    Ruben de la Pena V.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 11:00
  2. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 22:01
  3. decoding PIC assembly -- need help
    By uchiprox in forum General
    Replies: 1
    Last Post: - 12th February 2007, 05:19
  4. Simultaneous equation using PIC assembly
    By mankan in forum General
    Replies: 2
    Last Post: - 11th September 2006, 20:16
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts