Hello EveryOne, I've written a piece of code... But unfortualy it doen not work right... The 16c84 communicates with 3 CD4094 IC's. (Serial to parrallel). The error MUST be in the hef4094 routine, but i can't finft the error... Who can find the problem? (-----Cut----) SendOne bsf DATA call wait bsf CLOCK call wait bcf DATA nop bcf CLOCK return SendZero bcf CLOCK call wait bsf CLOCK call wait bcf CLOCK return hef4094 movwf txbyte movlw 0x07 movwf bitcount Sendbit btfss txbyte, bitcount ; Skip next line if bit is set. call SendZero ; Sends a 0 call SendOne ; Sends a 1 decfsz bitcount,1 ; Decrement bitcount, SKip if Zero goto Sendbit return (----Cut-----) main movlw 0xFF call hef4094 movlw 0x00 call hef4094 movlw 0x00 call hef4094 goto main end This piece of code should make 8 of the 24 bits high... But when I look at the outputs of the CD4094 it isn't... He problably sends one Bit to much or something... Greetz, Radboud Verberne. ICQ: 918640 (I Seek You) AX25: NL1DDU@NL3SMG.NBO.NLD.EU (27.405Mhz) PE1RUH@PI8SHB.#NBO.NLD.EU (144.925Mhz) Yes! I've succeeded my Radio Examenation! My call is PE1RUH! I've rebuilt a Teletron T813 and i'm most of the time QRV on 145.2125 or 145.7000 (Relais Eindhoven). S-Mail: Eerste Vijverstraat 6 5258 HR Berlicum, The Netherlands Phone: +31-73-503-4733 "Er is hier niks te doen, maar begin er maar alvast mee..."