![]() | ![]() | ![]() |
| | |||||||
| 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 found this fun project on the web. 3 channel IR remote control Link > http://www.sixca.com/eng/articles/remote/index.html There is two hex files for Tx and RX. I was able to program Rx hex file to PIC12F629. But when im trying to program Tx its giving me this error.. ![]() What will be the prob? Thanks Here r the HEX and ASM files | |
| |
| | (permalink) |
| My by Code Protect problem? Modify row: Code: __config _WDT_OFF & _XT_OSC & _CP_ON & _CPD_ON & _BODEN_OFF & _MCLRE_OFF & _PWRTE_ON Code: __config _WDT_OFF & _XT_OSC & _CP_OFF & _CPD_OFF & _BODEN_OFF & _MCLRE_OFF & _PWRTE_ON | |
| |
| | (permalink) |
| Hi, It is perfect- as the program is with code protect. thus it will read as 0000 only. try to programm without verification or modify the asm file config bits _CP_OFF instad of _CP_ON SIMILARLY _CPD_OFF AFTER THAT SAVE THE FILE WITH ANOTHER NAME BUID THE HEX FILE WITH mplab AND THEREAFTER YOU TRY TO PROGRAMM. THIS PROBLEM WILL BE AVOIDED. ATTACHED SUCHA BUILD HEX FILE FOR READY USE.
__________________ Regards, Sarma. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Oh yaaaaa...... My problem is now solved Thanks guys | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Might be? Must be for commercial project. Code Protect has not prevented me from programming devices from within MPLAB IDE or PICKit Software using either a PICKit or an ICD2 clone. Their softwares verify the code but I suspect the verification is done DURING the programming. WinPIC800 and other third parties verify AFTER the programming. Code protection should not be an inhibitor to programming. Perhaps Microchip programming software does not actually verify when Code Protection is set, unlikely. I attempted to get some info but the forum over there was just cleaned out. Anyhow, Code Protection should not burden the act of programming, and if there are softwares in existence that make it so, then that software ought to not exist. Or if Code Protection in itself burdens the act of programming, then it ought to be revised because Verification of code and Code Protection are a must. | |
| |
| | (permalink) | |
| Quote:
1) You verify every word after it's written, so a failure is found without having to write the entire device, WinPicProg always does this. 2) You verify all of the device after it's all written, in WinPicProg this option can be disabled in the menu. As for code protection, you first write program memory and verify it, you then write data memory and verify it, last of all you write the configuration word(s) - once you've done that, with code protection set, you can't verify it. So you have either the option of disabling verification of the config word, or simply displaying a failure message - WinPicProg displays a failure message, because it's a sensible indication that you've set code protection ON. But I'll repeat again - DON'T SET CODE PROTECTION UNLESS THERE'S A GOOD REASON - generally there's no need whatsoever, and it's completely pointless. You've perhaps all seen posts on here asking about breaking the protection on PIC's, claiming they have lost the source code for their program and need to be able to read the HEX file back out?. Personally I consider all such posts are lies, they are just trying to steal someone elses work - if it's NOT a lie, then they are just incredibly stupid, and if they have written it once, they can write it again!. | ||
| |
| | (permalink) |
| Code protection doesn't stop the PIC being erased. It stops the code being read by others. The microchip programmers do this:- Erase Program the code Verify the code Program the configuration bits, which stops the code being read if code protection is on | |
| |
| | (permalink) | |
| Quote:
For EEPROM or FLASH parts erasing shouldn't be a problem, but if there's no reason, why do it?. | ||
| |
| | (permalink) |
| Incidentally this is a case where the source code is published along with HEX file- there is no purpose of enabling code protection-- perhaps the code writer did it inadvertantly.
__________________ Regards, Sarma. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
__________________ Regards, Sarma. | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Woow... that 3 channel IR remote controler is workin nicely. I already connect it to my Room Lights | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| programmer! | 4electros | Micro Controllers | 8 | 12th November 2007 08:48 PM |
| Question about Inchworm+ | Quan | Micro Controllers | 54 | 28th October 2007 01:21 AM |
| pic programmer | zoharl | Micro Controllers | 1 | 18th October 2007 06:01 PM |
| New to PICs but looking for somewhat simple PIC programmer to build | tdg8934 | General Electronics Chat | 6 | 10th October 2007 06:45 AM |
| PIC programmer & WinPicProg: my findings | eblc1388 | Micro Controllers | 5 | 27th August 2005 12:13 PM |