How can I program the buzzer?

How can I program the buzzer?

The Portux-Panel-PC has an inductive buzzer, which is connected to processor pin PB06. It can be used by programming a 2KHz PWM signal on Pin PB06. How this can be done is demonstrated in this example program:
http://www.armbedded.eu/download/software/buzzer-portuxpp.tar.gz