> From: Peter Beijer [mailto:pbeijer@TELIA.COM] > Sent: Tuesday, October 08, 2002 10:40 AM > > Thanks again for all support but I still can't get it to > work. I now use > the delay and portdeclaration thats in ht-pic. > I put a 5ms delay in enablesignal. > > Whats wrong? 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. > #define BYTE int You also probably want to change the above define to: typedef unsigned char BYTE; int is a signed 16-bit number and unsigned char is an unsigned 8-bit number. I don't think that's your problem, but it could come back to haunt you some time later. -Mike -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu