Keil Logo Arm Logo

Discussion Forum

Generation of 18k square wave

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Rizwan Ishaq
Posted
29-Sep-2006 05:23 GMT
Toolset
C51
New! Generation of 18k square wave

How to generate the 18kHz sqaure wave using 8051

Read-Only
Author
Andy Neil
Posted
29-Sep-2006 08:46 GMT
Toolset
C51
New! RE: Generation of 18k square wave

Easy: just toggle a port pin once every 28ms!

Read-Only
Author
Andy Neil
Posted
29-Sep-2006 08:51 GMT
Toolset
C51
New! RE: Generation of 18k square wave

Now, here are the links to the so-called "bible" for the 8051 - see what you can find that might enable you to toggle a port pin once every 28ms:

Chapter 1 - 80C51 Family Architecture:
http://www.nxp.com/acrobat_download/various/80C51_FAM_ARCH_1.pdf

Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set:
http://www.nxp.com/acrobat_download/various/80C51_FAM_PROG_GUIDE_1.pdf

Chapter 3 - 80C51 Family Hardware Description:
http://www.nxp.com/acrobat_download/various/80C51_FAM_HARDWARE_1.pdf

Also check the datasheet for the particular chip that you're using - it may have other useful features...

Read-Only
Author
clever dick
Posted
29-Sep-2006 10:02 GMT
Toolset
C51
New! RE: Generation of 18k square wave

28uS :-)

Read-Only
Author
Andy Neil
Posted
29-Sep-2006 15:00 GMT
Toolset
C51
New! seconds - not siemens!

Actually, 28us !! ;-)

Read-Only
Author
erik malund
Posted
2-Oct-2006 14:45 GMT
Toolset
C51
New! RE: seconds - not siemens!

even easier:
use the PCA
of course, if you insist on using some antique or 'simple' chip, that does not apply

Erik

reference:
The PCA cookbook
http://www.intel.com/design/mcs51/applnots/270609.htm

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.