Dspic33Fj32MC204 10Mhz kristal ile enyüksek hız konfigirasyonu nasıl olmalı

Başlatan rree, 18 Kasım 2011, 19:42:47

rree

#device DSPIC33FJ32MC204
#nolist
//////// Program memory: 11264x24  Data RAM: 2048  Stack: 31
//////// I/O: 35   Analog Pins: 9
//////// Fuses: WRTB,NOWRTB,BSSH1792,BSSH768,BSSH256,NOBSS,BSSS1792,BSSS768
//////// Fuses: BSSS256,WRTSS,NOWRTSS,PROTECT_HIGH,PROTECT,NOPROTECT,FRC
//////// Fuses: FRC_PLL,PR,PR_PLL,SOSC,LPRC,FRC_DIV_BY_16,FRC_PS,NOIESO,IESO
//////// Fuses: EC,XT,HS,NOPR,OSCIO,NOOSCIO,NOIOL1WAY,IOL1WAY,CKSFSM
//////// Fuses: CKSNOFSM,NOCKSFSM,WPOSTS1,WPOSTS2,WPOSTS3,WPOSTS4,WPOSTS5
//////// Fuses: WPOSTS6,WPOSTS7,WPOSTS8,WPOSTS9,WPOSTS10,WPOSTS11,WPOSTS12
//////// Fuses: WPOSTS13,WPOSTS14,WPOSTS15,WPOSTS16,WPRES32,WPRES128
//////// Fuses: NOWINDIS,WINDIS,NOWDT,WDT,NOPUT,PUT2,PUT4,PUT8,PUT16,PUT32
//////// Fuses: PUT64,PUT128,NOALTI2C,ALTI2C,LPOL_LOW,LPOL_HIGH,HPOL_LOW
//////// Fuses: HPOL_HIGH,PWMPIN,NOPWMPIN,ICSP3,ICSP2,ICSP1,NOJTAG,JTAG
//////// Fuses: DEBUG,NODEBUG
//////// 
////////////////////////////////////////////////////////////////// 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:

 
Bir kaç sorum olacak
1- Dspic33fj32mc204 10 Mhz kristal ve pll  ile en yüksek  hız fuses ayarları nasıl olmalıdır.
2- #use delay(clock=40Mhz) en yüksek değerimidir. Yoksa  #use delay(clock=80Mhz)gibi  daha yüksekmidir.
3- Isis Debug projemde Procesor clock Frequency kısmına 40Mhz mi yazmalıyım
4- Pic16f olduğu gibi parazitten wachdog (Bekçi köpeği)   da kilitlenip kalıyormu.
  Pic24 proje vizard ile elde ettiğim konfigirasyon aşağıda
#include <33FJ32MC204.h>

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES NOWRTB                   //Boot block not write protected
#FUSES BSSH1792              
#FUSES NOWRTSS                  //Secure segment not write protected
#FUSES PROTECT                  //Code protected from reads
#FUSES PR_PLL                   //Primary Oscillator with PLL
#FUSES IESO                     //Internal External Switch Over mode enabled
#FUSES NOPR                     //Pimary oscillaotr disabled
#FUSES NOOSCIO                  //OSC2 is clock output
#FUSES IOL1WAY                  //Allows only one reconfiguration of peripheral pins
#FUSES CKSFSM                   //Clock Switching is enabled, fail Safe clock monitor is enabled
#FUSES WPOSTS16                 //Watch Dog Timer PostScalar 1:32768
#FUSES WPRES128                 //Watch Dog Timer PreScalar 1:128
#FUSES WINDIS                   //Watch Dog Timer in non-Window mode
#FUSES PUT128                   //Power On Reset Timer value 128ms
#FUSES ALTI2C                   //I2C mapped to SDA1/SCL1 pins
#FUSES LPOL_HIGH                //Low-Side Transistors Polarity is Active-High (PWM 0,2,4 and 6)
   //PWM module low side output pins have active high output polar
#FUSES HPOL_HIGH                //High-Side Transistors Polarity is Active-High (PWM 1,3,5 and 7)
   //PWM module high side output pins have active high output polarity
#FUSES NOPWMPIN                 //PWM outputs drive active state upon Reset
#FUSES ICSP1                    //ICD uses PGC1/PGD1 pins
#FUSES NOJTAG                   //JTAG disabled
#FUSES NODEBUG                  //No Debug mode for ICD

#use delay(clock=20000000)


skara1214

#FUSES PR_PLL,HS,NOWDT
#use delay(clock=80M,oscillator=10M)
ben 33f128gp802 yi böyle sorunsuz çalıştırıyorum heralde sizinkide öyle çalışır...
Herkes ölür ama herkes gerçekten yaşamaz

rree

İki gün dür uğraşıyordum. Çözüm bulamamıştım.
Denedim sağol  verdiğin fuses ayarı düzgün çalıştı.