The COM register
The $B0 register is detailed first because it controls various diverse aspects of BLINK operations:
Bit Name Function7 SRUN Speaker source (0=SBIT, 1=TxD or 3200 Hz)6 SBIT SRUN=0: 0=low, 1=high; SRUN=1: 0=3200 Hz, 1=TxD5 OVERP Set to overprogram EPROMs4 RESTIM Set to reset the RTC, clear to continue3 PROGRAM Set to enable EPROM programming2 RAMS Binding of lower 8K of segment 0: 0=bank 0, 1=bank 201 VPPON Set to turn programming voltage ON0 LCDON Set to turn LCD ON, clear to turn LCD OFF
The two speaker control bits operate in the following fashion:
SRUN SBIT Effect0 0 Speaker line low0 1 Speaker line high1 0 Speaker line oscillates at 3200 Hz1 1 Speaker line attached to Tx data (Tx data still output to comms. port)
RAMS is cleared on reset thus paging in ROM at logical addresses $0000 to $1FFF. This is necessary since the Z80 program counter is loaded with zero on reset. In normal operation RAMS is set and the lower 8K is the system RAM, which is also used for application static workspace and stack.