James Grosbach wrote: > > What is the code not doing? Can you load the code into the MPLAB simulator? Ca n > you single step through it? > > I'm unsure how to assist without more information. > > Jim Runs perfecly on Simulator! But "doesn't run" on PIC17C756! :( Something is very wrong! Here i have two samples in assembly! The first runs per fectly and the second not run! (nothing runs)! Please, see: WORKS WELL! 00426 00427 LIST P=17C756 0000 00438 ORG 0 00439 0000 B800 00440 MOVLB BANK0 ;select bank1 0001 B000 00441 MOVLW 0x00 0002 0111 00442 MOVWF DDRB ; portb as output 0003 00443 Loop 00444 0003 B000 00445 MOVLW 0x00 0004 0112 00446 MOVWF PORTB ; Flip-Flop 0005 B0FF 00447 MOVLW 0xFF 0006 0112 00448 MOVWF PORTB ; Flip-Flop 0007 C003 00449 goto Loop ; stay in LOOP 00450 00451 END -------------------------------------------------------------------------------- ------------- Please, see: DOESN'T WORK! (nothing happens)! (But i verified that the /CS of my external EPROM stay enabled, like the first sample) 00427 LIST P=17C756 0000 00438 ORG 0 0000 C009 00439 GOTO start 00440 0001 00441 main 0001 B800 00442 MOVLB BANK0 ;select bank1 0002 B000 00443 MOVLW 0x00 0003 0111 00444 MOVWF DDRB ; portb as output 00445 0004 00446 Loop 00447 0004 B000 00448 MOVLW 0x00 0005 0112 00449 MOVWF PORTB ; Flip-Flop 0006 B0FF 00450 MOVLW 0xFF 0007 0112 00451 MOVWF PORTB ; Flip-Flop 0008 C004 00452 goto Loop ; stay in LOOP 00453 0009 00454 start 0009 C001 00455 goto main 00456 END The only diference is that there is a goto FORWARD! :( And the Machine Code that the MPLABC-17 creates has as first instruction: ;-----------------------------------------------------------; ; Branch to startup code ; ;-----------------------------------------------------------; 0000 c0c2 GOTO 0xc2 ; goto _start section _start_section CODE What does not the PIC17C756 work! Please, help me! Miguel :( PS: I did change the Crystal for 2MHZ, and nothing! Only the first sample works well! (that hasn't the GOTO FORWARD)