On Jul 5, 2010, at 10:44 PM, Justin Richards wrote: > and in P18F97J60.h there is > extern volatile near unsigned char LATG; > > I would like reference registers by address something like this > > char *addr; //create a pointer that points to registers > > addr = 0x0F8F; //location of LATG > *addr = 255; // put this value into location 0X0F8F > > but the compiler complains > > ...pom_HTTPExecCmd.c:200:Error [1131] type mismatch in assignment Did you try: volatile neat unsigned char *addr; ?? Various C's are variously picky about having all those extra bits match up. You can also cast, but that would be evil. BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist