.Divider Property

Top  Previous  Next

 

Function:

Sets the frequency of the square wave output on the CO line.

Type:

Word

Value Range:

0-65535, default= 1 (divide by 2)

See Also:

---

 


Details

Actual frequency can be calculated as base_frq/(2*beep.divider). Setting this property to 0 is equivalent to 65536 (i.e. actual frequency will be  base_frq/131072).

Base_frq depends on your platform — you will find this information in your device's platform documentation (for example, EM1000's is here).

Most low-cost buzzers have resonant frequency at which they emit the loudest sound. Check the specifications for your buzzer and set the divider accordingly.