Hi tell me anyone how to use the hardware i2c in lpc2148 . Please give any sample example
Probably just that it would require some effort on the OP's part to read it & understand it?
But there's the rub: any other code supplied by anyone else is also going to require effort to read & understand!
The rub here is probably that it takes about 15 seconds, to enter "nxp" "source code" and "i2c" into Google and then get a link to application note an10369.pdf or possibly their source-code bundle.
These 15 seconds are to valuable to spend searching, so it is always better to ask on a forum and request someone else to search.
That a forum request may take several days to get processed while Google will produce results within seconds is an unimportant fact, better to ignore.