* The PWM period is 1/Fxosc.
100C Set port 1 wake-up and interrupt function. Write only.
* An '1' in this register will set the wake-up and interrupt function of the corresponding
pin of port 1 to be enable. That is, the chip will be waked up and an interrupt will be
generated if a low level is detected in the pin.
* If port 1 are used as key inputs, there are several interrupts will be generated during
key pressing or release. This is caused by key bounce. It is suggested to enable the
wake-up function by set this register and disable the port1 interrupt by reset the bit 0
of $100F.
* The default values for each bit is zero.
100D Timer 1 data. Read & write.
* Before writing $100D, the program should select timer clock ($100E) first.
* After timer 1 been enabled, the timer will start to count down. When timer counts to
zero, the timer will count from the initial value and IRQ2 will happen.
* Valid values are from 1 to 255. Zero is prohibited.
* If CPU read this register, the value will be 1 to 255. Please note that the CPU will
never read a zero from timer.
* The time elapse = [($100D)+1]/timer clock
100E Timer 1 clock select and contrast setting. Write only.
Bit 2-0 : = 000 CPU clock/2
= 001 CPU clock/4
= 010 CPU clock/8
= 011 CPU clock/16
= 100 CPU clock/32
= 101 CPU clock/64
= 110 CPU clock/128
= 111 CPU clock/256
3 : =0 Disable voltage regulator and voltage double circuit.
= 1 Enable voltage regulator and voltage double circuit.
7-4 : LCD contrast control. The minimum contrast value is zero and the maximum
contrast value is 0FH. The default state is maximum contrast.
The default values of bit 3-0 are unknown.