Depends which one you are talking about. The first post example is in PicBasic (check out www.melabs.com for software). The application note example for AN1076 is in assembly: http://www.microchip.com/stellent/id...pnote=en527825