Help me write a C code for 18F252 to read these 2 lines.

Status
Not open for further replies.

darkxp

Newbie level 4
Joined
Mar 23, 2004
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
66
Analog or Digital?

Hi, i need to read 2 lines, of this type:

Line 1 ______ ____
|____________________________|

Line 2 _______ __ _ _ _ __ _ ___
|_| |_| |__| |_| |___| |_| |___|



Line 1 - 00000000000111111111111111111111111111000000000000

Line 2 - 00000000000100010010010111011001101001000000000000

(in digital...)


Somehting like that, i start read the line 2, when line 1 gets active...

Well, how to do this in C code for PIC 18f252?? any help? books on that? (im new... 5 days only... but need this for College projects)

Thnx to all
 

Re: Analog or Digital?

ydao,
when the L1 goes High the L2 is allways 27 bits as per your example ?
if so it is very easy to use arrays ;

mgf
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…