Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top