On 10 Nov 2008, at 09:40 , Rob Hamerling wrote:

>>>     trunk/unvalidated/sample/by_device/16f648a/ 
>>> data_eeprom_16f648a.jal
>>>     trunk/unvalidated/sample/by_device/16f88/data_eeprom_16f88.jal
>> The name data_eeprom is used here and flash_memory.
>> Might I suggest "eeprom" and "flash"?
>
> In Programming Specifications I read the terms 'code' or 'program',
> 'data', 'configuration' and ID memory, but the Datasheets use the  
> terms
> 'Program Memory', 'Data RAM', 'Data EEPROM', but also flash/data  
> EEPROM.
> So it's not surprising that these terms are mixed when collecting code
> written by different authors.

The datasheet, which is what most users and n00bs read, speaks of  
Flash and EEPROM. Also of FLASH program memory and data EEPROM memory.

> BTW. I cannot remember if I every encountered the term 'fuses' in
> Microchip docs, it's always 'Configuration memory' or  
> 'Configuration Word'.

> Off in SLEEP, on when operating. Using a fuse setting, the PBOR  
> will automatically be disabled in SLEEP and enabled upon wake-up.
http://www.microchip.com/stellent/idcplg? 
IdcService=SS_GET_PAGE&nodeId=2628&param=en533315

But it is the only mention I can find. It is a very old name. Some  
old PGA had fuses, i.e. OTP cell configurations. Methinks old PICs  
had these as well.
To remove the fuses keyword, the compiler has to be changed, right?  
Maybe we can add a config_def  pragma, so both work.

> I'm not so familiar with the physical implementations, but to me  
> all PIC
> memory regions are 'EEPROM'. Apart from that the physical  
> implementation
> is irrelevant for an application program, so we should not use the  
> terms
> EEPROM or flash.

You are old enough to have lived and worked before Flash even  
existed. You know the difference.
Since Flash and EEPROM are totally different in a PIC and confusing  
them can have disastrous consequenses, I disagree.

> I suggest to use the terms 'code', 'data', 'config' and 'ID' memory,
> because these names refer to memory regions which are relevant for an
> application.

Where ID is often a subset of config. But I agree, where code = Flash  
and data = EEPROM. But then you need two words and it is not  
compatible with the datsheet.

>> The terms data, memory and byte are quite meaningless in a PIC
>> environment.
> Huh? Please explain!

Everything is data and everything is memory. The default handling  
unit of a PIC is a byte, there are only four (five in 18f asm)  
instructions that deal with bits.
So byte should not be part of any procedure name, unless it  
explicitly handles just one byte where lots of other procs handle  
bits, nibbles, words, etc.

Data and byte are so generous that they can be attached to the names  
of nearly every procedure. So they should never be.


lcd = "A"

lcd_data = "A"

lcd_byte = "A"

lcd_data_byte = "A"


---
ir EE van Andel [EMAIL PROTECTED]  http://www.fiwihex.nl
Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
tel+31-546-491106 fax+31-546-491107



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to