Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 250 → Rev 251

/programy/PIC_C/PICcam/873/camerus.lst
1,4 → 1,4
CCS PCM C Compiler, Version 3.245, 27853 10-III-07 23:23
CCS PCM C Compiler, Version 3.245, 27853 22-IV-07 16:12
 
Filename: D:\KAKLIK\projekty\programy\PIC_C\PICcam\873\camerus.lst
 
77,7 → 77,9
....................
....................
....................
.................... #define CAMERA_ADR 0xC4
....................
....................
.................... void main()
.................... {
*
147,7 → 149,7
0062: MOVWF 07
0063: BCF 03.5
0064: BCF 07.6
....................
....................
.................... Delay_ms(200);
0065: MOVLW C8
0066: MOVWF 26
176,8 → 178,8
0078: BSF 11.0
0079: BTFSC 11.0
007A: GOTO 079
.................... i2c_write(0xC0);
007B: MOVLW C0
.................... i2c_write(CAMERA_ADR);
007B: MOVLW C4
007C: BCF 03.5
007D: MOVWF 26
007E: CALL 019
197,15 → 199,15
....................
.................... // **** Write data => Adr($13) = 0x05 ****
.................... // This will tri-state the Y and UV busses on the OV6620, which
.................... // will allow re-programming of the mega8 to proceed at startup
.................... // will allow re-programming of the atmega8 to proceed at startup
.................... // if needed.
....................
.................... i2c_start();
.................... i2c_start();
0089: BSF 11.0
008A: BTFSC 11.0
008B: GOTO 08A
.................... i2c_write(0xC0);
008C: MOVLW C0
.................... i2c_write(CAMERA_ADR);
008C: MOVLW C4
008D: BCF 03.5
008E: MOVWF 26
008F: CALL 019
222,7 → 224,7
0097: BSF 11.2
0098: BTFSC 11.2
0099: GOTO 098
....................
....................
.................... Delay_ms(250);
009A: MOVLW FA
009B: BCF 03.5
230,15 → 232,15
009D: CALL 004
....................
.................... //**** Write data => Adr($3F) = 0x42 ****
.................... // This will turn on the external clock for the mega8 to use.
.................... // This will turn on the external clock for the atmega8 to use.
....................
.................... i2c_start();
.................... i2c_start();
009E: BSF 03.5
009F: BSF 11.0
00A0: BTFSC 11.0
00A1: GOTO 0A0
.................... i2c_write(0xC0);
00A2: MOVLW C0
.................... i2c_write(CAMERA_ADR);
00A2: MOVLW C4
00A3: BCF 03.5
00A4: MOVWF 26
00A5: CALL 019
255,9 → 257,9
00AD: BSF 11.2
00AE: BTFSC 11.2
00AF: GOTO 0AE
....................
....................
.................... // Wait for a short amount of time for the external clock
.................... // to stabilize
.................... // to stabilize
....................
.................... Delay_ms(250);
00B0: MOVLW FA
273,7 → 275,7
00B7: MOVWF 07
00B8: BCF 03.5
00B9: BCF 07.0
....................
....................
.................... // turn on the mega8 by releasing the reset line
.................... output_high(PIN_C6);
00BA: BCF 25.6