At 04:17 PM 12/20/2003 -0800, you wrote: >Hi folks, >I'm brand spakin' new to PICs, and I'm hoping for a little help. >Moreover, I'm new to the list, so apologies in advance if I offend. >First, the background: I'm using an Oricom Technologies Sbot28 >controller board, with a PIC16F873 chip. I'm writing code in C, compiled >with a free demo of PICC, and developed in MPLAB development >environment. I'm programming the chip with a Microchip PICStart >Programmer. > >The problem? No matter what I do or try, I just can't seem to get any >output from my PIC. After days of work and frustration, I though I'd >just give in and ask. Included below is a quick test program I wrote >just to see if I understood what I'm doing (apparently not): > >If anyone has any suggestions, tips, tricks, troubleshooting advice, >etc. I'd love to hear back. This program looks okay (it should just set pin 12 high and leave it there).. but.. what are your configuration bit settings? They should be set in the C program. In particular, how have you set the clock oscillator? What crystal are you using on the board? Have you checked that /MCLR is in the proper state? >Dan (a rank beginner) > >#include /*Included with PICC*/ >#define OUTPUT 0 >#define INPUT 1 >#define WatchDogTimerClear() asm( "clrwdt") > >void main() >{ > ADCON1 = 0x07; /*switch ports to digital I/O*/ > TRISC1 = OUTPUT; > > RC1 = 1; /*PortC, RC1, Pin12 : output >high*/ > > while(1) > { > WatchDogTimerClear(); /*Clear the Watchdog Timer*/ > }/*end while*/ >}/*end main()*/ > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.