Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Thanks , I did get a second byte working sort of ( a read) , but still no data on the MISO .. the decoder said " a write was still in progress " but cannot get to repeat the message nowread a second byte to get the data.
I'm not sure, maybe. However, you will have a problem if your compile interrupts a transmission as the two devices will be out of sync.Q can SS be low all the time as I ran out of IO ?
Was just the speed ( up to 40M ) and the 5v operation. really, also not done anything much with SPI so a bit of a education .Why not use an I2C FRAM
Why do you think you require that speed?, I2C is pretty fast anyway.Was just the speed ( up to 40M ) and the 5v operation. really, also not done anything much with SPI so a bit of a education .
Thanks for the link, may come in useful .. the PIC18F57Q43 and nano curiosity board PPS is a bit restrictive with the output port options for SPI, SS only on ports A and D and I am using them for the Z80 SRAM address and F for data . SS / CS via the normal port IO seems to work fine ?squeeze another pin.
Thanks, Ok will try it.??Only in slave mode.. It can be ANY pin in master mode..
Ian's right for a pic with an MSSP peripheral used in SPI mode, but in many newer devices they have replaced the MSSP with individual SPI and I2C peripherals that work a bit differently, and the 18FxxQ43 is one of them.On SPI the pin isn't dedicated... Only in slave mode.. It can be ANY pin in master mode..
18F57Q43 Definitely a case of rtfm with everything ! , with this Curiosity Nano board, also don't assume devices / ports start with a ' clean slate ' some are preset . via PPS .. so trying to use them as a port is not on ..' programmers ' have to clear port PPS assignments , ( perhaps clear everything ).peripherals that work a bit differently, and the 18FxxQ43 is one of them.
With devices like the Q43 that have the "auto controlled" SS feature, you could always map/remap the SPI SS via PPS to different pins for multiple SS outputs, but that's probably more bother than just disabling the auto SS and doing it with IO in code to begin with. Plus, you don't have the PPS restrictions that way.Q ... So if you only have one SS pin on your 'vintage' PIC how do you as Host / Master, control multiple SPI devices , other than IO or with multiple SPI peripherals . guess you could multiplex the SS .
It wasn't really intended for that... The SPI eeproms have a horrible interface with wip's and well's to really get under your skin.. The program just needs the SPItransfer changed to suit..Unfortunately, Ian's code in post #15 is for an MSSP peripheral and won't work on these devices.
Yeah, that and the init function to setup the SPI peripheral.The program just needs the SPItransfer changed to suit..