Skip to content
YatingATEIC edited this page Aug 2, 2016 · 2 revisions

Syntax

BUZZER <#ms>, <frequency>
BUZZER OFF

Description

Buzzer function is a fast and easy setup for buzzer use without interrupting other timers. Buzzer function is set up at P1(0).

When BUZZER <#ms>, <frequency> is entered, it assumes starting buzzer function immediately. <#ms> is the period of the buzzer on/off. <frequency> is the PWM frequency.

Buzzer function is turned off when calling OFF.