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.

Delay 1s 8 MHz 16f84a

Status
Not open for further replies.

E-monk

Newbie level 3
Joined
Jul 21, 2010
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Amsterdam
Activity points
1,299
Hi all,

I'm searching for an ASM delay subroutine of 1sec on 8MHz.. with the PIC16F84A.

Could you help me??

Kind Regards,

E-Monk
 

Hi....although i dont have much knowledge about PIC...use timer0 to generate a delay of 50mS...it requires some calcultion like...what is internal clock frequency of the mc...suppose it is 1us...then timer0 increments every 1us...timer overflows after 65536 counts ie (after 65.536ms)...to create a delay of 50ms...(65536-50000): 15536 ie (3CB0 in HEX) load this value in timer...so now timer creates a delay of 50mS...repeating this delay 20 times...will give u a total delay of 1 sec...This was just an idea of implementing...I do this in 8051...The timing values will definately change...try implementin it....Regards.
 

    E-monk

    Points: 2
    Helpful Answer Positive Rating
thanks!
i did already think about that, but my problem was that the TIMER just had 65536 options.. - 65.536ms, not enough!
thanks.. again!
 

srry...but i didnt get with ur word "65536 Options"..it should everytime overflow at this points...the change might be in the timing ms or us...
 

my problem was that the TIMER just had 65536 options

you need to read some programming books and many times the device's datasheet.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top