piclist 1999\10\31\095718a >
Thread: 12C
www.piclist.com/techref/index.htm?key=12c
flavicon
face BY : Quentin email (remove spam text)



> Thomas Wright wrote:

>                     movlw        8   ;8 bit count reg
>                     movwf       count
>  testbit_
>                     btfsc
>  gpio,1                                      ;clock pin on eeprom
>                     goto         testbit_
>  ti_
>                     btfss         gpio,1
>                     goto          ti_
                     btfsc       gpio,2
>                     bsf           temp,0
                     bcf       status,c
>                     rlf              temp
>                     decfsz     count
>                     goto         testbit_
Hi Thomas
A quick look at your code. See the changes I made. In your code, when
you found a low on gpio2, you went back to start without shifting the
temp reg.

Quentin

<381C595F.209EB94D@icon.co.za> 7bit

See also: www.piclist.com/techref/index.htm?key=12c
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) 12C

month overview.

new search...