|
|
View previous topic :: View next topic |
Author |
Message |
Flaviofrc
Joined: 04 Mar 2008 Posts: 7
|
dsPIC33 register not in the 33EPxxx.h ! |
Posted: Fri Oct 18, 2013 6:27 am |
|
|
Dear,
I'm working with a dsPIC33EP256MU806 and need to access a register that is not in the file 33EP256MU806.H, is the registered RPINR14.
My question is, how to access the register to configure it properly?
The register address is 0x06BC and need to store the value 0x4A4B.
I appreciate the help!
Flavio |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19499
|
|
Posted: Fri Oct 18, 2013 7:04 am |
|
|
Code: |
#word RPINR14=getenv("SFR:RPINR14")
//Then just where you want to load it:
RPINR14=0x4A4B
|
What compiler version are you using?. It is in the generated register file for at least the last 20 compilers. I just tried back to the mid 4.13x version.
If the register file was generated by an old compiler, then worth 'regenerating' it if you have the IDE. Tools, Device editor, select the chip, select 'registers' on the top tab, and 'make include file' at the bottom of the page.
If your compiler is so old that it doesn't have the register name, then just put the physical address instead of getting the address automatically. However it is likely if this is the case that this was a very early compiler for the chip, and as always with CCS, 'beware' in this case....
Best Wishes |
|
|
Flaviofrc
Joined: 04 Mar 2008 Posts: 7
|
|
Posted: Fri Oct 18, 2013 7:32 am |
|
|
Ttelmah wrote: | Code: |
#word RPINR14=getenv("SFR:RPINR14")
//Then just where you want to load it:
RPINR14=0x4A4B
|
What compiler version are you using?. It is in the generated register file for at least the last 20 compilers. I just tried back to the mid 4.13x version.
If the register file was generated by an old compiler, then worth 'regenerating' it if you have the IDE. Tools, Device editor, select the chip, select 'registers' on the top tab, and 'make include file' at the bottom of the page.
If your compiler is so old that it doesn't have the register name, then just put the physical address instead of getting the address automatically. However it is likely if this is the case that this was a very early compiler for the chip, and as always with CCS, 'beware' in this case....
Best Wishes |
Dear my friend,
This solve the problem, I never use this !!!
I use version 5 !
Thank you very much!!! _________________ Flavio R. Caruso
www.stareletronics.com.br |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|