Alessandro Zummo wrote: > > i've been in trouble while implementing the pic > code for the MM5450.. if any1 has some code, > please let me know! Ok, Alex. I have a piece of extracted code from a old project, for 3 displays and 8 leds, in a PIC16C71 at 16 MHz: ; Display Variables (consecutive) Display1 equ xx+0 Display2 equ xx+1 Display3 equ xx+2 LEDs equ xx+3 ; Auxiliary Variables Aux1 Aux2 Counter ; I/O #Define DISPCLOCK Port_B,0 #Define DISP_DATA Port_B,1 ; Routine WaitP clrwdt nop nop nop return Digit macro movwf Aux1 movlw 8 movwf Counter LoopDisp bcf DISPCLOCK rrf Aux1,Same bcf DISP_DATA btfsc STATUS,CARRY bsf DISP_DATA call WaitP bsf DISPCLOCK call WaitP decfsz Counter goto LoopDisp bcf DISPCLOCK call WaitP endm StartP macro call WaitP bcf DISPCLOCK bsf DISP_DATA call WaitP bsf DISPCLOCK call WaitP bcf DISPCLOCK bcf DISP_DATA call WaitP endm Stop macro bcf DISP_DATA bcf DISPCLOCK movlw 3 movwf Aux2 StopLoop call WaitP bsf DISPCLOCK call WaitP bcf DISPCLOCK decfsz Aux2,Same goto StopLoop call WaitP endm Display StartP movlw 4 movwf Aux2 movlw Display1 movwf FSR DispLoop movf 0,w incf FSR,Same Digit decfsz Aux2,Same goto DispLoop Stop return Good Luck. Pablo