What is the purpose of this?Hi,
Just spotted this:
Can this be used and accessed from the MASTER?
C.
What is the purpose of this?Hi,
Just spotted this:
Can this be used and accessed from the MASTER?
C.
Hi J,What is the purpose of this?
All variables are in a readable memory.Hi J,
"What is the purpose of this" I presume you mean the images of the EPROM? I wondered if this could be used to place the VARIABLE BYTES into a READable memory.
I checked the link you posted in #38, and it looks interesting, but maybe a bit advanced for me
C.
Hi I,All variables are in a readable memory.
Why to but them into Eeprom?
I think you need to understand link#38 or the datasheet of the PIC to setup the slave mode
You asked before about the slave address of PIC18F4431.
It does not exist or needed. Put the data in the SSPBUF and the master reads it by SPIReceive function
Hi E and I,hi C,
This line from jjw.
It does not exist or needed. Put the data in the SSPBUF and the master reads it by SPIReceive function
Is the same as I posted earlier.
When the Master requests the Variable from the Slave, the Slave will send the data to the Master.
The Master does not have to know where the Variable is stored in the Slave.
It is the Slave program that should be programmed, so that data is available in the SSPBUF buffer.
E
Hi,Hi,
I've come round to this again!
Here's the program from earlier:
Leaving the SPI part out for now, does this simulate? (does POSCOUNT change) (I seem to recall that Oshonsoft doesn't support QEI??) It doesn't simulate for me.
C.
The manual and examples use AllDigital.hi C,
As a check try All_Digital [ with the underscore] , that's the way he has shown it in the error message, worth a try.
E
Hi E,hi C,
As a check try All_Digital [ with the underscore] , that's the way he has shown it in the error message, worth a try.
E
Hi J,What is the version of the IDE you use?
Starting from version 3.59:
"Basic Compiler: Former compiler keywords Adcin, ADC_CLOCK, ADC_SAMPLEUS, AllDigital are now aliases for the new library elements ADC_Read, ADC_Clk, ADC_Sample_uS, All_Digital"
So AllDigital should be ok.
The library stuff looks messy anyway.
http://www.oshonsoft.com/librarysupportpic.php