Matt/Rob
Thanks for feedback its very encouraging when one is stumped for ideas.
Have enclosed code designed to test the pseudo-array variable
procedures supplied in sram_23k256.jal library.
This code is clearly a cut
down/modified version of Matt's 16F877a_23k256.jal in the library.
When I run this I observe the following:-
sram_23k256_byte[] read and write ok irrespective of data
written or read
sram_23k256_word[] write ok irrespective of data written
sram_23k256_word[] read can incorrectly read large
values that have been written correctly
sram_23k256_dword[] write ok with many values of data
sram_23k256_dword[] write can incorrectly write large values of data
sram_23k256_dword[] read can incorrectly read large values that have been written correctly or incorrectly.
Incidently all these data read/writes are within page0 but since the 23k256 is put in sequential mode early on in in the code
a read/write
past a page boundary should not be an issue anyway
Just for record I tried the 23k256 code with SPI mode forced 1,1 but got nowhere.
I keep looking at the 23k256.jal code but honestly cannot see how the code could produce this effect.
I would worry more that this is a
compiler thing but I am not qualified to comment further.
Also tried with 18LF4620, but experienced same problems.
Kind Regards
Dave
Matt/Rob
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jallib/-/RScH_oJng40J.
To post to this group, send email to jal...@googlegroups.com.
To unsubscribe from this group, send email to jallib+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
Matt/Joep
A result!!
Changed the CLK resistor network to 1k/2.2k (didn’t have 2k don’t ask why)
Assuming PIC output level of 5V, divider would give 3.44V
(ish) which was within 23k256 spec of Vcc (3.3V ) + 0.3V max. input.
Obtained perfect results no problems reading/writing large
byte values. - yippee!!
Showed that 23k256 had not appeared to have suffered any damage from my fumbling.
Think I will stop there and call a halt on the 74HTC08 alternative method for now.
Looks as though comment by Joep "larger current faster signals" did the trick.
Where would one look on the 23k256 data sheet to assess the clock current sensitivity?
If you find out why will you
let me know?
Thanks for help with this
Kind Regards
Dave