Function |
|
Read one byte from a specified location in RAM |
Purpose |
|
Indirect access to RAM registers |
Syntax |
|
uns8 readFromRAM(uns16 address) |
Parameters |
|
address: linear or traditional memory location address |
Return value |
|
The value read from the specified location |
Output values |
|
– |
Preconditions |
|
– |
Remarks |
|
See Example E06–RAM. |
Side effects |
|
FSR0 register is modified. |
See also |
|
|
Example |
|
for (i=0; i<5; i++) { A = readFromRAM(bufferRF + i); … } |