Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

20ms pulse using PIC16F84A

Status
Not open for further replies.

phyoon

Newbie level 2
Joined
Feb 26, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
hi guys..

i'm a newbie to pic and currently doing my final year project. my question is how to make a 20ms pulse by using a 4mhz pic16f84a? hope sum1 can teach/guiding me.

thx

picnewbie
 

phyoon

Newbie level 2
Joined
Feb 26, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
hmm... i'm sorry i can't get it. cud u explain it for me? generate just a single pulse from pic. it makes me blurish some.

but anyway thanx Giri for the website. :)
 

Sudhir.K.A

Member level 2
Joined
Feb 26, 2006
Messages
46
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,288
Location
Bangalore
Activity points
1,798
First construct a loop structure like the following
(This structure is similar for all processors)
_____________________________________________
delay:
mov a,some_value
dec a
(you can have some nop's in between if you like)
conditional jump to delay( if a == 0)
_____________________________________________

This instructions for the delay routine can be subtituted for a given processor.
now calculate the value the register should be initialised.
If the total delay obtain by this structure is lesser, u can call this structure multiple times.
If more info is required then you can go through the book on PIC by MYKE PREDKO
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top