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.

[SOLVED] need logic for read 24 bit on evry falling edge of clk pin

Status
Not open for further replies.

ud23

Advanced Member level 3
Joined
Apr 20, 2011
Messages
926
Helped
185
Reputation
370
Reaction score
180
Trophy points
1,323
Activity points
6,138
hi alll i want to read the 24 bit data on the 8051 from a sensor who's output is 24 bit i want to declare a bit array but i don't able to declare bit array . any one knw how we can declare the 24 bit array then i can convert it in to 3 bytes.

or any other way to read 24 bits on every falling edge.

i am using 8051 controller and keil compiler.
 

C doesn't explicitly handle bit arrays, but you can still implement something that LOOKS like a bit array using char or int arrays. There are numerous examples out in internetland.

And what do you mean read on every falling edge? Do you mean your clock edge? If that's the case, you're out of luck because an 8051, if I remember correctly, executes one instruction for every FOUR clock edges? Or, do you have some slower sample clock you are using to latch the data? Could you give us more details about your design?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top