I made an assembler program for a PIC16F874 to control the PI-1's timing. It has two hex rotary switches to set timing. A LED indicates if the setting overrides the set frequency (when timings are too long to fit in the set period), if so... the second sample delay is set back to 120us automatically. I even started on a program for an 4x20 LCD whith a menu system, but that would require 2 PICs, one for timings and one for driving the LCD, so I'm starting with the hex switches.
I am also working on the PCB that includes the PIC.
Is this of interest??
I havent tested it yet... but when I'm finnished building it, I thought I should post it on this forum.
Regards
Peter Morf
Sweden
; SPECS:
;
; Frequency: 800-2300 Hz in 15 steps of 100Hz
; Pulse width: 15-75us in 15 steps of 4us
; Sample pulse width: 15-75us in 15 steps of 4us
; Sample delay: 4-79us in 15 steps of 5us (from the end of the TX pulse)
; Sec. sample delay: 0-256us in 15 steps of 16us (from the end of the 1:st sample)
;
; Auto correction and indication when frequency overrides
; __15-75__________________________________________
; Pulse*: |___|
; _________________ 15-75 _________________________
; 1:st Sample*: < 4-79us >|_____|
; _______________________________________ 15-75 ___
; 2:nd Sample*: |_____|
; *
;************************************************* **********
; *
; _______________ *
; |____ \_____/ | *
; -|MCLR RB7||RA0/AN0 RB6||RA1/AN1 RB5||RA2/AN2 RB4||RA3/AN3 RB3|
I am also working on the PCB that includes the PIC.
Is this of interest??
I havent tested it yet... but when I'm finnished building it, I thought I should post it on this forum.
Regards
Peter Morf
Sweden
; SPECS:
;
; Frequency: 800-2300 Hz in 15 steps of 100Hz
; Pulse width: 15-75us in 15 steps of 4us
; Sample pulse width: 15-75us in 15 steps of 4us
; Sample delay: 4-79us in 15 steps of 5us (from the end of the TX pulse)
; Sec. sample delay: 0-256us in 15 steps of 16us (from the end of the 1:st sample)
;
; Auto correction and indication when frequency overrides
; __15-75__________________________________________
; Pulse*: |___|
; _________________ 15-75 _________________________
; 1:st Sample*: < 4-79us >|_____|
; _______________________________________ 15-75 ___
; 2:nd Sample*: |_____|
; *
;************************************************* **********
; *
; _______________ *
; |____ \_____/ | *
; -|MCLR RB7||RA0/AN0 RB6||RA1/AN1 RB5||RA2/AN2 RB4||RA3/AN3 RB3|
Comment