Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 10th September 2007, 10:07 AM   (permalink)
Default WDT problem 16F74

Hi guys,

Came across a small poblem when trying to set up the WDT in the 16F74. Firstly i enable it in the config word by writing: & _WDT_ON. Then in the option register i assign the prescaler to the WDT with a value of 1:128 by writing 111 to bits 3/1/0.
This then proceeds to build without any problems, as soon as i try to burn the chip it comes up with this error:

ICD0161: Verify failed (MemType = Config, Address = 0x2007, Expected Val = 0x3FB6, Val Read = 0x3FB2)

When i write &_WDT_OFF this error does not happen any more. Does anyone know what is happening here?

Thanks
imhereithink is offline  
Old 10th September 2007, 10:22 AM   (permalink)
Default

Are you erasing the chip first. It looks like the config value is not getting erased. Try doing a blank check after doing an erase.

Mike.
Pommie is offline  
Old 10th September 2007, 10:28 AM   (permalink)
Default

Hi Mike,

I just erased the chip then a blank check, and you were right it is not clearing the config word, this is what i get when doing the check:

ICD0161: Verify failed (MemType = Config, Address = 0x2007, Expected Val = 0x3FFF, Val Read = 0x3FB2)
...Device not blank

Cheers
imhereithink is offline  
Old 10th September 2007, 10:36 AM   (permalink)
Default

I'm not familiar with the 16F74 and so this may be completely wrong.

I would guess either Vpp is too low or you have a duff chip.

Mike.
Pommie is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Config problem with 16F74 imhereithink Micro Controllers 0 3rd August 2007 08:48 AM
Hardcode a PIC by hand? (or 16F74 + par.port.prog = problem) smilen Micro Controllers 15 21st November 2005 10:23 AM
RF tranceiver problem darvaish General Electronics Chat 2 3rd April 2005 08:44 AM
Creative live 5.1 problem... nassus General Electronics Chat 9 10th June 2004 06:51 AM
Big thermocouple ADC problem Oznog General Electronics Chat 9 4th May 2004 09:42 PM



All times are GMT. The time now is 06:21 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker