Hi all, I have two DS1620 connected to a PIC. First one has RST pin on RA0 of PIC, and the second one has RST pin on RA3 of PIC.Pins DQ(data) and CLK from both 1620's are on pins RA1 and RA2. DS1620 doesnt communicate with PIC unless RST is high. So, can anybody tell me this: how do I tell the assembler, that I want to use the same routines e.g. OUTPUT_8 with both 1620's, the only difference being the connection of RST's. When I worked with one 1620, it was fine, I just said RST EQU 0. When I worked with two, I tried with RST SET 0 for talking to the first 1620 and then changed it to RST SET 3. Build is succesfull, but it seems to me that assembler only remembers the last SET directive and uses it.. Then I also tried with VARIABLE RST=0 and RST=3, but no succes. Example: RST SET 0 (VARIABLE RST=0) OUTPUT_8 ;first one movwf OUTPUT_REG ;store W into output register bsf C1620, CLK ;CLOCK CYCLE=FALLING EDGE followed by RISING EDGE bsf C1620, RST ;reset high=start communication movlw .8 ;preload counter, so we output 8 bits movwf COUNT RST SET 3 (VARIABLE RST=3) Tia, Samo -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads