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.

Pic not running anything

Status
Not open for further replies.

GatorGnet

New Member
Is it possible for a pic to be fried from over voltage and not run its code but still be able to be programmed and read on a programmer?
 
Just as a double check, this is the ASM that picbasic Pro made. Maybe something is wrong with it.

Code:
PM_USED			EQU	1

	INCLUDE	"16F628A.INC"

RAM_START       		EQU	00020h
RAM_END         		EQU	0014Fh
RAM_BANKS       		EQU	00003h
BANK0_START     		EQU	00020h
BANK0_END       		EQU	0007Fh
BANK1_START     		EQU	000A0h
BANK1_END       		EQU	000EFh
BANK2_START     		EQU	00120h
BANK2_END       		EQU	0014Fh
EEPROM_START    		EQU	02100h
EEPROM_END      		EQU	0217Fh

R0              		EQU	RAM_START + 000h
R1              		EQU	RAM_START + 002h
R2              		EQU	RAM_START + 004h
R3              		EQU	RAM_START + 006h
R4              		EQU	RAM_START + 008h
R5              		EQU	RAM_START + 00Ah
R6              		EQU	RAM_START + 00Ch
R7              		EQU	RAM_START + 00Eh
R8              		EQU	RAM_START + 010h
FLAGS           		EQU	RAM_START + 012h
GOP             		EQU	RAM_START + 013h
RM1             		EQU	RAM_START + 014h
RM2             		EQU	RAM_START + 015h
RR1             		EQU	RAM_START + 016h
RR2             		EQU	RAM_START + 017h
_PORTL           		EQU	 PORTB
_PORTH           		EQU	 PORTA
_TRISL           		EQU	 TRISB
_TRISH           		EQU	 TRISA
#define _l1              	_PORTB_4
#define _l2              	_PORTB_5
#define _PORTB_4         	 PORTB, 004h
#define _PORTB_5         	 PORTB, 005h
	INCLUDE	"TEST.MAC"
	INCLUDE	"PBPPIC14.LIB"


	LABEL?L	_go	
	HIGH?T	_l1
	PAUSE?C	0012Ch
	LOW?T	_l1
	PAUSE?C	0012Ch
	HIGH?T	_l2
	PAUSE?C	0012Ch
	LOW?T	_l2
	PAUSE?C	0012Ch
	HIGH?T	_l1
	PAUSE?C	0012Ch
	LOW?T	_l1
	PAUSE?C	0012Ch
	HIGH?T	_l2
	PAUSE?C	0012Ch
	LOW?T	_l2
	PAUSE?C	0012Ch
	HIGH?T	_l1
	PAUSE?C	0012Ch
	LOW?T	_l1
	PAUSE?C	0012Ch
	HIGH?T	_l2
	PAUSE?C	0012Ch
	LOW?T	_l2
	PAUSE?C	0012Ch
	HIGH?T	_l1
	HIGH?T	_l2
	PAUSE?C	0C8h
	LOW?T	_l1
	LOW?T	_l2
	PAUSE?C	0C8h
	HIGH?T	_l1
	HIGH?T	_l2
	PAUSE?C	0C8h
	LOW?T	_l1
	LOW?T	_l2
	PAUSE?C	0C8h
	HIGH?T	_l1
	HIGH?T	_l2
	PAUSE?C	0C8h
	LOW?T	_l1
	LOW?T	_l2
	PAUSE?C	0C8h
	HIGH?T	_l1
	HIGH?T	_l2
	PAUSE?C	0C8h
	LOW?T	_l1
	LOW?T	_l2
	PAUSE?C	0C8h
	HIGH?T	_l1
	HIGH?T	_l2
	PAUSE?C	0C8h
	LOW?T	_l1
	LOW?T	_l2
	PAUSE?C	0C8h
	GOTO?L	_go

	END
 
Last edited:
Is it possible for a pic to be fried from over voltage and not run its code but still be able to be programmed and read on a programmer?

No, it's far more likely you've made a mistake in the code, or in the construction - in your other thread you were certainly not connecting things properly.
 
I added the caps to the power and switched to proper resistors but I am still not getting anything.

I'm starting to thing it is a programming issue. As of today, I noticed that the pic is not programming right. I have tried a couple of different program software but I usually have good luck with yours Nigel.

It reads the pic and shows what was last programmed but it wont program anything new now. If I read the pic then reprogram it with what was already on, it verifies. But anything new fails. It will not erase it either.
 
Hi, Gator

Why not simply post your PBP source code .... ???

this kind of post is quasi-unreadable for 99% of forumers - PicBasicPro users included -

to me ... you just forgot to declare your ports as outputs ...

you could have disabled the comparator section ...

AND, to the end ... the default osc setting being XT ... did you ALSO place the XTAL and its caps ??? ...

Alain
 
Last edited:
Status
Not open for further replies.

Latest threads

Back
Top