Common Lisp Package: CLUCK

README:

FUNCTION

Public

AVR-UART-DIVISORS (&OPTIONAL (F-CPU *F-CPU*) (VIEW-BELOW-PERCENT NIL))

Displays the divisor UBRR and error percent for various baud rates for F_CPU. UBBR is limited to 12 bits.

PIC-UART-DIVISORS (&OPTIONAL (FCY *F-CPU*) (VIEW-BELOW-PERCENT NIL))

Displays the divisor BRG and error percent for various baud rates for Fcy. BRG is limited to 16 bits.

SHOW-32-BIT-TIMERS (&OPTIONAL (F-CPU *F-CPU*))

Show max/min periods for 32-bit timers. For 16-bit PIC controllers, 32-bit timers use 8-bit prescalers

Undocumented

SHOW-16-BIT-TIMERS (&OPTIONAL (F-CPU *F-CPU*))

SHOW-8-BIT-TIMERS (&OPTIONAL (F-CPU *F-CPU*))

SHOW-TIMERS (F-CPU PRESCALERS WIDTH)

ZERO-ERROR-UART-CLOCKS

Private

DTMF-WAVEFORM (KEY DURATION SAMPLE-FREQ &KEY (MIN -1.0d0) (MAX 1.0d0) (ELEMENT-TYPE 'DOUBLE-FLOAT) &AUX DTMF-RECORD)

Returns the DTMF waveform of a key code for duration seconds at a sample frequency of sample-freq. Waveform normalized to -1 to 1 output.

MS-TIMER (MS &OPTIONAL (F-CPU *F-CPU*))

Returns the prescalar and compare count for both 8 and 16 bit timers.

MS-TIMER-WIDTH (MS F-CPU PRESCALARS WIDTH)

Returns the prescalar and compare count for both 8 and 16 bit timers.

Undocumented

DTMF-RATIOS

WRITE-DTMF (FILE KEY DURATION SAMPLE-FREQ &KEY (DELIMITER ) &AUX WAVE)

VARIABLE

Private

*BASE-ERROR-ZERO-BAUD-CLK*

Base multiple for multi-megahertz clock frequencies to have 0% error at common UART baud rates. Value of this base is 1.8432 million. Common multiples of this are 2 (3.6864Mhz), 4 (7.3728Mhz), 8 (14745600), and 10 (18.432MHz)

Undocumented

*10-BIT-PRESCALARS*

*8-BIT-PRESCALARS*

*F-CPU*

CONSTANT

Private

Undocumented

+BAUD-RATES+

+DTMF-TONES+