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 5th December 2007, 03:55 AM   (permalink)
Arrow PIC12F675 Verify Failed

I'm trying to program PIC12F675 with internal RC oscillator & MCLR OFF but it always giving an error in winpic800.Telling that you have a bandwidth error.

My programmer is modified JDM type VPP controllable one.

The default factory calliborated value was 3440 (retlw 40).

What do I have to do please help me.

Code:
	List		P=12F675
	#include	<P12F675.INC>
	errorlevel	-302
	__CONFIG   _CP_OFF & _CPD_OFF & _BODEN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_OFF & _INTRC_OSC_NOCLKOUT


	call	0x3FF
	BSF 	STATUS, RP0
	movwf	OSCCAL
	clrf 	TRISIO					
	BCF 	STATUS, RP0
	goto	Start


	org	0x3FF
	movlw	20h

	end

Last edited by Suraj143; 5th December 2007 at 03:58 AM.
Suraj143 is online now  
Old 5th December 2007, 04:02 AM   (permalink)
Default

Does the WinPIC800 software know how to handle VPP before VDD? I've not seen a JDM with that option.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 5th December 2007, 04:03 AM   (permalink)
Default

I don't know Lol then what software do I have to use?
Suraj143 is online now  
Old 5th December 2007, 04:04 AM   (permalink)
Default

Why, when you know that the factory calibration value is retlw 0x40, do you put movlw 0x20 in the calibration location. This will just cause your code to crash.

I don't know WinPic800.

Mike.
Pommie is offline  
Old 5th December 2007, 04:06 AM   (permalink)
Default

I always found WinPic to be the most reliable with JDM type programmers.

Mike.
Pommie is offline  
Old 5th December 2007, 04:09 AM   (permalink)
Default

Hi Mike I tried 0x40 also but didn't help me.
Doing a long coding for 5 hours continuously this gives me a damn error.I'm really upset I went to sleep.But this morning also same problem.
Suraj143 is online now  
Old 5th December 2007, 04:15 AM   (permalink)
Default

Quote:
Originally Posted by Suraj143
Hi Mike I tried 0x40 also but didn't help me.
But movlw 0x40 will also crash your code. It has to be retlw 0x40.

Mike.
Pommie is offline  
Old 5th December 2007, 04:26 AM   (permalink)
Default

Why are you writing your own calibration value? That value should be preprogrammed at the factory.

PS I misread your original post, yes it appears most JDM can control VPP. *they don't seem to control VDD.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 5th December 2007, 04:27 AM   (permalink)
Default

Quote:
Originally Posted by Pommie
But movlw 0x40 will also crash your code. It has to be retlw 0x40.

Mike.
A good point I'll try & see.BTW I'm going to try your WINPIC also.Thanks for that.
Suraj143 is online now  
Old 5th December 2007, 04:34 AM   (permalink)
Default

I modified a JDM programmer by powering Vdd with a resistor & 5V zener connected to Vpp. This had the effect of switching Vpp before Vdd. Simple but effective. I think this only works on JDMs with a proper power supply.

This circuit does the same thing.


Mike.
Pommie is offline  
Old 5th December 2007, 04:34 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
Why are you writing your own calibration value? That value should be preprogrammed at the factory.

PS I misread your original post, yes it appears most JDM can control VPP. *they don't seem to control VDD.
The 675 template shows that it needs to call OSCCAL value when using internal oscillator.The original value was deleted by me so I copied with another new 675 PIC & place in the 0x3FF location.

The value was 3440.
Suraj143 is online now  
Old 5th December 2007, 04:43 AM   (permalink)
Default

Quote:
Originally Posted by Pommie
I modified a JDM programmer by powering Vdd with a resistor & 5V zener connected to Vpp. Mike.
That means your MCLR pins voltage is 5V? not 13V? OMG?
Suraj143 is online now  
Old 5th December 2007, 04:59 AM   (permalink)
Default

Code:
INIT				;
	BCF     STATUS,RP0	; select register bank 0
	CLRF	GPIO		; Init GPIO
	movlw	07h		; set GP<2:0> to
	movwf	CMCON		; digital IO
	BSF     STATUS,RP0	; BANK 1
	clrf	ANSEL		; Digital I/O
	MOVLW	B'00000010'	; Set GP<1> Input, 
	MOVWF	TRISIO		; Set GP<0> as Output
	clrf	WPU		; Clear Weak pullup
	bsf	IOCB,IOCB1	; Interrupt on change enable
        call    h'3FF'          ; You have to manually enter this value in the calibration input
        movwf   OSCCAL          ; h'3FF' is where the calibration value is stored. Usually 34xx

	BCF     STATUS,RP0	; BANK 0
	movlw	D'250'		; Time in machine cycles to delay
	movwf	Niks1		; before PIC goes to SLEEP
I use the PICALLW programmer, and it allows a field where the calibration code can be entered (usually 34xx). With the code as shown above, the calibration value is then entered during programming.
SPDCHK is offline  
Old 5th December 2007, 05:05 AM   (permalink)
Default

Quote:
Originally Posted by SPDCHK
I use the PICALLW programmer, and it allows a field where the calibration code can be entered (usually 34xx). With the code as shown above, the calibration value is then entered during programming.
Hi what software you using?
Suraj143 is online now  
Old 5th December 2007, 05:38 AM   (permalink)
Default

Sorry, what I meant was that I use the PICALLW software with a programmer hardware unit I ordered as a kit, (the PICALL programmer)

Here's the link http://www.picallw.com/
SPDCHK is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
IC-Prog 1.06 - Verify failed at address 0000h - bug pdfruth Micro Controllers 9 2nd November 2007 07:24 PM
Question about Inchworm+ Quan Micro Controllers 54 28th October 2007 01:21 AM
verify failed at address 0000h with IC-Prog cucamunga Micro Controllers 41 7th January 2007 11:37 AM
IC Prog error :" Verify failed at address 0x0000" G-nome Micro Controllers 11 28th January 2004 09:12 PM
12C508 problems: Verify failed at code address 0000h ! faz666 Micro Controllers 4 29th July 2003 01:13 PM



All times are GMT. The time now is 02:28 AM.


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

eXTReMe Tracker