deepakomanna
Joined: 06 Mar 2007 Posts: 92 Location: Pune,India
|
damaging 12f629 |
Posted: Wed Aug 29, 2007 10:42 pm |
|
|
Dear Sir,
here i am using 12f629, MPLAB 7.5 Ver. & CCS PCM C Compiler, Version 3.249, 34534.
for testing only i did this simple programe,
Code: | #if defined(__PCM__)
#include<12F629.h>
#fuses INTRC_IO,NOWDT,PUT,NOMCLR,PROTECT,NOCPD,BROWNOUT
//Internal RC Osc, no CLKOUT,No Watch Dog Timer,Power Up Time ON,Internal MCLR,Code Protect ON,No EE protection,Brownout detect ON,
#use delay(clock = 4000000) // INTERNAL 4 MHz FREQ.
void init_CPU();
void main()
{
init_CPU();
while(TRUE)
{
OUTPUT_HIGH(PIN_A0);
DELAY_MS(500);
OUTPUT_LOW(PIN_A0);
DELAY_MS(500);
OUTPUT_HIGH(PIN_A1);
DELAY_MS(500);
OUTPUT_LOW(PIN_A1);
DELAY_MS(500);
OUTPUT_HIGH(PIN_A2);
DELAY_MS(500);
OUTPUT_LOW(PIN_A2);
DELAY_MS(500);
OUTPUT_HIGH(PIN_A3);
DELAY_MS(500);
OUTPUT_LOW(PIN_A3);
DELAY_MS(500);
OUTPUT_HIGH(PIN_A4);
DELAY_MS(500);
OUTPUT_LOW(PIN_A4);
DELAY_MS(500);
OUTPUT_HIGH(PIN_A5);
DELAY_MS(500);
OUTPUT_LOW(PIN_A5);
DELAY_MS(500);
}
}
void init_CPU()
{
PORT_A_PULLUPS(0x00);
SET_TRIS_A(0x00); SETUP_COMPARATOR(NC_NC_NC_NC);
}
|
I was tested on this using bread-board. And at o/p i have connected LED
Here no led is flashig also it was damaging 12f629.
Any suggestion appriciated _________________ Thank You,
With Best Regards,
Deepak. |
|