Dave Turner wrote : > Is there some sort of library you need to include? The PWM functions > might be in a separate library so they don't waste code space if not > in use. Yes the libs are in seperate files. But for each PIC type there is a device-file supplied with the tool where all libs "supported" by that device are included. So you never "include" anything from your own source, all supported libs are handles "under the hood". The device files are Pascal source files with only a "unit" and some declarations (no code in those). I tried to add the PWM_Library to the device file for 12F683 (P12F683def.ppas) and also the PWM library to the "linker script" (P12F683.mlk), but when running a test build on a simple source with only one call to PWM_init(), I got some bank error : "Linker Error: Bank not found : T2CON". I havn't looked deaply into that yet. T2CON is a valid reg in the 12F683. thought... Now, just made a few additinal test... If I added a (dummy) assignment to T2CON *before* the call to PWM_Init, the source built OK !! OK, fine. Now on to test this on real hardware... :-) Regards, Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist