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.

Sending high frequency pulse with 8051

Status
Not open for further replies.

sysysy

Member level 3
Joined
Nov 11, 2010
Messages
56
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Activity points
1,801
May i know is it 8051 manage to send high frequency square pulse such as 40khz or 25 micro second for a period pulse out from their pin? (ultrasonic use purpose)

as i know, 8051 only support max 24mhz crystal and after divide 12cycles per instruction mean every instruction it will take 0.5micro.

in this case, if we use interrupt to make the pwm for 40khz pulse. then is it work?

Any idea or amendment?

thanks.

regards.

sysysy
 

use timer to generate the delay of 25 micro seconds
 
  • Like
Reactions: chuduc

    chuduc

    Points: 2
    Helpful Answer Positive Rating
That mean interrupt every 12.5 micro seconds set high the pin and another 12.5 set low the pins...it shud be work rite?
 

A 50% duty cycle clock can be programmed to come out on P1.0. ranging from 61 Hz to 4 MHz at a 16 MHz operating frequency. juste take a look at datasheet page 10.

�(65536RCAP2H, RCAP2L)
 

Attachments

  • 8XC51_8XC52.pdf
    257.8 KB · Views: 85

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top