|
|
View previous topic :: View next topic |
Author |
Message |
1980best
Joined: 25 May 2007 Posts: 26
|
(24FV32KA302) secondary oscillator = I O do |
Posted: Wed Mar 07, 2012 7:52 am |
|
|
Code: |
#include <24FV32KA302.h>
#device ADC=12
#FUSES NOBROWNOUT
#FUSES NOWDT
#FUSES ICSP1
#FUSES OSCIO
#FUSES PR //Primary Oscillator
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
//#FUSES MCLR
#FUSES debug
// #FUSES SOSC_DIG error // SOSC_DIG Digital mode, I/O port functionality of RC0 and RC1 //
// #FUSES SOSC_IO error //////SOSC_IO SOSC pins have digital I/O functions //////
|
...................PROBLEM
I WANT to use IO as a secondary oscillator.
12 SOSCO/SCLKI/U2CTS/CN0/RA4
11 SOSCI/AN15/U2RTS /CN1/RB4
but not to be...........error.....
pdf
http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en552766
thanks |
|
|
1980best
Joined: 25 May 2007 Posts: 26
|
|
Posted: Thu Mar 08, 2012 12:42 am |
|
|
#fuses SOSC_DIGITAL // error
ERROR unknown keyword in #FUSES "SOSC_DIGITAL" |
|
|
1980best
Joined: 25 May 2007 Posts: 26
|
|
Posted: Thu Mar 08, 2012 12:44 am |
|
|
pcwhd version 4.124 |
|
|
1980best
Joined: 25 May 2007 Posts: 26
|
|
Posted: Thu Mar 08, 2012 12:45 am |
|
|
//////// Standard Header file for the PIC24FV32KA302 device ////////////////
#device PIC24FV32KA302
#nolist
//////// Program memory: 11264x24 Data RAM: 2048 Stack: 31
//////// I/O: 23 Analog Pins: 13
//////// Data EEPROM: 512
//////// Fuses: WRTB,NOWRTB,BSSH2560,BSSH1152,BSSS2560,BSSS1152,NOBSS,WRT
//////// Fuses: NOWRT,PROTECT,NOPROTECT,FRC,FRC_PLL,PR,PR_PLL,SOSC,LPRC
//////// Fuses: LPFRC_DIV,FRC_DIV,NOIESO,IESO,EC,XT,HS,NOPR,OSCIO,NOOSCIO
//////// Fuses: POSCFREQ_L,POSCFREQ_M,POSCFREQ_H,SOSC_LOW,SOSC_HIGH,CKSFSM
//////// Fuses: CKSNOFSM,NOCKSFSM,WPOSTS1,WPOSTS2,WPOSTS3,WPOSTS4,WPOSTS5
//////// Fuses: WPOSTS6,WPOSTS7,WPOSTS8,WPOSTS9,WPOSTS10,WPOSTS11,WPOSTS12
//////// Fuses: WPOSTS13,WPOSTS14,WPOSTS15,WPOSTS16,WDT32,WDT128,NOWINDIS
//////// Fuses: WINDIS,NOWDT,WDT_NOSLEEP,WDT_SW,WDT,NOBROWNOUT,BROWNOUT_SW
//////// Fuses: BROWNOUT_NOSL,BROWNOUT,NOPUT,PUT,ALTI2C,NOALTI2C,LPBORV
//////// Fuses: BORV_HIGH,BORV_MID,BORV_LOW,NOMCLR,MCLR,ICSP3,ICSP2,ICSP1
//////// Fuses: DEBUG,NODEBUG,DSWDT2,DSWDT8,DSWDT32,DSWDT128,DSWDT512
//////// Fuses: DSWDT2048,DSWDT8192,DSWDT32768,DSWDT131072,DSWDT524288
//////// Fuses: DSWDT2097152,DSWDT8388608,DSWDT33554432,DSWDT134217728
//////// Fuses: DSWDT536870912,DSWDT2147483648,DSWDTCK_SOSC,DSWDTCK_LPRC
//////// Fuses: NODSBOR,DSBOR,NODSWDT,DSWDT
////////
////////////////////////////////////////////////////////////////// I/O
// Discrete I/O Functions: SET_TRIS_x(), OUTPUT_x(), INPUT_x(),
// SET_PULLUP(), INPUT(),
// OUTPUT_LOW(), OUTPUT_HIGH(),
// OUTPUT_FLOAT(), OUTPUT_BIT()
// Constants used to identify pins in the above are: |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Thu Mar 08, 2012 2:34 am |
|
|
I see that fuse settings for 24FV32KA302 aren't correctly implemented in PCD V4.124.
As previously discussed, you have either the option to correct/supplement the fuse setting with the device editor tool,
or to specify appropriate configuration words with a #rom statement. Or use the most recent PCD version. |
|
|
1980best
Joined: 25 May 2007 Posts: 26
|
|
Posted: Thu Mar 08, 2012 7:11 am |
|
|
FvM wrote: | I see that fuse settings for 24FV32KA302 aren't correctly implemented in PCD V4.124.
As previously discussed, you have either the option to correct/supplement the fuse setting with the device editor tool,
or to specify appropriate configuration words with a #rom statement. Or use the most recent PCD version. |
thanks
problem is solved by using pcwhd 4.128
/*
//#FUSES SOSC_DIG
//#FUSES SOSC_IO
//#FUSES SOSC_DIGITAL
*/
#FUSES SOSC_ANALOG
#FUSES SOSC_ANALOG // ok |
|
|
|
|
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
|