1 ; main file of the monolyzer project
3 ; author: hackbard@hackdaworld.org
6 ; device specific definition file
7 .include "../include/tn2313def.inc"
95 ; zero and one initialization
113 ; signal ready output
117 ; external interrupt enable
118 rcall INT0_IR_CONF_INIT
121 ; global interrupt enable
128 ; sample as long as there is storage capacity and signal
133 rcall INT0_IR_DISABLE
134 rcall TIMER1_INT_DISABLE
142 ; wait for commands via uart
155 ; reset storage pointer
160 ; transmit number of sampled words
166 ; check amount of sent data
181 ; include subroutines
199 ; check for initial or running state
203 ; configure interrupt for running state
204 rcall INT0_IR_CONF_RUN
207 ; reset timer and start ovf interrupt
211 rcall TIMER1_INT_ENABLE
217 ; write timer value into sram
224 ; check for left capacity
228 ; indicate end of 'c'apacity
244 ; indicate 'o'verflow end