PLEASE HELP ME! pic16f876a and AD tlc4541


Closed Thread
Results 1 to 2 of 2
  1. #1
    luca_sheva's Avatar
    luca_sheva Guest

    Exclamation PLEASE HELP ME! pic16f876a and AD tlc4541

    please HELP ME
    i have to give thesis next week...
    excuse me for my english
    i have a problem in debugging my circuit
    i have interfaced the pic16f876a with the AD tlc4541 that converts ampified analog signals from magnetic sensors. the problem is that in output USART transmits always the same value
    the code to receive via software the first 8 MSB converted from AD is:

    bsf FS ;FS is the linked to the AD pin FS
    bcf SCLCK ;SCLCK is the linked to the AD pin SCLCK
    bsf SCLCK
    bcf FS
    clrf TEMP16 temporary variable
    movlw .16
    movwf COUNT
    movlw TEMP16
    movwf FSR

    LOOP
    bcf SCLCK
    btfsc SDO
    goto HIGH
    bcf STATUS,C
    goto END
    HIGH
    bsf STATUS,C
    END
    rrf INDF,F
    bsf SCLCK

    decfsz COUNT,F
    goto LOOP

    is it right?? if anyone knows this tlc4541 and has materials, documentation, code examples about it please send me

    thank you

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


    Did you find this post helpful? Yes | No

    Default

    EEEK ASSEMBLER LANGUAGE IN HERE ?!!?

    Are you, at least, using PBP or PBC?!?
    Steve

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

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