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.

coding for 18f4550 with optical mouse

Status
Not open for further replies.

ankitnayan

Newbie level 4
Joined
Oct 18, 2010
Messages
5
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,313
can someone pls post the code for interfacing optical mouse with pic18f4550???
i am in trouble with that..
 


thanx...that was really helpful

---------- Post added at 14:58 ---------- Previous post was at 14:40 ----------

But for reading the data of mouse via SPI what clock frequency have we to set for microcontroller????

We need a command called "Request to Send" Clk low -> data low -> clk high
how do we manually control the clock in SPI communication??

---------- Post added at 15:12 ---------- Previous post was at 14:58 ----------

how can we make the MASTER(microcontroller) work according to the clock of the slave(mouse) in SPI communication????
After the " Request to Send" command wont there be two clocks runnning??
 

you need to read the datasheet for the PIC. There is a huge section for clock and oscillation configuration as well as other special feature configuration before you can use them. So, try to learn them first.
 
you need to read the datasheet for the PIC. There is a huge section for clock and oscillation configuration as well as other special feature configuration before you can use them. So, try to learn them first.


Not getting from the datasheet. Could you pls help me out??
What to do of the microcontroller clock when the clock of mouse has begun???
and how to manually control the clock of microcontroller in SPI??
 
when the mouse starts sending its own clock , do we need to change the clock pin from output to input in SPI ???

while starting SPI we have to give the freq of the clock that we want..what freq to choose as we have to make the clock pin low for 100us and data pin low and then clock pin high...how to do that once we have started the SPI clock???
someone pls help me out...
how have others interfaced data and clock serially??
I2c?? or SPI??
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top