LCD BARgraphs


Results 1 to 40 of 233

Thread: LCD BARgraphs

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Looks good ...

    I tried THAT in MPSIM ... Works Great ...




    INCLUDE "C:\PBP\MODEDEFS.BAS"
    DEFINE OSC 4

    INCLUDE "DT_INTS-14.bas" ; Base Interrupt System
    INCLUDE "ReEnterPBP.bas" ; Include if using PBP interrupts

    LED1 VAR PORTB.2

    trisa=1:trisb=1:trisc=0:trisd=0:trise=0
    PORTA=0:PORTB=0:PORTC=0:PORTD=0:PORTE=0

    OPTION_REG = %00100001 ; Set TMR0 Prescaler to /2, RBPU on

    adcon0=%10000000 'Fosc/32, ADC ON
    adcon1=%10001110 'Right Justify, RA0 Analog, rest Digital I/O

    ASM
    INT_LIST macro ; IntSource, Label, Type, ResetFlag?
    INT_Handler INT_INT, _ToggleLED1, PBP, yes
    endm
    INT_CREATE ; Creates the interrupt processor

    INT_ENABLE INT_INT ; enable external (INT) interrupts
    ENDASM

    Main:
    pause 1
    GOTO Main

    '---[INT - interrupt handler]--------------------------------------------------
    ToggleLED1:
    high LED1: pause 100:low led1
    @ INT_RETURN


    I just modified OPTION_REG value cause little things seemed strange to me ...

    try it ... huuu ... is processor a 16F877 ????

    Alain
    Last edited by Acetronics2; - 26th June 2007 at 14:02.
    ************************************************** ***********************
    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 " !!!
    *****************************************

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 20:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 27th June 2007, 00:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03:30

Members who have read this thread : 2

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