![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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? | |
| |
| | #2 |
|
The PIC has various hardware interfaces built-in, including a fully functional USART and SPI, which may do what you want?.
| |
| |
| | #3 |
|
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. | |
| |
| | #4 |
|
Looking like the SPI of the MSSP is was I was looking for. Thanks, I'll dig into it.
| |
| |
|
| 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 |