Searching \ for ' (sx)0831 routine' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: '0831 routine'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] (sx)0831 routine'
2000\12\15@232940 by jayian

picon face
whenever the main program call the subroutine below I get garbages
I hope somebody can point out my mistake cause I don't see what is
wrong with it.


;this routine read the ADC0831
adc     setb    cs                      ;cs high (ra.1)
       setb    clk                     ;clk high (ra.0)
       mov     trk,#8                  ;number of time to loop
       clrb    cs                      ;enable the 0831
       clrb    clk                     ;start convertion
       setb    clk
loop    clrb    clk
       mov     data,rb                 ;read the 0831
       setb    clk
       rr      rb                      ;shift data to the right (rb.7 is the input)
       djnz    trk,loop                ;is loop over if not loop again
       mov     flash,rb                ;save data
       ret                             ;return to the main program

-- hint: The PICList is archived three different
ways.  See for details.

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...