> From: Peter Beijer [mailto:pbeijer@TELIA.COM] > Sent: Tuesday, October 08, 2002 12:46 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Need help to get my first c-code working. > > > >I didn't spend much time looking at your code, but the first > thing that I > >noticed was you didn't program the config word (use the > __CONFIG macro). I > >don't know what the default config word is, but if it's not > what you need > >it to > >be, things won't work. > > > How do i use this __CONFIG macro. I have a pic16f84 at 4MHz, > no watchdog, > no code protection, XTAL. Try something like: __CONFIG(????); placed after your includes in you main program. I don't have a PIC16F84 data sheet, so I can't tell you what the value of ???? is. It should be clear if you read the data sheet section on the config word. -Mike -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu