Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Tinybootloader cant detect my PIC16F877A when second time

Status
Not open for further replies.

lihker

New Member
pls help, when first time to check pic the tinybld show:

Connected to \\.\COM1 at 19200
Searching for PIC ...
Found:16F 876A/877A

then i write flash to the pic:

Connected to \\.\COM1 at 19200
HEX: 23 min old, INHX8M,16Fcode+cfg, total=32 bytes.
Searching for PIC ...
Found:16F 876A/877A
WRITE OK at 15:25, time:0.156 sec

after finish i check pic again, show me this:

Interface to TinyBootLoader, v1.9.8
contact: claudiu.chiculita@ugal.ro

--------------------------------------------------------------------------------------------------

Connected to \\.\COM1 at 19200
Searching for PIC ...
Found:16F 876A/877A

Connected to \\.\COM1 at 19200
HEX: 23 min old, INHX8M,16Fcode+cfg, total=32 bytes.
Searching for PIC ...
Found:16F 876A/877A
WRITE OK at 15:25, time:0.156 sec

Connected to \\.\COM1 at 19200
Searching for PIC ...Not found,
ERROR!

i dont what is the problem hope anyone can help me.tq
Code:
#include <pic.h> 


//========================================================================
//	Configuration
//========================================================================
__CONFIG ( 0x3FF2 );				//configuration for the  microcontroller


//=========================================================================									
//	Define
//=========================================================================
#define	led1		PORTB			//D0~D5 
#define	led2		RA0				//D6
#define	led3		RA1				//D7


//	main function						(main fucntion of the program)
//==========================================================================

void main(void)
{

//set I/O input output
TRISA = 0b00000000;						//configure PORTA I/O direction
TRISB = 0b00000000;						//configure PORTB I/O direction
TRISC = 0b00000000;						//configure PORTC I/O direction
TRISD = 0b00000000;						//configure PORTD I/O direction
TRISE = 0b00000000;						//configure PORTD I/O direction

//program start
	while(1)							//Infinity Loop
	{
PORTA = 0x02;							
PORTB = 0x2A;							
}
}
 
Maybe you have loose connection somewhere or the crystall isn't placed properly (i.e. PIC isn't running).
Recheck everything and try a few times.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top