Alice wrote: .... >hmm, good thought. Now is there a nice way to terminate all >those lines? i dug out some 10k sip resistors, but of course >the 40-odd pin connector on the mchip project board is not >set up to plug them in directly, and i have to be careful >with port b because of b3, b6,and b7.. >Is there an easy way to terminate all the loose lines without >doing something to the project board i will regret later when >it comes time to tear it out? sip socket with sip R in the socket. ================= .... > > list p=16F877 > __CONFIG _CP_OFF & _WDT_OFF & _RC_OSC >;&_LVE_OFF<--hates this > include "P16F877.INC" >beep_pin equ 3 >;----------------------------------------- > nop ;for use by ide > ORG 0 ;Reset Vector > ORG 4 ;Interrupt > bsf STATUS,RP0 > clrf PORTC ;portc set output > movlw b'00000001' > movwf PORTA > movlw B'00000110';.6--magic number > movwf ADCON1 ;??? ;TURN OFF ADC > bcf STATUS,RP0 > CLRF PORTA > movlw b'00001000' > movwf porta ;no beep here > Am I missing something here, or is this code supposed to be located inside the ISR space? [I suppose no interrupts?] Also, what did you do with ADCON0? [I suppose it doesn't matter here]. I realize there are POR values in all the regs, but I always like to initialize critical regs myself anyway [option, interrupt, A/D, etc] - lots easier to modify them to expand the code later, and also you don't have to remember what they POR to. Also, is this all there is? Never tried a program that just falls off the end of the PIC, usually put in an infinite loop at end. L1 goto L1