need help in lookup


Results 1 to 28 of 28

Threaded View

  1. #17
    Join Date
    Apr 2009
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    hello joe i wrote this code now it works the 7segment and shiftout .but when i vary things it doesnt works and it doesnt show me things, i want to know where i put a variables and how, is pic cant run 2 things in the same times ? (variables and shiftout with digit out) and i keep the shiftout how it is now , please help now it show me 3210 on leds 7segments ,sorry i cant find lcds in my country and i cant send money to buy from europ or usa bcz they dont alow us to send money out, i need to call my friends in spain to buy me them but it will take long 'now im new in pbp i want to learn a bit good and sorry about my english , thank you joe


    ' I2CREAD and I2WRITE Commands

    Include "modedefs.bas"
    'DEFINE SHIFT_PAUSEUS 1

    DEFINE OSC 4
    SDO VAR PortB.0
    SCLK var PortB.1
    DPIN var PORTA.0
    CPIN var PORTA.1
    B0 var byte
    B1 var byte
    B2 var byte
    B3 var byte
    B4 var byte

    symbol Digit_1 = portb.4
    symbol Digit_2 = portb.5
    symbol Digit_3 = portb.6
    symbol Digit_4 = portb.7
    SCLK = 8

    TRISB = 0
    ' i did a variable here lookup or read but it dont work or shiftout,

    main:
    Digit_2 = 1
    Digit_3 = 1
    digit_4 = 1
    SHiftOUT SDO,SCLK,0,[252]
    Digit_1 = 0

    pause 1
    Digit_1 = 1
    Digit_3 = 1
    digit_4 = 1
    SHiftOUT SDO,SCLK,0,[96]
    Digit_2 = 0

    pause 1
    Digit_1 = 1
    Digit_2 = 1
    digit_4 = 1
    SHiftOUT SDO,SCLK,0,[218]
    Digit_3 = 0

    pause 1
    Digit_1 = 1
    Digit_2 = 1
    digit_3= 1
    SHiftOUT SDO,SCLK,0,[242]
    Digit_4 = 0

    pause 1
    goto main

    end
    Last edited by malwww; - 13th May 2009 at 18:17.

Similar Threads

  1. Graphic LCD with PICbasic pro
    By amindzo in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th November 2012, 11:45
  2. Lookup Table
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th March 2008, 10:38
  3. ADCIN and LOOKUP ...
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th June 2007, 21:02
  4. problem with USART
    By leemin in forum Serial
    Replies: 4
    Last Post: - 11th December 2006, 17:56
  5. Confused On Dig & Lookup
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2006, 21:49

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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