PDA

View Full Version : PLEASE HELP ME! pic16f876a and AD tlc4541



luca_sheva
- 1st February 2005, 15:00
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

mister_e
- 1st February 2005, 18:32
EEEK ASSEMBLER LANGUAGE IN HERE ?!!?

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