Madness, 18F2550!


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Zagreb, Croatia
    Posts
    27


    Did you find this post helpful? Yes | No

    Angry

    Sorry, I forgot to paste that part of code:
    Code:
    @ __CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_1_1L 
    @ __CONFIG    _CONFIG1H, _FOSC_HS_1H
    @ __CONFIG    _CONFIG2L, _PWRT_ON_2L
    @ __CONFIG    _CONFIG2H, _WDT_OFF_2H 
    @ __CONFIG    _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H
    @ __CONFIG    _CONFIG4L, _STVREN_OFF_4L & _LVP_OFF_4L
    
    define OSC 20
    define LOADER_USED 1
    define LCD_EREG PORTC
    define LCD_EBIT 1
        
    i var word
    pause 100
    
    CMCON=7
    CCP1CON=0
    ADCON1=$0F
    ADCON0=0
    
    lcdout $fe,1,"MADNESS!!!"
    pause 1000
    i=150
    pause 1000
    lcdout $fe,1,dec3 i
    pause 1000
    kraj: goto kraj
    end
    but still the same thing, and the interesting fact is that the code
    working OK - the value written on lcd is correct when i program
    pic through bootloader!

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


    Did you find this post helpful? Yes | No

    Default

    For some odd reasons,
    Code:
    LCDOUT $FE,1,#I
    work
    Steve

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

Similar Threads

  1. 18F2550 timing
    By sstt1976 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 22nd August 2008, 00:30
  2. Error compiling 18f2550
    By sirvo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 13th May 2008, 23:22
  3. 18f2550 + 24lc512
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2007, 22:02
  4. 18f2550 'access is denied' USB error?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 30th December 2006, 14:29
  5. 18F2550 config fuses, is my setup OK?
    By peu in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th July 2006, 03:48

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