I found the following code on a web site for the F877. I tried to compile it with MPLAB V. 6.10.10 and it does compile correctly. At least it states "Success." During the compile I get messages that there is a memory bank selection problem?? I am attempting to get a test board working so I can learn assembler, MPLAB, ICD, ect. I just can't find any code (other than below) which will work on the F877. FWIW, The hardware seems to work correctly. I have an oscillator, a reset, VSS and VDD where it is supposed to be. I am using a LM2940 5 volt LDO with more than enough bypassing caps (both ceramic and tantalum). Can anyone give me an idea why or where this program won't cycle the RC4 pin (pin 23). Ed ; This program will flash a LED from port pin RC4 ;RC4 -> Led Anode ; Led Cathode -> 1K res ; 1K res -> ground ; Title "LED flasher." ; list P = 16F877 ; include "P16f877.inc" ; use definition file for 16F877 ; ; -------------------- ; USER RAM DEFINITIONS ; -------------------- ; CBLOCK 0x20 ; RAM starts at address 20h NaHi NaLo NbHi NbLo ENDC ; org 0x0000 ; start address = 0000h ; INITIALISE PORTS ; binary used to see individual pin level movlw b'00000000' ; all port pins = low movwf PORTA movlw b'00000000' movwf PORTB movlw b'00000000' movwf PORTC movlw b'00000000' movwf PORTD movlw b'00000000' movwf PORTE bsf STATUS,RP0 ; set RAM Page 1 for TRIS registers ; INITIALISE PORTS ; binary used to see individual pin IO status movlw b'00000000' ; all IO pins = outputs movwf TRISA movlw b'00000000' movwf TRISB movlw b'00000000' movwf TRISC movlw b'00000000' movwf TRISD movlw b'00000000' movwf TRISE movlw b'00000110' ; all analog pins = digital movwf ADCON1 bcf STATUS,RP0 ; back to RAM page 0 ; LED FLASH LOOP Loop bsf PORTC,4 ; RC4 = high = led on call Delay bcf PORTC,4 ; RC4 = low = led off call Delay goto Loop ; 1/2 SEC DELAY SUBROUTINE WITH 4MHz CLOCK Delay movlw 01h movwf NbHi movlw 03h movwf NbLo movlw 8Ah movwf NaHi movlw 5Bh movwf NaLo DeLoop0 decfsz NaLo,F goto DeLoop0 decfsz NaHi,F goto DeLoop0 decfsz NbLo,F goto DeLoop0 decfsz NbHi,F goto DeLoop0 ; return end -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body