339
Programmable Hardware Manual (PHM)
© Tibbo Technology Inc.
Mates with:
See also:
Details
Tibbit #31 is based on the PIC16F1824 microcontroller and takes advantage of the
rich peripheral set available on this PIC device. The I2C interface is used for
communications with the main CPU of the
upgrades. Four of the micro's I/O lines act as IO1~4 lines of the Tibbit module:
·
Three lines have PWM capability;
·
All four lines can work as ADC inputs;
·
Two lines can act as TX and RX of the PIC's UART;
·
Each line can also function as a a regular input/output.
Three PWM channels are exposed through lines IO1~3. Each channel allows you to
independently set its frequency and the pulse width (duty cycle). The frequency is
controlled through a divider and a period value. The divider selects the base
frequency for the PWM channel. Available choices are 32MHz, 8MHz, 2MHz, and
500KHz. The output signal of the PWM can then be programmed to have the period
equal to 4~1024 base frequency periods in 4-period steps (i.e. 4, 8, 12,...1020,
1024). This gives you the output range from 8MHz down to 488Hz. The PWM pulse
width can be programmed to have the period equal to 1~1024 base frequency
periods in 1-period steps (1, 2, 3,... 1023, 1024).
The analog-to-digital converter has the resolution of 10 bits and the input range of
0~5V.
The UART has standard capabilities that include programmable baudrate, parity bit,
and the choice of the 8-bit or 9-bit operation.
Combine this Tibbit with
(DB9M connector). It's
not common but possible to use the latter for wiring into this Tibbit. The Tibbit