Beeper for SC126
P. Žampach (pavelzampach@gmail.com), 2021

SC126 has ability to switch Flash ROMs by bit 1 of internal port ($0C), but in this time there is no software
using this feature. This option can be used for enabling simple beeper for SC126.

Hardware
is very simple. Small (11 mm) piezo buzzer is connected directly to edge pins of P9 header.

Software

RomWBW 3.01
In customization file (f.e. SCZ180_126_CUST.ASM) add line

SPKENABLE	.SET	TRUE

and in file SPK.ASM change line

	XOR	%00000100		; Flip bit 2.
to
	XOR	%00000010		; Flip bit 1.

Unfortunatelly in this issue the beeper driver is not accessible for applications and only beeps at boot time (-:

RomWBW 3.1 (preview)
In customization file (f.e. SCZ180_126_CUST.ASM) add line

SPKENABLE	.SET	TRUE

and in file SPK.ASM change line

SP_RTCIOMSK	.EQU	00000100B
to
SP_RTCIOMSK	.EQU	00000010B

In this issue the beeper driver is accessible for applications (new HBIOS functions), but duration of tone is
fixed to 1 sec.