mr_sophisticated
Newbie level 4
- Joined
- Feb 3, 2013
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,336
True, but you transmit 1 byte per ms, that is 1000bytes/s so 19200 baud is enough.uart is slower compared to parallel communication
Yes, dual-port RAMs are extremely expensive.Hi,
A 16k x 8 dual port sram is about 20€ (single piece, farnell), .. but you want MBytes.
128k x 8 serial sram is about the price of a PIC. You need 8 pieces for 1Mbyte.
Klaus
Hi,
even with two SPI SRAMs you can´t write and read the same device at the same time. You need some arbitration, wich PIC may have access to the SRAM.
Klaus
I think the same pertains to the UART communication. I don't suppose it will be enough only to write bytes into the UART data register. There will also be need to wrap the data into some kind of protocol with checksum and header which contains some information about the data. Furthermore the receiving buffer in the UART is 1 byte long only, so before the next byte arrives the uC must read and process the received byte in order to prevent data loss.Hi,
I wonder if your arbitration could work.
You know: writing one byte via uart needs one instruction. (with one byte per ms you don´t even need to check if buffer is full)
Writing to the SPI RAM needs to handle a buffer (in case the SPI is used by the other PIC), some instructions for arbitration, some instructions to enable SRAM, all the SPI transfer for setting address and transferring data.
The waiting for each byte to be transmitted, disable SRAM...
It surely needs way more processing power.
Klaus
All my posts referred to this.i am transmitting 8bit data from uC1 at 1ms to the RAM
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?