Timer

This code programs a/d node 709 to act as a timer.

stop

Value (4155) that stops the a/d counter. This is done to save energy and to avoid heating and slowing the counter when it's not being used.

mode

Saves a and stores value into io

start

Value (6155) that starts a/d. It selects Vss calibration, which is the fastest count.

sol

sol writes to up which waits for the start-of-line pulse. It then reads the counter (dup !b @b).

cal

An infinite loop

go

An infinite loop

init

Normally starts at go. In case of calibrating against a scan line, starts at cal.