1 ; main file of the monolyzer project
3 ; author: hackbard@hackdaworld.org
6 ; device specific definition file
7 .include "../include/tn2313def.inc"
96 ; zero and one initialization
124 ; storage pointer again
128 ; signal ready output
141 ; external interrupt enable
142 rcall INT0_IR_CONF_INIT
145 ; global interrupt enable
152 ; sample as long as there is storage capacity and signal
157 rcall INT0_IR_DISABLE
158 rcall TIMER1_INT_DISABLE
166 ; wait for commands via uart
179 ; reset storage pointer
184 ; transmit number of sampled words
190 ; send data and counter
199 ; check amount of data
205 ; include subroutines
223 ; check for initial or running state
227 ; configure interrupt for running state
228 rcall INT0_IR_CONF_RUN
231 ; reset timer and start ovf interrupt
235 rcall TIMER1_INT_ENABLE
241 ; write timer value into sram
253 ; check for left capacity
257 ; indicate end of 'c'apacity
273 ; indicate 'o'verflow end