18F6680 and portd problems.


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    jkbh's Avatar
    jkbh Guest


    Did you find this post helpful? Yes | No

    Default

    If I use ASM code in Picbasic it works.
    I did like this!!

    Startup:
    asm
    bsf LATD,5
    endasm

    pause 500


    asm
    bcf LATD,5
    endasm

    pause 500

    adcin 1,AN1
    adcin 2,AN2
    adcin 3,AN3
    ADCIN 5,AN4

    goto startup


    end


    WHY does it not work if I simple use HIGH and LOW LATD.5
    Is it a bug in PBP 2.44???

    /Jimmy

  2. #2
    jkbh's Avatar
    jkbh Guest


    Did you find this post helpful? Yes | No

    Default

    I solved the problem!

    I had bad through plating holes on my PCB.Almost all PortD bits had bad connection on the second layer.Hav fix it now and the portD works great.

    Thanks anyway!!
    /Jimmy

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