![]() | ![]() | ![]() |
| | |||||||
| 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) | ||
| Hello all! I took Lars Petersen's code and tried to program my pic. The code sends alive message, then echoes characters at 9600 bps. The code is compiled to hex by MPLAB IDE. The problem is that some errors appear when I try to program the code using WinPIC or IC-Prog. I don't think that it is a hardware issue as winpic initializes my pic succesfully and the interface test works. WinPic Error log Quote:
Quote:
Last edited by dragonfighter; 13th September 2006 at 02:00 PM. | |||
| |
| | (permalink) | |
| Quote:
Do a READ operation and confirm you can read the Device ID of 16F628A, which is "01 0000 011# ####", i.e. 0x106? or 0x107? where # can be 0 or 1 and ?=0-F. Remember you'll need to pulldown the PGM pin(pin10) even though you are using HV programming.
__________________ L.Chung | ||
| |
| | (permalink) |
| I've seen this thread: http://www.electro-tech-online.com/m...g-pickit2.html However, I have already connected pin rb4/pgm to gnd (I've used an 100K resistor) My programmer is PIC-PG1. ![]() I read my pic and it is empty. Log: Reading 0x000000 - 0x0007FF ... Reading 0x002100 - 0x00217F ... Reading 0x002000 - 0x002007 ... Reading PIC FAILED (maybe blank). | |
| |
| | (permalink) |
| Looks at the following image, if your programmer works then you should also get the device id as I have got. The problem with serial port programmer is that they might not work and it depends solely on the hardware of the serial port on your PC or Laptop. Serial COM port on very old PC usually works but most laptop COM port won't. To check, do a READ operation without the PIC and measure voltage across capacitor C1. You should get about 12~13V. If not, then there is no chance for it to work and you have to try those schematic that use separate power supply.
__________________ L.Chung | |
| |