18F2550 With Problems


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 With Problems

    Try changing:
    Code:
    if tecla_dta = 1 then cnt_lixo_1 = cnt_lixo_1 + 1 : lcdout $FE, $C0,"Tcl Dta" : pause 1500
    if tecla_esq = 1 then cnt_lixo_2 = cnt_lixo_2 + 1 : lcdout $FE, $C0,"Tcl Esq" : pause 1500
    to this:
    Code:
    if tecla_dta = 1 then
     cnt_lixo_1 = cnt_lixo_1 + 1
     lcdout $FE, $C0,"Tcl Dta" 
     pause 1500
    ELSEIF
     tecla_esq = 1 then
     cnt_lixo_2 = cnt_lixo_2 + 1
     lcdout $FE, $C0,"Tcl Esq"
     pause 1500
    ENDIF

  2. #2
    Join Date
    May 2012
    Posts
    18


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 With Problems

    Thanks for your answer mpgmike,

    I found the problem:

    For default, the XINST was On, and this change the extended instruction set.

    I change it to --> XINST_OFF, and everything works well.

    Thanks,
    Nuno

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: 18F2550 With Problems

    Charles Leo taught me to list every single CONFIG item in the header on every program. There is a document included with the PBP package that lists all the CONFIGs and what the options are for every PIC. On my PC it is found at C:\Program_Files(X86)\PBP3_1\DEVICE_REFERENCE\PIC1 8F2550 for your choice. The PBP package includes several useful resources like this, if you know about them. Glad you found your issue.

Similar Threads

  1. BOLT 18f2550
    By Leightonh in forum General
    Replies: 3
    Last Post: - 13th January 2014, 01:29
  2. Cant program 18F2550
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 4th April 2011, 19:49
  3. 18f2550 oscillator problems
    By rjones2102 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 28th September 2007, 03:57
  4. EasyHid and 18F2550 - why? what? how?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th December 2006, 07:57
  5. A/D problem on 18F2550 ?
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th December 2005, 21:40

Members who have read this thread : 1

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