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
173 ; check amount of sent data
179 ; include subroutines
197 ; check for initial or running state
201 ; configure interrupt for running state
202 rcall INT0_IR_CONF_RUN
205 ; reset timer and start ovf interrupt
209 rcall TIMER1_INT_ENABLE
215 ; write timer value into sram
222 ; check for left capacity