Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 23rd April 2007, 09:42 AM   #1
Default Need suggestions for reading/writing data serially with a clock line

My specific project is to use a microcontroller to emulate a controller on multiple game consoles. A number of them use serial communication with a clock line; NES, SNES, 3DO, Playstation 1 and Playstation 2 are the easiest examples. The frequency of the clock signal varies greatly, but the fastest seems to be the PS2 at 500KHz.

I am looking at using a 18LF4550 as my target microcontroller, but can be swayed to look at others if there is a strong reason to.

My main concern is whether or not there is technology built into the PIC to make this kind of serial communication easier/faster. I could certainly program it to wait for the needed rise or fall on the clock line, and shift each bit I need individually, but this feels very inelegant. Are there any functions for shifting data in time with an external clock signal that I can look into?
toodles is offline  
Old 23rd April 2007, 09:44 AM   #2
Default

The PIC has various hardware interfaces built-in, including a fully functional USART and SPI, which may do what you want?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 23rd April 2007, 09:49 AM   #3
Default

The 4550 has USB, MSSP and EUSART. Check the data sheet. I would imagine that the Master Synchronous Serial Port would be the most useful.

Mike.
Pommie is online now  
Old 23rd April 2007, 10:12 AM   #4
Default

Looking like the SPI of the MSSP is was I was looking for. Thanks, I'll dig into it.
toodles is offline  
Reply

Tags
clock, data, line, reading or writing, serially, suggestions

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
USB data aqusition discofunk General Electronics Chat 3 17th October 2009 08:33 PM
Hardcode a PIC by hand? (or 16F74 + par.port.prog = problem) smilen Micro Controllers 15 21st November 2005 10:23 AM
Serial Data Logging Software Monkeyman87 Micro Controllers 8 12th October 2004 04:32 PM
Having problems with pic16f872 cjgalway1000 Micro Controllers 0 7th April 2004 03:39 PM
pc keyboard interfacing problem econsyst Micro Controllers 0 8th November 2003 09:28 PM



All times are GMT. The time now is 03:28 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker