Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hello everybody,
I have a dsPIC30f6012 with 6MHz external crystal oxillator. I am using MPLAB, I understand that i can configure FOSC to use the internal PLL and increase the internal clock by factor of 4,8 or 16. My project needs 9Mhz, 12Mhz clocks. How can i do that?
Thank you
Hello Milan,
Thank you again for the help. the code you wrote is the older version of CE017 example (2005) and it has the same problem as the one i posted (2007 version). Both of them are exactally the same they only integrated DataEEPROM.h in the libpic30.h.
I am thinking now about using mikroC...
That is what i think also, i tried to write it from scratch using assembly as the datasheet explains with no success as well "FRUSTRATED". I appreciate ur help Milan, but i can not use mikroC compiler.
Thank you for the advice, here is the code:
#include <p30f6012a.h>
#include <libpic30.h>
_FOSC(CSW_FSCM_OFF & XT_PLL8); /* Set up for XTxPLL8 mode since */
/* we will be tuning the FRC in this example */
_FWDT(WDT_OFF); /* Turn off the Watch-Dog...
I am sorry but i think i did not understand you so well. There is no EEPROM_Write function defined in CE017 example, instead there is: _write_eedata_word(EE_addr,EE_data).
And i already tried tried _write_eedata_word(0x00D,0x05) but it did not work. Would you please clearify more?
Unfortunatly it doesnt work. I tried hex/dec values,pointer/scalar, exact adress names (ox7ff00D)/relative (0x0D). But it seems it is not changing any way.
I read in the manual that NVMADRU:NVMADR can be manually loaded to modify the address, i added those two lines before erase and write also...
Hello every body,
I am trying to write in the eeprom, the code example is provided by Micoship. The code works fine, but i want to change the writing adress EE_addr and increment it by 13 each cycle.
_prog_addressT EE_addr;
/* initialize a variable to represent the Data EEPROM...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.