![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| Does the WinPIC800 software know how to handle VPP before VDD? I've not seen a JDM with that option. | |
| |
| | (permalink) |
| I don't know Lol then what software do I have to use? | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) | |
| Quote:
Mike. | ||
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) | |
| Quote:
The value was 3440. | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| 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 | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| 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/ | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |