Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #379693
| From | Martin Brown <|||newspam|||@nezumi.demon.co.uk> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: OT: How fetch random byte on PIC16F648A |
| Date | 2015-10-01 20:59 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <muk3ap$7lo$1@speranza.aioe.org> (permalink) |
| References | (2 earlier) <8AENx.30414$NY7.4101@fx08.iad> <pn7e0btl0ovk5hpf94r9fdfgpj03grbdfc@4ax.com> <X4LOx.22293$1M2.20450@fx24.iad> <mujiud$u4a$1@speranza.aioe.org> <mujkj8$4vq$2@dont-email.me> |
On 01/10/2015 16:49, rickman wrote: > On 10/1/2015 11:19 AM, Martin Brown wrote: >> >> It makes no sense to be able to read or write from program memory at >> runtime if you care about reliability. > > What's wrong with reading program memory at run time? How/where do you > store constant data tables? Read is OK but write is hard to prevent unless you have a segmented architecture of some sort. Harvard architecture is the most restrictive of all and prevents any access to program code space at runtime. On a PIC you do it by using the equivalent of a computed goto to execute a RETURN instruction that loads a value into the W register. You literally cannot peek into the program address space at runtime. I agree it is a nuisance for constant tables in hard access restricted architectures that are memory constrained. In the old days this was one bit we always did by hand coded assembler since the compiler was dumb enough to copy string constants from EPROM into precious ram. Write cycles executed against an EPROM have very little effect. Something that could be an embarrassment on embedded TI9900 series CPUs where all the registers including program counter were in ram. If the active register bank pointer ever got corrupted to point at ROM then it became incredibly difficult to increment the PC. -- Regards, Martin Brown
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
OT: How fetch random byte on PIC16F648A Robert Baer <robertbaer@localnet.com> - 2015-09-25 23:31 -0700
Re: OT: How fetch random byte on PIC16F648A Ian Malcolm <See.My.Sig.for.email@totally.invalid> - 2015-09-26 11:00 +0000
Re: OT: How fetch random byte on PIC16F648A Robert Baer <robertbaer@localnet.com> - 2015-09-26 15:00 -0700
Re: OT: How fetch random byte on PIC16F648A krw <krw@nowhere.com> - 2015-09-26 18:42 -0400
Re: OT: How fetch random byte on PIC16F648A Robert Baer <robertbaer@localnet.com> - 2015-09-29 23:14 -0700
Re: OT: How fetch random byte on PIC16F648A krw <krw@nowhere.com> - 2015-09-30 09:20 -0400
Re: OT: How fetch random byte on PIC16F648A Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-10-01 16:19 +0100
Re: OT: How fetch random byte on PIC16F648A rickman <gnuarm@gmail.com> - 2015-10-01 11:49 -0400
Re: OT: How fetch random byte on PIC16F648A Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-10-01 20:59 +0100
Re: OT: How fetch random byte on PIC16F648A rickman <gnuarm@gmail.com> - 2015-09-26 21:23 -0400
Re: OT: How fetch random byte on PIC16F648A Robert Roland <fake@ddress.no> - 2015-09-27 11:57 +0200
Re: OT: How fetch random byte on PIC16F648A Martin Riddle <martin_ridd@verizon.net> - 2015-09-26 10:51 -0400
Re: OT: How fetch random byte on PIC16F648A Robert Baer <robertbaer@localnet.com> - 2015-09-26 15:07 -0700
Re: OT: How fetch random byte on PIC16F648A Martin Riddle <martin_ridd@verizon.net> - 2015-09-26 18:22 -0400
Re: OT: How fetch random byte on PIC16F648A Ian Malcolm <See.My.Sig.for.email@totally.invalid> - 2015-09-27 01:51 +0000
Re: OT: How fetch random byte on PIC16F648A Robert Baer <robertbaer@localnet.com> - 2015-09-29 23:21 -0700
Re: OT: How fetch random byte on PIC16F648A Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2015-09-26 21:43 -0400
Re: OT: How fetch random byte on PIC16F648A "P E Schoen" <paul@pstech-inc.com> - 2015-09-27 21:56 -0400
csiph-web