And for any ANSI C compiler that does not support binary constants..... #define B(a,b,c,d,e,f,g,h) \ ( ((a)<<7) | ((b)<<6) | ((c)<<5) | \ ((d)<<4) | ((e)<<3) | ((f)<<2) | \ ((g)<<1) | ((h)<<0) ) DATA = B(0,0,0,0,0,0,0,1); Bob Ammerman RAm Systems ----- Original Message ----- From: "Dale Botkin" To: Sent: Thursday, April 17, 2003 10:18 AM Subject: Re: [PIC]: Entering Binary Numbers in CCS C > On Thu, 17 Apr 2003, Mccauley, Daniel H wrote: > > > Instead of writing a line such as: DATA = 0x01; > > I would like to enter the data as binary instead of hex. > > > > How would I write this out? > > DATA = 0b00000001; > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads