Subversion Repositories svnkaklik

Rev

Rev 174 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 174 Rev 182
Line 1... Line 1...
1
GAS LISTING /tmp/cckBHomO.s 			page 1
1
GAS LISTING /tmp/ccCMjSjd.s 			page 1
2
 
2
 
3
 
3
 
4
   1               	# 1 "CamInterfaceAsm.S"
4
   1               	# 1 "CamInterfaceAsm.S"
5
   2               	# 1 "<built-in>"
5
   2               	# 1 "<built-in>"
6
   1               	;
6
   1               	;
Line 56... Line 56...
56
  49               	;                              interrupts, and caused problems.  Now,
56
  49               	;                              interrupts, and caused problems.  Now,
57
  50               	;                              the "PCLK" pipe feeds timer1 when needed,
57
  50               	;                              the "PCLK" pipe feeds timer1 when needed,
58
  51               	;                              and is turned off when it isn't needed.
58
  51               	;                              and is turned off when it isn't needed.
59
  52               	
59
  52               	
60
  53               	#include <avr/io.h>
60
  53               	#include <avr/io.h>
61
GAS LISTING /tmp/cckBHomO.s 			page 2
61
GAS LISTING /tmp/ccCMjSjd.s 			page 2
62
 
62
 
63
 
63
 
64
   1               	/* Copyright (c) 2002,2003,2005,2006, Marek Michalkiewicz, Joerg Wunsch
64
   1               	/* Copyright (c) 2002,2003,2005,2006, Marek Michalkiewicz, Joerg Wunsch
65
   2               	   All rights reserved.
65
   2               	   All rights reserved.
66
   3               	
66
   3               	
Line 116... Line 116...
116
  53               	
116
  53               	
117
  54               	    Also included are the specific names useable for interrupt
117
  54               	    Also included are the specific names useable for interrupt
118
  55               	    function definitions as documented
118
  55               	    function definitions as documented
119
  56               	    \ref avr_signames "here".
119
  56               	    \ref avr_signames "here".
120
  57               	
120
  57               	
121
GAS LISTING /tmp/cckBHomO.s 			page 3
121
GAS LISTING /tmp/ccCMjSjd.s 			page 3
122
 
122
 
123
 
123
 
124
  58               	    Finally, the following macros are defined:
124
  58               	    Finally, the following macros are defined:
125
  59               	
125
  59               	
126
  60               	    - \b RAMEND
126
  60               	    - \b RAMEND
Line 176... Line 176...
176
  24               	   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
176
  24               	   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
177
  25               	   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
177
  25               	   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
178
  26               	   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
178
  26               	   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
179
  27               	   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
179
  27               	   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
180
  28               	   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
180
  28               	   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
181
GAS LISTING /tmp/cckBHomO.s 			page 4
181
GAS LISTING /tmp/ccCMjSjd.s 			page 4
182
 
182
 
183
 
183
 
184
  29               	   POSSIBILITY OF SUCH DAMAGE.  */
184
  29               	   POSSIBILITY OF SUCH DAMAGE.  */
185
  30               	
185
  30               	
186
  31               	/* avr/sfr_defs.h - macros for accessing AVR special function registers */
186
  31               	/* avr/sfr_defs.h - macros for accessing AVR special function registers */
Line 236... Line 236...
236
  81               	
236
  81               	
237
  82               	\verbatim
237
  82               	\verbatim
238
  83               	<avr/iom163.h>: #define SPMCR _SFR_IO8(0x37)
238
  83               	<avr/iom163.h>: #define SPMCR _SFR_IO8(0x37)
239
  84               	<avr/iom128.h>: #define SPMCR _SFR_MEM8(0x68)
239
  84               	<avr/iom128.h>: #define SPMCR _SFR_MEM8(0x68)
240
  85               	\endverbatim
240
  85               	\endverbatim
241
GAS LISTING /tmp/cckBHomO.s 			page 5
241
GAS LISTING /tmp/ccCMjSjd.s 			page 5
242
 
242
 
243
 
243
 
244
  86               	
244
  86               	
245
  87               	\code
245
  87               	\code
246
  87               	
246
  87               	
Line 296... Line 296...
296
 137               	#define    XL           r26
296
 137               	#define    XL           r26
297
 138               	#define    XH           r27
297
 138               	#define    XH           r27
298
 139               	#define    YL           r28
298
 139               	#define    YL           r28
299
 140               	#define    YH           r29
299
 140               	#define    YH           r29
300
 141               	#endif /* #if __AVR_ARCH__ != 1 */
300
 141               	#endif /* #if __AVR_ARCH__ != 1 */
301
GAS LISTING /tmp/cckBHomO.s 			page 6
301
GAS LISTING /tmp/ccCMjSjd.s 			page 6
302
 
302
 
303
 
303
 
304
 142               	#define    ZL           r30
304
 142               	#define    ZL           r30
305
 143               	#define    ZH           r31
305
 143               	#define    ZH           r31
306
 144               	
306
 144               	
Line 356... Line 356...
356
 194               	#  include <avr/iocan64.h>
356
 194               	#  include <avr/iocan64.h>
357
 195               	#elif defined (__AVR_AT90CAN128__)
357
 195               	#elif defined (__AVR_AT90CAN128__)
358
 196               	#  include <avr/iocan128.h>
358
 196               	#  include <avr/iocan128.h>
359
 197               	#elif defined (__AVR_AT90USB646__)
359
 197               	#elif defined (__AVR_AT90USB646__)
360
 198               	#  include <avr/iousb646.h>
360
 198               	#  include <avr/iousb646.h>
361
GAS LISTING /tmp/cckBHomO.s 			page 7
361
GAS LISTING /tmp/ccCMjSjd.s 			page 7
362
 
362
 
363
 
363
 
364
 199               	#elif defined (__AVR_AT90USB647__)
364
 199               	#elif defined (__AVR_AT90USB647__)
365
 200               	#  include <avr/iousb647.h>
365
 200               	#  include <avr/iousb647.h>
366
 201               	#elif defined (__AVR_AT90USB1286__)
366
 201               	#elif defined (__AVR_AT90USB1286__)
Line 416... Line 416...
416
 251               	#elif defined (__AVR_ATmega168__)
416
 251               	#elif defined (__AVR_ATmega168__)
417
 252               	#  include <avr/iom168.h>
417
 252               	#  include <avr/iom168.h>
418
 253               	#elif defined (__AVR_ATmega169__)
418
 253               	#elif defined (__AVR_ATmega169__)
419
 254               	#  include <avr/iom169.h>
419
 254               	#  include <avr/iom169.h>
420
 255               	#elif defined (__AVR_ATmega8__)
420
 255               	#elif defined (__AVR_ATmega8__)
421
GAS LISTING /tmp/cckBHomO.s 			page 8
421
GAS LISTING /tmp/ccCMjSjd.s 			page 8
422
 
422
 
423
 
423
 
424
 256               	#  include <avr/iom8.h>
424
 256               	#  include <avr/iom8.h>
425
   1               	/* Copyright (c) 2002, Marek Michalkiewicz
425
   1               	/* Copyright (c) 2002, Marek Michalkiewicz
426
   2               	   All rights reserved.
426
   2               	   All rights reserved.
Line 476... Line 476...
476
  52               	/* TWI stands for "Two Wire Interface" or "TWI Was I2C(tm)" */
476
  52               	/* TWI stands for "Two Wire Interface" or "TWI Was I2C(tm)" */
477
  53               	#define TWBR	_SFR_IO8(0x00)
477
  53               	#define TWBR	_SFR_IO8(0x00)
478
  54               	#define TWSR	_SFR_IO8(0x01)
478
  54               	#define TWSR	_SFR_IO8(0x01)
479
  55               	#define TWAR	_SFR_IO8(0x02)
479
  55               	#define TWAR	_SFR_IO8(0x02)
480
  56               	#define TWDR	_SFR_IO8(0x03)
480
  56               	#define TWDR	_SFR_IO8(0x03)
481
GAS LISTING /tmp/cckBHomO.s 			page 9
481
GAS LISTING /tmp/ccCMjSjd.s 			page 9
482
 
482
 
483
 
483
 
484
  57               	
484
  57               	
485
  58               	/* ADC */
485
  58               	/* ADC */
486
  59               	#define ADCW	_SFR_IO16(0x04)
486
  59               	#define ADCW	_SFR_IO16(0x04)
Line 536... Line 536...
536
 109               	#define UCSRC	_SFR_IO8(0x20)
536
 109               	#define UCSRC	_SFR_IO8(0x20)
537
 110               	#define UBRRH	_SFR_IO8(0x20)
537
 110               	#define UBRRH	_SFR_IO8(0x20)
538
 111               	
538
 111               	
539
 112               	#define WDTCR	_SFR_IO8(0x21)
539
 112               	#define WDTCR	_SFR_IO8(0x21)
540
 113               	#define ASSR	_SFR_IO8(0x22)
540
 113               	#define ASSR	_SFR_IO8(0x22)
541
GAS LISTING /tmp/cckBHomO.s 			page 10
541
GAS LISTING /tmp/ccCMjSjd.s 			page 10
542
 
542
 
543
 
543
 
544
 114               	
544
 114               	
545
 115               	/* Timer 2 */
545
 115               	/* Timer 2 */
546
 116               	#define OCR2	_SFR_IO8(0x23)
546
 116               	#define OCR2	_SFR_IO8(0x23)
Line 596... Line 596...
596
 166               	/* External Interrupt Request 0 */
596
 166               	/* External Interrupt Request 0 */
597
 167               	#define INT0_vect			_VECTOR(1)
597
 167               	#define INT0_vect			_VECTOR(1)
598
 168               	#define SIG_INTERRUPT0			_VECTOR(1)
598
 168               	#define SIG_INTERRUPT0			_VECTOR(1)
599
 169               	
599
 169               	
600
 170               	/* External Interrupt Request 1 */
600
 170               	/* External Interrupt Request 1 */
601
GAS LISTING /tmp/cckBHomO.s 			page 11
601
GAS LISTING /tmp/ccCMjSjd.s 			page 11
602
 
602
 
603
 
603
 
604
 171               	#define INT1_vect			_VECTOR(2)
604
 171               	#define INT1_vect			_VECTOR(2)
605
 172               	#define SIG_INTERRUPT1			_VECTOR(2)
605
 172               	#define SIG_INTERRUPT1			_VECTOR(2)
606
 173               	
606
 173               	
Line 656... Line 656...
656
 223               	#define EE_RDY_vect			_VECTOR(15)
656
 223               	#define EE_RDY_vect			_VECTOR(15)
657
 224               	#define SIG_EEPROM_READY		_VECTOR(15)
657
 224               	#define SIG_EEPROM_READY		_VECTOR(15)
658
 225               	
658
 225               	
659
 226               	/* Analog Comparator */
659
 226               	/* Analog Comparator */
660
 227               	#define ANA_COMP_vect			_VECTOR(16)
660
 227               	#define ANA_COMP_vect			_VECTOR(16)
661
GAS LISTING /tmp/cckBHomO.s 			page 12
661
GAS LISTING /tmp/ccCMjSjd.s 			page 12
662
 
662
 
663
 
663
 
664
 228               	#define SIG_COMPARATOR			_VECTOR(16)
664
 228               	#define SIG_COMPARATOR			_VECTOR(16)
665
 229               	
665
 229               	
666
 230               	/* 2-wire Serial Interface */
666
 230               	/* 2-wire Serial Interface */
Line 716... Line 716...
716
 279               	#elif defined (__AVR_ATtiny26__)
716
 279               	#elif defined (__AVR_ATtiny26__)
717
 280               	#  include <avr/iotn26.h>
717
 280               	#  include <avr/iotn26.h>
718
 281               	#elif defined (__AVR_AT90S2343__)
718
 281               	#elif defined (__AVR_AT90S2343__)
719
 282               	#  include <avr/io2343.h>
719
 282               	#  include <avr/io2343.h>
720
 283               	#elif defined (__AVR_AT90S2333__)
720
 283               	#elif defined (__AVR_AT90S2333__)
721
GAS LISTING /tmp/cckBHomO.s 			page 13
721
GAS LISTING /tmp/ccCMjSjd.s 			page 13
722
 
722
 
723
 
723
 
724
 284               	#  include <avr/io2333.h>
724
 284               	#  include <avr/io2333.h>
725
 285               	#elif defined (__AVR_AT90S2323__)
725
 285               	#elif defined (__AVR_AT90S2323__)
726
 286               	#  include <avr/io2323.h>
726
 286               	#  include <avr/io2323.h>
Line 776... Line 776...
776
   8               	     notice, this list of conditions and the following disclaimer.
776
   8               	     notice, this list of conditions and the following disclaimer.
777
   9               	
777
   9               	
778
  10               	   * Redistributions in binary form must reproduce the above copyright
778
  10               	   * Redistributions in binary form must reproduce the above copyright
779
  11               	     notice, this list of conditions and the following disclaimer in
779
  11               	     notice, this list of conditions and the following disclaimer in
780
  12               	     the documentation and/or other materials provided with the
780
  12               	     the documentation and/or other materials provided with the
781
GAS LISTING /tmp/cckBHomO.s 			page 14
781
GAS LISTING /tmp/ccCMjSjd.s 			page 14
782
 
782
 
783
 
783
 
784
  13               	     distribution.
784
  13               	     distribution.
785
  14               	
785
  14               	
786
  15               	   * Neither the name of the copyright holders nor the names of
786
  15               	   * Neither the name of the copyright holders nor the names of
Line 836... Line 836...
836
  65               	#define    PIN7         7
836
  65               	#define    PIN7         7
837
  66               	#define    PIN6         6
837
  66               	#define    PIN6         6
838
  67               	#define    PIN5         5
838
  67               	#define    PIN5         5
839
  68               	#define    PIN4         4
839
  68               	#define    PIN4         4
840
  69               	#define    PIN3         3
840
  69               	#define    PIN3         3
841
GAS LISTING /tmp/cckBHomO.s 			page 15
841
GAS LISTING /tmp/ccCMjSjd.s 			page 15
842
 
842
 
843
 
843
 
844
  70               	#define    PIN2         2
844
  70               	#define    PIN2         2
845
  71               	#define    PIN1         1
845
  71               	#define    PIN1         1
846
  72               	#define    PIN0         0
846
  72               	#define    PIN0         0
Line 896... Line 896...
896
 122               	#endif
896
 122               	#endif
897
 123               	#if defined(PB6)
897
 123               	#if defined(PB6)
898
 124               	#  define PORTB6 PB6
898
 124               	#  define PORTB6 PB6
899
 125               	#endif
899
 125               	#endif
900
 126               	#if defined(PB7)
900
 126               	#if defined(PB7)
901
GAS LISTING /tmp/cckBHomO.s 			page 16
901
GAS LISTING /tmp/ccCMjSjd.s 			page 16
902
 
902
 
903
 
903
 
904
 127               	#  define PORTB7 PB7
904
 127               	#  define PORTB7 PB7
905
 128               	#endif
905
 128               	#endif
906
 129               	
906
 129               	
Line 956... Line 956...
956
 179               	#endif
956
 179               	#endif
957
 180               	#if defined(PD7)
957
 180               	#if defined(PD7)
958
 181               	#  define PORTD7 PD7
958
 181               	#  define PORTD7 PD7
959
 182               	#endif
959
 182               	#endif
960
 183               	
960
 183               	
961
GAS LISTING /tmp/cckBHomO.s 			page 17
961
GAS LISTING /tmp/ccCMjSjd.s 			page 17
962
 
962
 
963
 
963
 
964
 184               	/* PORT E */
964
 184               	/* PORT E */
965
 185               	
965
 185               	
966
 186               	#if defined(PE0)
966
 186               	#if defined(PE0)
Line 1016... Line 1016...
1016
 236               	#endif
1016
 236               	#endif
1017
 237               	
1017
 237               	
1018
 238               	/* PORT G */
1018
 238               	/* PORT G */
1019
 239               	
1019
 239               	
1020
 240               	#if defined(PG0)
1020
 240               	#if defined(PG0)
1021
GAS LISTING /tmp/cckBHomO.s 			page 18
1021
GAS LISTING /tmp/ccCMjSjd.s 			page 18
1022
 
1022
 
1023
 
1023
 
1024
 241               	#  define PORTG0 PG0
1024
 241               	#  define PORTG0 PG0
1025
 242               	#endif
1025
 242               	#endif
1026
 243               	#if defined(PG1)
1026
 243               	#if defined(PG1)
Line 1076... Line 1076...
1076
 293               	
1076
 293               	
1077
 294               	#if defined(PJ0)
1077
 294               	#if defined(PJ0)
1078
 295               	#  define PORTJ0 PJ0
1078
 295               	#  define PORTJ0 PJ0
1079
 296               	#endif
1079
 296               	#endif
1080
 297               	#if defined(PJ1)
1080
 297               	#if defined(PJ1)
1081
GAS LISTING /tmp/cckBHomO.s 			page 19
1081
GAS LISTING /tmp/ccCMjSjd.s 			page 19
1082
 
1082
 
1083
 
1083
 
1084
 298               	#  define PORTJ1 PJ1
1084
 298               	#  define PORTJ1 PJ1
1085
 299               	#endif
1085
 299               	#endif
1086
 300               	#if defined(PJ2)
1086
 300               	#if defined(PJ2)
Line 1136... Line 1136...
1136
  11               	     notice, this list of conditions and the following disclaimer in
1136
  11               	     notice, this list of conditions and the following disclaimer in
1137
  12               	     the documentation and/or other materials provided with the
1137
  12               	     the documentation and/or other materials provided with the
1138
  13               	     distribution.
1138
  13               	     distribution.
1139
  14               	
1139
  14               	
1140
  15               	   * Neither the name of the copyright holders nor the names of
1140
  15               	   * Neither the name of the copyright holders nor the names of
1141
GAS LISTING /tmp/cckBHomO.s 			page 20
1141
GAS LISTING /tmp/ccCMjSjd.s 			page 20
1142
 
1142
 
1143
 
1143
 
1144
  16               	     contributors may be used to endorse or promote products derived
1144
  16               	     contributors may be used to endorse or promote products derived
1145
  17               	     from this software without specific prior written permission.
1145
  17               	     from this software without specific prior written permission.
1146
  18               	
1146
  18               	
Line 1196... Line 1196...
1196
  68               	#define __AVR_LIBC_VERSION__        10404UL
1196
  68               	#define __AVR_LIBC_VERSION__        10404UL
1197
  69               	
1197
  69               	
1198
  70               	/** \ingroup avr_version
1198
  70               	/** \ingroup avr_version
1199
  71               	    String literal representation of the release date. */
1199
  71               	    String literal representation of the release date. */
1200
  72               	#define __AVR_LIBC_DATE_STRING__    "20060420"
1200
  72               	#define __AVR_LIBC_DATE_STRING__    "20060420"
1201
GAS LISTING /tmp/cckBHomO.s 			page 21
1201
GAS LISTING /tmp/ccCMjSjd.s 			page 21
1202
 
1202
 
1203
 
1203
 
1204
  73               	
1204
  73               	
1205
  74               	/** \ingroup avr_version
1205
  74               	/** \ingroup avr_version
1206
  75               	    Numerical representation of the release date. */
1206
  75               	    Numerical representation of the release date. */
Line 1256... Line 1256...
1256
  32               		Module Auth: John Orlando
1256
  32               		Module Auth: John Orlando
1257
  33               		
1257
  33               		
1258
  34               		Description: This file provides the external interface
1258
  34               		Description: This file provides the external interface
1259
  35               		to the events that can be published/processed in the
1259
  35               		to the events that can be published/processed in the
1260
  36               		system.  It is specifically by itself (and nothing
1260
  36               		system.  It is specifically by itself (and nothing
1261
GAS LISTING /tmp/cckBHomO.s 			page 22
1261
GAS LISTING /tmp/ccCMjSjd.s 			page 22
1262
 
1262
 
1263
 
1263
 
1264
  37               		else should be defined in here) so that both .c and
1264
  37               		else should be defined in here) so that both .c and
1265
  38               		.S (assembly) files can include this file without
1265
  38               		.S (assembly) files can include this file without
1266
  39               		a problem.
1266
  39               		a problem.
Line 1316... Line 1316...
1316
  88               	;    |  |--this is sampled
1316
  88               	;    |  |--this is sampled
1317
  89               	;    |--this is sampled
1317
  89               	;    |--this is sampled
1318
  90               	
1318
  90               	
1319
  91               	; As pixel blocks are sampled, the red, green, and blue values are
1319
  91               	; As pixel blocks are sampled, the red, green, and blue values are
1320
  92               	; used to index into their respective color maps.  The color maps
1320
  92               	; used to index into their respective color maps.  The color maps
1321
GAS LISTING /tmp/cckBHomO.s 			page 23
1321
GAS LISTING /tmp/ccCMjSjd.s 			page 23
1322
 
1322
 
1323
 
1323
 
1324
  93               	; return values that can be logically ANDed together so that a 
1324
  93               	; return values that can be logically ANDed together so that a 
1325
  94               	; particular RGB triplet will result in a single bit being set
1325
  94               	; particular RGB triplet will result in a single bit being set
1326
  95               	; after the AND operation.  This single bit indicates which color
1326
  95               	; after the AND operation.  This single bit indicates which color
Line 1376... Line 1376...
1376
 145               			.global SIG_OVERFLOW1
1376
 145               			.global SIG_OVERFLOW1
1377
 146               			
1377
 146               			
1378
 147               	;*****************************************************************		
1378
 147               	;*****************************************************************		
1379
 148               	;   	Function Name: CamIntAsm_waitForNewTrackingFrame
1379
 148               	;   	Function Name: CamIntAsm_waitForNewTrackingFrame
1380
 149               	;       Function Description: This function is responsible for
1380
 149               	;       Function Description: This function is responsible for
1381
GAS LISTING /tmp/cckBHomO.s 			page 24
1381
GAS LISTING /tmp/ccCMjSjd.s 			page 24
1382
 
1382
 
1383
 
1383
 
1384
 150               	;       going to sleep until a new frame begins (indicated by
1384
 150               	;       going to sleep until a new frame begins (indicated by
1385
 151               	;    	VSYNC transitioning from low to high.  This will wake
1385
 151               	;    	VSYNC transitioning from low to high.  This will wake
1386
 152               	;       the "VSYNC sleep" up and allow it to continue with 
1386
 152               	;       the "VSYNC sleep" up and allow it to continue with 
Line 1436... Line 1436...
1436
 202:CamInterfaceAsm.S **** 		in		tmp1, _SFR_IO_ADDR(TIMSK)			; enable TIMER1 to start counting
1436
 202:CamInterfaceAsm.S **** 		in		tmp1, _SFR_IO_ADDR(TIMSK)			; enable TIMER1 to start counting
1437
 203:CamInterfaceAsm.S **** 		ori		tmp1, ENABLE_PCLK_TIMER1_OVERFLOW_BITMASK 	; external PCLK pulses and interrupt on 
1437
 203:CamInterfaceAsm.S **** 		ori		tmp1, ENABLE_PCLK_TIMER1_OVERFLOW_BITMASK 	; external PCLK pulses and interrupt on 
1438
 204:CamInterfaceAsm.S **** 		out		_SFR_IO_ADDR(TIMSK),tmp1			; overflow
1438
 204:CamInterfaceAsm.S **** 		out		_SFR_IO_ADDR(TIMSK),tmp1			; overflow
1439
 205               			
1439
 205               			
1440
 206:CamInterfaceAsm.S **** 		ldi 	tmp1,PIXEL_RUN_START_INITIAL	; set up the TCNT1 to overflow (and
1440
 206:CamInterfaceAsm.S **** 		ldi 	tmp1,PIXEL_RUN_START_INITIAL	; set up the TCNT1 to overflow (and
1441
GAS LISTING /tmp/cckBHomO.s 			page 25
1441
GAS LISTING /tmp/ccCMjSjd.s 			page 25
1442
 
1442
 
1443
 
1443
 
1444
 207:CamInterfaceAsm.S **** 		ldi 	tmp2,0xFF 						; interrupts) after 176 pixels		
1444
 207:CamInterfaceAsm.S **** 		ldi 	tmp2,0xFF 						; interrupts) after 176 pixels		
1445
 208:CamInterfaceAsm.S **** 		out 	_SFR_IO_ADDR(TCNT1H),tmp2		
1445
 208:CamInterfaceAsm.S **** 		out 	_SFR_IO_ADDR(TCNT1H),tmp2		
1446
 209:CamInterfaceAsm.S **** 		out 	_SFR_IO_ADDR(TCNT1L),tmp1				
1446
 209:CamInterfaceAsm.S **** 		out 	_SFR_IO_ADDR(TCNT1L),tmp1				
Line 1496... Line 1496...
1496
 259               			
1496
 259               			
1497
 260               			; Toggle the debug line to indicate a color change
1497
 260               			; Toggle the debug line to indicate a color change
1498
 261:CamInterfaceAsm.S **** 		sbi     _SFR_IO_ADDR(PORTD),PD6
1498
 261:CamInterfaceAsm.S **** 		sbi     _SFR_IO_ADDR(PORTD),PD6
1499
 262:CamInterfaceAsm.S **** 		nop
1499
 262:CamInterfaceAsm.S **** 		nop
1500
 263:CamInterfaceAsm.S **** 		cbi		_SFR_IO_ADDR(PORTD),PD6
1500
 263:CamInterfaceAsm.S **** 		cbi		_SFR_IO_ADDR(PORTD),PD6
1501
GAS LISTING /tmp/cckBHomO.s 			page 26
1501
GAS LISTING /tmp/ccCMjSjd.s 			page 26
1502
 
1502
 
1503
 
1503
 
1504
 264               			
1504
 264               			
1505
 265:CamInterfaceAsm.S **** 		mov		tmp2,pixelRunStart				; get the count value of the
1505
 265:CamInterfaceAsm.S **** 		mov		tmp2,pixelRunStart				; get the count value of the
1506
 266               													; current pixel run
1506
 266               													; current pixel run
Line 1556... Line 1556...
1556
 316               	_exit:
1556
 316               	_exit:
1557
 317:CamInterfaceAsm.S **** 		ret
1557
 317:CamInterfaceAsm.S **** 		ret
1558
 318               			
1558
 318               			
1559
 319               	;*****************************************************************		
1559
 319               	;*****************************************************************		
1560
 320               	;   	Function Name: CamIntAsm_waitForNewDumpFrame
1560
 320               	;   	Function Name: CamIntAsm_waitForNewDumpFrame
1561
GAS LISTING /tmp/cckBHomO.s 			page 27
1561
GAS LISTING /tmp/ccCMjSjd.s 			page 27
1562
 
1562
 
1563
 
1563
 
1564
 321               	;       Function Description: This function is responsible for
1564
 321               	;       Function Description: This function is responsible for
1565
 322               	;       going to sleep until a new frame begins (indicated by
1565
 322               	;       going to sleep until a new frame begins (indicated by
1566
 323               	;    	VSYNC transitioning from low to high.  This will wake
1566
 323               	;    	VSYNC transitioning from low to high.  This will wake
Line 1616... Line 1616...
1616
 373:CamInterfaceAsm.S **** 		ori 	tmp1, HREF_INTERRUPT_ENABLE_MASK
1616
 373:CamInterfaceAsm.S **** 		ori 	tmp1, HREF_INTERRUPT_ENABLE_MASK
1617
 374:CamInterfaceAsm.S **** 		out		_SFR_IO_ADDR(GICR), tmp1
1617
 374:CamInterfaceAsm.S **** 		out		_SFR_IO_ADDR(GICR), tmp1
1618
 375               			
1618
 375               			
1619
 376               	;*******************************************************************************************
1619
 376               	;*******************************************************************************************
1620
 377               	;   Dump Frame handler 
1620
 377               	;   Dump Frame handler 
1621
GAS LISTING /tmp/cckBHomO.s 			page 28
1621
GAS LISTING /tmp/ccCMjSjd.s 			page 28
1622
 
1622
 
1623
 
1623
 
1624
 378               	;*******************************************************************************************		
1624
 378               	;*******************************************************************************************		
1625
 379               			
1625
 379               			
1626
 380               	_dumpFrame:		
1626
 380               	_dumpFrame:		
Line 1676... Line 1676...
1676
 430               	;	for handling a falling edge on the Ext Interrupt 1.  This
1676
 430               	;	for handling a falling edge on the Ext Interrupt 1.  This
1677
 431               	;	routine simply returns, since we just want to wake up
1677
 431               	;	routine simply returns, since we just want to wake up
1678
 432               	;	whenever the HREF transitions (meaning the pixels 
1678
 432               	;	whenever the HREF transitions (meaning the pixels 
1679
 433               	;	are starting after VSYNC transitioned, and we need to
1679
 433               	;	are starting after VSYNC transitioned, and we need to
1680
 434               	; 	start acquiring the pixel blocks
1680
 434               	; 	start acquiring the pixel blocks
1681
GAS LISTING /tmp/cckBHomO.s 			page 29
1681
GAS LISTING /tmp/ccCMjSjd.s 			page 29
1682
 
1682
 
1683
 
1683
 
1684
 435               	;	Inputs:  none
1684
 435               	;	Inputs:  none
1685
 436               	;	Outputs: none
1685
 436               	;	Outputs: none
1686
 437               	;***********************************************************	
1686
 437               	;***********************************************************	
Line 1735... Line 1735...
1735
 486               	        .global __vector_default              
1735
 486               	        .global __vector_default              
1736
 487               	__vector_default:
1736
 487               	__vector_default:
1737
 488:CamInterfaceAsm.S ****         reti
1737
 488:CamInterfaceAsm.S ****         reti
1738
 489               	
1738
 489               	
1739
 490               	        .end
1739
 490               	        .end
1740
GAS LISTING /tmp/cckBHomO.s 			page 30
1740
GAS LISTING /tmp/ccCMjSjd.s 			page 30
1741
 
1741
 
1742
 
1742
 
1743
DEFINED SYMBOLS
1743
DEFINED SYMBOLS
1744
                            *ABS*:00000000 CamInterfaceAsm.S
1744
                            *ABS*:00000000 CamInterfaceAsm.S
1745
   CamInterfaceAsm.S:119    *ABS*:00000010 pixelCount
1745
   CamInterfaceAsm.S:119    *ABS*:00000010 pixelCount