In response to why, I want to be able to access registers via a web page. Currently I have to change the c code to accomodate a new register that I am interested in. I can use javascript to process, update and modify registers. This way it makes it almost universal in that I DONT have to hard code everytime I want to refer to another register. Currently I refer to a register in the HTML code by a variable, as the HTML page is accessed it replaces the variable with the contents of the related variable and I have to hardcode to cater for any future additional registers I want to access. With this method I just need to change the javascript to tell the pic program which address I want to modify or read. Again this points back to the fact the pic is rated for only 100 writes but the flash that contains the html/javascript has many more write cycles. > > Why do you want to have the addresses of registers hard-coded when > the compiler already provides them for you? If you need a pointer to > the register, take its address just like any other object: > > addr = &LATG; > > > > That's the compiler telling you that what you're trying to do is a bad > idea. It can be done, but why do you want to do it? > > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist