![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) | |||
|
Quote:
But when i insert the same PIC into Inchworm it not blink LED. But when i apply direct 5 volts to PORTB.3 in Inchworm IC's Socket then LED turn ON. As i understand this is because MCLR/VPP pin is not pulled up with any resistor to positive supply in Inchworm. Quote:
5 Volts on TP+5 And 12.8 Volts on TP VPP. 5 and 0 volts on IC socket of PIC16F877A at VDD and VSS. Quote:
|
||||
|
|
|
|
|
(permalink) |
|
Have you got LVP enabled in the config?
Mike. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
You mean during the feeding of Firmware(ICD2_Bootloader_A.hex) into PIC16F877A???
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
there are configuration bits (in the target chip memory) that need to be set depending on the type of osillator the Target will use , you eithe set the config bits, to HS high speed , internal , or a few other options. LVP is another option set in the config bits. the config bits are set by either MPLAB or in the assembly program itself. i forget the syntax of the assembly code for the config bits , BUT each target chip has its own , config bits , and they are different , mostly. What is your target chip? |
||
|
|
|
|
|
(permalink) | ||
|
Anyone reading this should note that this is a handbuilt inchworm board not an inchworm kit. To ensure the processor has everything it needs to run we are programming a pic to blink the busy LED on the inchworm.
Quote:
Try hooking a 10K resistor between positive and PIC pin 1. That should pull it high as needed. Finsh this test. get it to blink then look at the RS232 if there is still a problem. Quote:
|
|||
|
|
|
|
|
(permalink) |
|
Many people here got blank Inchworm PCBs from contest entries and such, so its not uncommon. Attached is the 16F877A Inchworm firmware with OS preloaded. And make sure LVP is off when using your TAIT or put a 1K resistor between RB3 and GND on the Inchworm (and then program another 16F877A with the Inchworm) use it and remove the resistor. This will disable the Busy LED but your Inchworm should run even if the chip was programmed with LVP enabled.
|
|
|
|
|
|
|
(permalink) | |
|
Now i tell you from start(I have read the Inchworm ICD2
Assembly Instructions). 1. I received the PCB of Inchworm from BlueRoom electronics free.... without components..... only only PCB. 2. I bought all the components from local market(PIC16F877A etc etc) 3. I assembled then and do some soldring.. 4. I checked my PCB it is looking ok... then i apply electrical power to it. 5. I test PCB at Test Points, the reading are 5 Volts on TP+5 And 12.8 Volts on TP VPP. 6. For checking Serial Cable(RS232) and MAX232, i use a simple terminal program called "Input Output monitor" comes with PICC compiler. I short RC7 and RC6 with a jumper on IC socket of PIC16F877A on Inchworm, i send some data from Terminal, terminal receive same data which i was sent a few micro seconds ago. I remove the jumper from socket and send data again and no data received. It means my cable and MAX232 is right and working corectly. 7. I have another programmer (TAIT Serial Programmer) and it is working... I feed a simple program blinking LEDs into PIC16F877A and for checking that Microcontroller is right...... OO yes. LEDs are blinking on my another develpment board. 8. Now i erase my previous program(blinking LED) and feed a new program "ICD2_Bootloader_A.hex" into PIC16F877A. it programmed successfuly. 9. I turn OFF FIFO of both COM1 and COM2.. and restart my computer 10. I push PIC16F877A into Socket and connect it with Serial port cable. 11. Run MPLAB. 12. I selected ICD2 from programmer menu. and run ICD wizard. 13. I press the connect button but it says Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
Problem solved... Bad crystal.... Thank u answering. In my view crystal should be little above from PCB surface.... I mean crystal not touched with PCB surface.... |
||
|
|
|
|
|
(permalink) |
|
i too was getting #21 error
untill i got my ICD2 oscillator working. have you got another clock source available? i used a 100 ohm resistor , neither part was damaged. and i touched pin 13 of the F877 on the ICD2 board , and clicked connect at the same time , and it worked. EDIT of course the two grounds have to be connected also Last edited by williB; 6th March 2007 at 06:47 PM. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
Hand wiring is how I made the prototype, wasn't as reliable as a pre etched PCB though.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Capacitor Question | LiquidOrb24 | General Electronics Chat | 1 | 9th January 2007 07:21 PM |
| Basic Transmission question | CamNuge | General Electronics Chat | 2 | 8th March 2006 10:08 PM |
| High speed data logging question | cubdh23 | Micro Controllers | 3 | 19th August 2004 11:54 AM |
| Data Logging question with high speed!!!! | cubdh23 | General Electronics Chat | 4 | 16th August 2004 06:33 PM |
| PBX question | waqar | Electronic Projects Design/Ideas/Reviews | 0 | 30th March 2003 06:21 PM |