pic microcontroller discussion list <> wrote: > Look at www.mdm1.bravepages.com follow DMX973B link. Then > take your choice > of C or JAL versions. JAL version is in the proportional > width font (5x7) > zip file while the C version is in the fixed width font (5x7) > zip file. Thanks for posting that Ian, but can I point out one potential problem which has caught me out in the past? In dmx_rom_p.c, you have very sensibly added the ASCII char at the end of each line. The thing to watch is that some compilers (Keil C was the one that hit me!), the '\' character at the end of a line can continue a comment started by //, even if there is trailing whitespace. The syntax highlighting in my editor (gvim) makes the same assumption. I'm not sure what the C++ standards say is the correct behaviour but I presume it worked for you in Hitech C there are some inconsistencies between compiler manufacturers! The result is that all following characters are shifted by one ASCII character. It took me quite a while to track down the problem when I suffered from it (in a similar application!), I corrected it by changing the end of line comments to proper C /* ... */ ones instead of C++ single line '//' ones. Regards, Nigel -- Nigel Orr, Design Engineer nigel@axoninstruments.co.uk Axon Instruments Ltd., Wardes Road,Inverurie,Aberdeenshire,UK,AB51 3TT Tel:+44 1467 622332 Fax:+44 1467 625235 http://www.axoninstruments.co.uk This e-mail and any files transmitted with it ("E-mail") is intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the addressee(s), any disclosure, reproduction, copying, distribution or other use of the E-mail is prohibited. If you have received this E-mail in error, please delete it and notify the sender immediately via our switchboard or return e-mail. Neither the company nor any individual sending this E-mail accepts any liability in respect of the content (including errors and omissions) and timeliness of the E-mail which arise as a result of transmission. If verification is required, please request a hard copy version -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body