/programy/PIC_C/PICcam/873/camerus.BAK |
---|
1,6 → 1,8 |
#include ".\camerus.h" |
#define CAMERA_ADR 0xC0 |
void main() |
{ |
setup_adc_ports(NO_ANALOGS); |
12,8 → 14,13 |
output_high(PIN_C0); |
output_low(PIN_C6); |
Delay_ms(200); |
output_low(PIN_C0); |
Delay_ms(200); |
output_high(PIN_C0); |
i2c_start(); // Reset |
i2c_write(0xC0); |
i2c_write(CAMERA_ADR); |
i2c_write(0x12); |
i2c_write(0x80 | 0x24); |
i2c_stop(); |
20,34 → 27,34 |
// **** 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_write(0xC0); |
i2c_start(); |
i2c_write(CAMERA_ADR); |
i2c_write(0x13); |
i2c_write(0x05); |
i2c_stop(); |
Delay_ms(250); |
//**** 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_write(0xC0); |
i2c_start(); |
i2c_write(CAMERA_ADR); |
i2c_write(0x3F); |
i2c_write(0x42); |
i2c_stop(); |
// Wait for a short amount of time for the external clock |
// to stabilize |
// to stabilize |
Delay_ms(250); |
output_low(PIN_C0); |
// turn on the mega8 by releasing the reset line |
output_high(PIN_C6); |
/programy/PIC_C/PICcam/873/camerus.c |
---|
1,6 → 1,8 |
#include ".\camerus.h" |
#define CAMERA_ADR 0xC4 |
void main() |
{ |
setup_adc_ports(NO_ANALOGS); |
11,7 → 13,7 |
output_high(PIN_C0); |
output_low(PIN_C6); |
Delay_ms(200); |
output_low(PIN_C0); |
Delay_ms(200); |
18,7 → 20,7 |
output_high(PIN_C0); |
i2c_start(); // Reset |
i2c_write(0xC0); |
i2c_write(CAMERA_ADR); |
i2c_write(0x12); |
i2c_write(0x80 | 0x24); |
i2c_stop(); |
25,34 → 27,34 |
// **** 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_write(0xC0); |
i2c_start(); |
i2c_write(CAMERA_ADR); |
i2c_write(0x13); |
i2c_write(0x05); |
i2c_stop(); |
Delay_ms(250); |
//**** 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_write(0xC0); |
i2c_start(); |
i2c_write(CAMERA_ADR); |
i2c_write(0x3F); |
i2c_write(0x42); |
i2c_stop(); |
// Wait for a short amount of time for the external clock |
// to stabilize |
// to stabilize |
Delay_ms(250); |
output_low(PIN_C0); |
// turn on the mega8 by releasing the reset line |
output_high(PIN_C6); |
/programy/PIC_C/PICcam/873/camerus.cof |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/programy/PIC_C/PICcam/873/camerus.hex |
---|
13,12 → 13,12 |
:1000C00025088316870083120713C830A600042072 |
:1000D000251025088316870083120710C830A60054 |
:1000E0000420251025088316870083120714831621 |
:1000F000111411187928C0308312A600192012306B |
:1000F000111411187928C4308312A6001920123067 |
:10010000A6001920A430A600192083161115111974 |
:100110008728111411188A28C0308312A6001920CC |
:100110008728111411188A28C4308312A6001920C8 |
:100120001330A60019200530A600192083161115DA |
:1001300011199828FA308312A6000420831611148E |
:100140001118A028C0308312A60019203F30A60045 |
:100140001118A028C4308312A60019203F30A60041 |
:1001500019204230A6001920831611151119AE2856 |
:10016000FA308312A6000420251025088316870084 |
:10017000831207102513250883168700831207179B |
/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 |
/programy/PIC_C/PICcam/873/camerus.sta |
---|
10,11 → 10,11 |
Lines Stmts % Files |
----- ----- --- ----- |
61 32 100 D:\KAKLIK\projekty\programy\PIC_C\PICcam\873\camerus.c |
63 32 100 D:\KAKLIK\projekty\programy\PIC_C\PICcam\873\camerus.c |
17 0 0 D:\KAKLIK\projekty\programy\PIC_C\PICcam\873\camerus.h |
244 0 0 C:\Program Files\PICC\devices\16F873.h |
----- ----- |
644 64 Total |
648 64 Total |
Page ROM % RAM Functions: |
---- --- --- --- ---------- |
/roboti/istrobot/camerusII/HW/PCB/WhiteLEDPanel.pcb |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/roboti/istrobot/camerusII/HW/WHITELEDPANEL.DSN |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/roboti/istrobot/camerusII/HW/WHITELEDPANEL.asc |
---|
0,0 → 1,49 |
*PADS-PCB* |
*PART* |
D1 LED,LED5mm@LED5 |
D10 LED,LED5mm@LED5 |
D2 LED,LED5mm@LED5 |
D3 LED,LED5mm@LED5 |
D4 LED,LED5mm@LED5 |
D5 LED,LED5mm@LED5 |
D6 LED,LED5mm@LED5 |
D7 LED,LED5mm@LED5 |
D8 LED,LED5mm@LED5 |
D9 LED,LED5mm@LED5 |
J1 SCW2,ARK210/2@ARK210/2 |
J2 UNIPAD2,UNIPAD2@UNIPAD2 |
M1 PAD,HOLE_M3@HOLE_M3 |
M2 PAD,HOLE_M3@HOLE_M3 |
M3 PAD,HOLE_M3@HOLE_M3 |
M4 PAD,HOLE_M3@HOLE_M3 |
P1 R-TRIM,100@PT6V |
R1 R,20@RL090 |
*NET* |
*SIGNAL* N00284 |
D2.A D1.C |
*SIGNAL* N00288 |
D2.C D3.A |
*SIGNAL* N00294 |
D3.C D4.A |
*SIGNAL* N00302 |
D4.C D5.A |
*SIGNAL* N00312 |
D5.C D6.A |
*SIGNAL* N00324 |
D6.C D7.A |
*SIGNAL* N00338 |
D7.C D8.A |
*SIGNAL* N00354 |
D8.C D9.A |
*SIGNAL* N00372 |
D9.C D10.A |
*SIGNAL* N00482 |
P1.3 D10.C J2.1 J2.2 P1.1 |
*SIGNAL* N00504 |
P1.2 R1.1 |
*SIGNAL* VCC |
D1.A J1.2 |
*SIGNAL* GND |
R1.2 M2.1 M3.1 J1.1 M1.1 M4.1 |
*END* |
/roboti/istrobot/cholerik/cholerik.c |
---|
187,7 → 187,7 |
if (arena_r) |
{ |
BL; BR; |
delay_ms(100); |
delay_ms(180); |
STOPL; BR; |
for(n=0; n<5000; n++) |
{ |
201,7 → 201,7 |
if (arena_l) |
{ |
BL; BR; |
delay_ms(100); |
delay_ms(180); |
BL; STOPR; |
for(n=0; n<5000; n++) |
{ |