> is that what I'm supposed to do ? It seemed messy and incorrect to have t= o > search through the entire stack and remove code that's not specific to th= e > purpose of the stack it self. I'm a beginner, so maybe this is how it is.= =20 >=20 >=20 The problem is probably that you are using the entire code for one particul= ar=20 (or perhaps several) demo boards. The Hardwareprofile.h is the place where = you=20 tell which board you are using and indirectly also which port pins are=20 connected to the LEDs and buttons for that board and the code always expect= =20 those (LEDs and buttons) to be used. If you don't need the demo board LEDs and buttons I suggest that you go thr= ough=20 the file with the main() function in it (MainDemo.c perhaps) and try to=20 understand what it does. The use of the LEDs and buttons are ususally=20 restricted to this file. It probably has a while(1){...} loop where all mai= n=20 work gets done. Before that all initialization and configuration of the boa= rd,=20 processor and peripherials are done once. Then use the parts that you need,= =20 exclude the ones you don't and add additional parts that you need but isn't= =20 there. You will find that the stack code itself does not use any buttons or= =20 LEDs, instead this is done at a higher level. Most probably you only need t= o=20 make changes to this one file and the hardwareprofile.h to get things worki= ng.=20 I usually start with stripping everything off and then adding pieces bit by= =20 bit, testing it as I go until I finally got the desired functionality. God luck / Ruben =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ruben J=F6nsson AB Liros Electronic Box 9124, 200 39 Malm=F6, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .