Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pic8 or pic32 progmem?
22-10-2013, 07:04 PM,
pic8 or pic32 progmem?
Progmem command be in existence on pingunio?
23-10-2013, 06:30 PM,
RE: pic8 or pic32 progmem?
Short answer : No
Long answer :
Progmem is used to store variables in AVR's flash memory which is also possible on PIC18F or PIC32MX but :
- you can't write a single byte but 2, 32 or 64 at a time depending on your MCU
- every byte must be erased before being written
- you can't erase a single byte but only 1024 at a time
- erase/write cycle is about 10.000
- address management is up to you, take care not to write or erase the flash memory where your program is.
If you want to use PIC32MX, they have up to 128K RAM. It should be enough.
If you want to use PIC18F, choose one with eeprom (256 bytes) and use EEPROM functions.
If you want to use a PIC18F without eeprom or need more than 256 bytes then I can show you how to use the Flash library (but first I will have to update it for new processors).
It is easier to complain than it is to do, but it is better to do than it is to complain.

Forum Jump:

Users browsing this thread: 1 Guest(s)