interfacing camera c328 with pic18f2680

Find out how to setup your programmer's software and how to solve many common problems.

Moderator: phalanx

Post Reply
bushra
Posts: 3
Joined: Tue Sep 23, 2014 12:33 am

interfacing camera c328 with pic18f2680

Post by bushra » Tue Sep 23, 2014 12:40 am

hey everyone. i am trying to interface pic18f2680 with camera c328. i have never worked on this before. cant find any code on internet either. can anyone help??

waltr
Support Volunteer
Posts: 2823
Joined: Tue Sep 08, 2009 12:07 pm
Location: Philadelphia, USA

Re: interfacing camera c328 with pic18f2680

Post by waltr » Tue Sep 23, 2014 7:29 am

Not without more info.
You just need to study the camera data sheet and then write the PIC code per the camera interface specs.

bushra
Posts: 3
Joined: Tue Sep 23, 2014 12:33 am

Re: interfacing camera c328 with pic18f2680

Post by bushra » Wed Sep 24, 2014 12:25 am

any sample code?

bushra
Posts: 3
Joined: Tue Sep 23, 2014 12:33 am

Re: interfacing camera c328 with pic18f2680

Post by bushra » Wed Sep 24, 2014 3:34 am

can i send syn command by using the code below in a loop?
TXREG= 'A';
TXREG= 'A';
TXREG= '0';
TXREG= 'D';
TXREG= '0';
TXREG= '0';
TXREG= '0';
TXREG= '0';
TXREG= '0';
TXREG= '0';TXREG= '0';TXREG= '0';

waltr
Support Volunteer
Posts: 2823
Joined: Tue Sep 08, 2009 12:07 pm
Location: Philadelphia, USA

Re: interfacing camera c328 with pic18f2680

Post by waltr » Wed Sep 24, 2014 12:03 pm

Not as you wrote that. You must write code that tests for RXREG buffer empty before writing another value to TXREG.
This is covered well in several Microchip App Notes that can be found on their web site.

Sample code? For what?
There is lots of sample code in the App Notes, on the Micochip user's forum and out on the web for many PICs.
For the camera? Did you search the web???? Did you read the data sheet? Look for App notes from the maker of the camera????

Post Reply