help me to understand 3 lines of code ( concerning assembly and PBP programming)


Results 1 to 8 of 8

Threaded View

  1. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    This should get you started. Let us know if you have more questions after reading about them.

    http://www.picbasic.co.uk/forum/show...9219#post89219

    L?CALL _DoUSBOut ; is a call to subroutine _DoUSBOut

    For your last question,
    It looks like version 2.60a has included the register UCFG, so you should hopefully be ok adding the second line only,

    UCFG = %00010100

    From the data sheet:
    Bit 4 means
    1 = On-chip pull-up enabled (pull-up on D+ with FSEN = 1 or D- with FSEN = 0)

    Bit 2 means :
    1
    = Full-speed device: controls transceiver edge rates; requires input clock at 48 MHz
    Last edited by ScaleRobotics; - 29th October 2010 at 01:14. Reason: UCFG part
    http://www.scalerobotics.com

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