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.

How to generate a microsecond delay using Bascom 8051?

Status
Not open for further replies.

zohaib

Member level 4
Joined
Aug 24, 2007
Messages
77
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Location
PAKISTAN
Activity points
1,749
hello every one
what are the good resources on the net for learning bascom avr?
how can i generate a delay of microsecond using bascom 8051?
 

medra

Full Member level 3
Joined
Oct 15, 2006
Messages
150
Helped
37
Reputation
74
Reaction score
6
Trophy points
1,298
Location
Egypt
Activity points
2,023
bascom wait 1 microsecond


hi
the program help is good but may not satisfu you
dor the delay of 1 usecond , i think there is no basic command for that , but u could use the assembly comand 'nop' inside the basic code
 

    zohaib

    Points: 2
    Helpful Answer Positive Rating

elec-eng

Full Member level 5
Joined
Nov 16, 2006
Messages
243
Helped
20
Reputation
40
Reaction score
5
Trophy points
1,298
Activity points
2,926
basecom learning for avr

there is a command in bascom to wait the desired number of melli seconds

here it the command


WAITMS mS

for example

WAITMS 5

which waits for 5 ms
 

segmex

Advanced Member level 4
Joined
Oct 25, 2006
Messages
114
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,298
Activity points
1,828
bascom usec

yes it does have

wait 1

waits for 1 sec

waitms 1

waits for 1 milisec

waitus 1

wait for 1 usec
 

    zohaib

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

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top