Harold Hallikainen wrote: > few operands ('bclr lmot_dir') > >> I also tried using LATE,0 in the define and the code with the same >> results. Why is giving a custom name >> to a port pin in ASM30 such an ordeal. I can just use BCLR PORTE, #0 and >> it works fine but a clearly >> defined name for the pin makes for readable code. >> >> > > I think that's it! You need to tell it that it's a literal, so you use #0 > instead of 0. This has caught me before on writing for the 24H. So, maybe > something like this works: > > #define LED LATE,#0 > > then do > > blcr LATE > > Note that I think you should use LATE instead of PORTE to avoid read > modify write issues. LATE is the internal output latch, so it reads THAT, > modifies it, then writes it back to the latch. It does not care what the > actual pin is doing (which using PORT does do). > > Harold > > > > Using LATE is good advice that I will use. The code does not work even with the define using the ,#0. Thanks for the reply. -- Regards, Stephen D. Barnes -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist