Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC Programming . Problem Reg- Time Delay

Status
Not open for further replies.

getshameer

Newbie level 1
Joined
Jun 19, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Iam trying to glow4 LEDS one by one wen the switch is ON.

Well , i got the o/p for small delays(15 ms and all)

Well wen i increased the delay(by changing the delay subroutine) , the first few LEDS were working and the last ones remaiined off.
In the atched file i am giving l1 a value = 5..... wen i cleared the l1 register ( which on decrementinng makes 0xFFh) the problem occured.

Am attaching the Proteus design file and the ASM file.

I need a TIME DELAY of few seconds.

Thank you
 

getshameer said:
Iam trying to glow4 LEDS one by one wen the switch is ON.

Well , i got the o/p for small delays(15 ms and all)

Well wen i increased the delay(by changing the delay subroutine) , the first few LEDS were working and the last ones remaiined off.
In the atched file i am giving l1 a value = 5..... wen i cleared the l1 register ( which on decrementinng makes 0xFFh) the problem occured.

Am attaching the Proteus design file and the ASM file.

I need a TIME DELAY of few seconds.

Hi "getshameer";

Your problem was caused by the PIC's watchdog (was switched on by your config line).
Your modified working DSN project (debuggable) is attached here for you.
Have fun
zuisti
 

    getshameer

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top