How do I write to the User ID memory locations (2000h-2003h) on a PIC 12F683? Poke, PokeCode, Write, and WriteCode don't seem to be the answer. Do I need to insert assembly code in the PBP code?
How do I write to the User ID memory locations (2000h-2003h) on a PIC 12F683? Poke, PokeCode, Write, and WriteCode don't seem to be the answer. Do I need to insert assembly code in the PBP code?
place those line at the end of your code
you should haveCode:asm errorlevel -220 org 0x2000 dw 0,1,2,3 endasm
ID0 = 00
ID1 = 01
ID2 = 02
ID3 = 03
Probably there's a much more elegant way to do it... seems to work here
Last edited by mister_e; - 4th December 2007 at 03:53.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
deuhhh, yes there's an easier way.... Always nice to read MPASM PDF
Neat, easy, and it works!Code:@ __IDLOCS 0x1234
EDIT:But seems the previous allow much possibility...you could set 1A, 1B, 1C, 1D.. not with the second.. or i overlooked something... as usual![]()
Last edited by mister_e; - 4th December 2007 at 04:28.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
And for the crowd that doesn't use MPASM ...
A shrinking crowd, but still a crowd.
This is from PM.TXTEdit: Put an @ and a space in front of itCode:8.2. ID ID Expr ID String ID CHECKSUM Each PICmicro MCU has a 16-bit (12-bit core) or 28-bit (14-bit core) ID. This value can be set in one of three methods. A numeric expression or string constant can be used for either core type. For 12-bit cores only, the reserved word CHECKSUM may be used. This forces some PICmicro MCU programmers to compute the checksum of the PICmicro MCU code space.
Last edited by Darrel Taylor; - 4th December 2007 at 06:37. Reason: @
DT
Bookmarks