Reading device ID

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
arco
Posts: 312
Joined: 15 Apr 2008 13:54
Location: The Netherlands

Reading device ID

#1 Post by arco » 23 Jul 2017 14:13

How do I read the device ID and revision of a 24FJ256GA108 ?
This code returns an all-zero block:

Code: Select all

  Flash_Read_Compact(0xFFFF80, Data_, 192)
Edit:
Already found it! Seems an error in the datasheet.
That says that the device ID and revision are located at the last 2 implemented config memory words.
(since the memory runs upto 0xFFFFFF, that would be 0xFFFFFC and 0xFFFFFE)
In some other code I found they used address 0xFF0000 and 0xFF0002, and that works...
Regards,

Peter.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 General”