> -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of cdb > Sent: Sunday, November 03, 2002 6:31 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: 18F series program coding question APOLOGY > > I'm a little confused, according to a Microchip document, when > writing to a Port they advise using the LAT instruction, I assume > this gets around the RWM problem, however the example code offered by > Microchip and from others floating around don't use it. Microchip did not take special care to craft examples SPECIFICALLY for the 18 series, they just cloned the same old examples, there are SEVERAL mistakes in their 18 series code... beware! > > I realise that it doesn't have to be used, but if its there and does > get around the RWM problem, why aren't people taking advantage of it? I can not speak for other people, but I have been "burned" enough times by errors in Read Modify Write (RMW) that I globally replaced all PORT writes to LAT(s) in my PIC18C452 code. For me it's not a case of advantage but necessity! > > Colin > -- > cdb, cdb@barnard.name on 01/11/2002 > > > > -- > cdb, bodgy1@optusnet.com.au on 03/11/2002 > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > * | __O Thomas C. Sefranek WA1RHP@ARRL.NET |_-\<,_ Amateur Radio Operator: WA1RHP (*)/ (*) Bicycle mobile on 145.41, 448.625 MHz http://hamradio.cmcorp.com/inventory/Inventory.html http://www.harvardrepeater.org -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu