Buriedcode
Full Member level 6
Hi,
I've searched the board but I can't find an answer to this question,. And sorry if its in the wrong forum, but it is 'microcontrollers':
Can the SPI peripheral of a PIC micro send frames of data 'back to back'. By that I mean the PIC is constantly exchanging data, so (assuming the PIC is the master) the SCK runs continuously. Or must the be a 'rest period' between bytes?
The reason I'm asking, is that I wish to send about 3MB/s of manchester encoded data across an RF link. I was using a CPLD, but a PIC micro (or any uC for that matter) is more attractive since it has so many other features, and memory. I'm currently trying to use the USART, running at maximum baud sending back to back packets with manchester encoded bytes (4 data bits = 8 manchester bits), but alas, its just not fast enough.
Obviously doing it all in software (bit banging) is virtually impossible at this speed, but with the peripherals microcontrollers offer, it allows me to just put a byte in a register, and the hardware takes care of sending it. And since SPI is data exchange comms, I could read in data from somewhere else at the same time as sending it.
I won't use the SCK, I just want a way to send bits serially at high speed, and it seems that SPI is my only option.
Thankyou, and as always, any idea's, I'm all ears.
BuriedCode.
I've searched the board but I can't find an answer to this question,. And sorry if its in the wrong forum, but it is 'microcontrollers':
Can the SPI peripheral of a PIC micro send frames of data 'back to back'. By that I mean the PIC is constantly exchanging data, so (assuming the PIC is the master) the SCK runs continuously. Or must the be a 'rest period' between bytes?
The reason I'm asking, is that I wish to send about 3MB/s of manchester encoded data across an RF link. I was using a CPLD, but a PIC micro (or any uC for that matter) is more attractive since it has so many other features, and memory. I'm currently trying to use the USART, running at maximum baud sending back to back packets with manchester encoded bytes (4 data bits = 8 manchester bits), but alas, its just not fast enough.
Obviously doing it all in software (bit banging) is virtually impossible at this speed, but with the peripherals microcontrollers offer, it allows me to just put a byte in a register, and the hardware takes care of sending it. And since SPI is data exchange comms, I could read in data from somewhere else at the same time as sending it.
I won't use the SCK, I just want a way to send bits serially at high speed, and it seems that SPI is my only option.
Thankyou, and as always, any idea's, I'm all ears.
BuriedCode.