Tell us about yourself!
Sorry babooim82,I don't quite understand what do you mean for "the test result of 24c256"
No problems. I am really happy this can help you.
Hi,I have a quick look at your datasheet and this may be related. Your chip has a write enable command and you need to send this command before you can write. You even need to send this command if you want to read the write status.I cannot remember what command I have sent before write or I did not send any command at all. Let me check the source code. If I did not send any command, I may modify the source code to send it before write operations. I will get back to you later.
Hi,Eash chip may has its own timing requirement.For example, for ATMEGA8.You can check the datasheet and search Parallel Programming. You should be able to find required information in the "Enter Programming Mode section.
Hi Francis,It is so good to hear that you have got it working properly now. Unfortunately, I don't have much time to do so many translations at the moment. (Maybe in the future once I can have some time) Moreover, USBIOX.dll is just a wrapper for native DLLs and does not have any logic inside. (The comments comes from the WCH C library) It should not impact your understanding of the code logics.
Hi Francis,I have never got that Exception before. However, you may try the following and test again. Change your windows default language to English instead of French and try again. You can change it back once you have tested. This can help to test whether it is related to the charset you are using or not.
Hi Francis,I have run out of ideas. I have never got this error before. I think you may need to download the source code, run it in debug mode and see what is the actual exception.
Hi Francis,Would you mind post a screenshot of the exception you have got?
Hi Francis,I think you have not get your driver installed correctly. There are 2 drivers for CH341A, one is the SER mode which you can use it as a USB-TTL adaptor; the other one is EPP mode which is the programmer use. You may had download the SER driver instead of the EPP one.V1.0 does not include programmer detection and it may not report correctly. Mine is having the same VID/PID as yours, once you have got the correct driver installed, you will see it from the device manager as the screenshot below.
Hi Microrusfy,I don't have any 24C256 chips and the code is programmed based on the datasheet. I had not test the code on a 24C256. The only 24 series chip I have is 24C02 and that one is tested. I have checked the source code and the the 2 byte address chip's address may not get calculated correctly. The version 1.01 has been updated with a fix. Please have a try and let me know how it goes as I cannot test it. I will order some 24C256 from Aliexpress to test out but it will take some time to arrive. Good luck mate.
You may also try this version (with 24LC256 in its name) which will write byte by byte instead of by page. Make sure choose 24C256_1 and this option will force the programmer to write byte by byte rather than page by page.
Thanks for your suggestion. I will look into it when I have time.
Hi RobotBlack,As your HVPP module is broken, you will need to be careful when applying fuses. HVPP suppose to be the last hope to recover a chip. Good luck and happy making!
Hi RobotBlack,Can you read the chip ID out? Does the ID read out match the correct one?I do have a few dead chips and all of them cannot read the correct ID out or the ID read out did not match the correct one.Sure, please check your wiring as well. Make sure all these wires are connected as per in the program. The parallel programming use a lot of chip legs. If any of them are wrong, it will not work. Anyway, check the chip ID first. If you can read the correct ID out, it means you have got the chip connected correctly.
Hi RobotBlack,You may need to earse the chip before you can program it again. Please try to click on the "Earse Chip" button on the UI, then reconnect to the chip and try to program it again.
CH341A ProgrammerView Instructable »
HID Keyboard Controller for Project Diva Aracade Future ToneView Instructable »
Hi Pamod,Normally you should use the ISP to program your ATMEL micro-controllers as it is quicker and easier to use. However, if your chip is locked or you have set the wrong fuse, you will not be able to connect to the chip and cannot program it anymore. If that happens, you will need to use HVPP (High Voltage Parallel Programming) to rescue your chip. HVPP allow you to connect to your chip and program it no matter what settings have been set.This is based on the ATMEL datasheet, you will need to process a few steps to enter the HVPP mode. One step is to apply 12V to RST pin. If you don't do that, it will not enter the HVPP mode. Your micro-controller did not use power from RST pin and you will still need to supply 5V to its VCC pins.
Hi Mario0603,There should not be much difference from my experience. Download the datasheet first (http://ww1.microchip.com/downloads/en/DeviceDoc/atmel-8160-8-bit-avr-microcontroller-atmega64a-datasheet.pdf), from page 394, it should all pinouts for the parallel programming and all command you will need to send. I did not check it carefully, but if there are any differences, you may change the source code to get it working. I will check it later once I have time and I will update the source code to support it if required.
Hi fefcas,I have updated sketch to match the schematics. Thanks again to find out that mistake I have made.
AVR HVPP ConfiguratorView Instructable »