hallo miteinander
Ich habe mal versucht etwas neues als nur AVR Prozessoren zum
programmieren nehmen.
Mein Versuchskandidat ist der dsPIC30F6012A aber leider komme ich noch
nicht ganz so klar wie ich hier die Fuses setzen muss.
Der PIC hat einen 40MHz Quarz
Ich arbeite mit der CSS IDE und habe es momentan so gesetzt:
1 | #FUSES NOWDT //No Watch Dog Timer
|
2 | #FUSES HS //High speed Osc (> 4mhz)
|
3 | #FUSES LP //Low power osc < 200 khz
|
4 | #FUSES NOCKSFSM //Clock Switching is disabled, fail Safe clock monitor is disabled
|
5 | #FUSES WPSB1 //Watch Dog Timer PreScalar B 1:1
|
6 | #FUSES WPSA1 //Watch Dog Timer PreScalar A 1:1
|
7 | #FUSES PUT64 //Power On Reset Timer value 64ms
|
8 | #FUSES BROWNOUT //Reset when brownout detected
|
9 | #FUSES BORV20 //Brownout reset at 2.0V
|
10 | #FUSES LPOL_HIGH //Low-Side Transistors Polarity is Active-High (PWM 0,2,4 and 6)
|
11 | //PWM module low side output pins have active high output polar
|
12 | #FUSES HPOL_HIGH //High-Side Transistors Polarity is Active-High (PWM 1,3,5 and 7)
|
13 | //PWM module high side output pins have active high output polarity
|
14 | #FUSES NOPWMPIN //PWM outputs drive active state upon Reset
|
15 | #FUSES MCLR //Master Clear pin enabled
|
16 | #FUSES NOPROTECT //Code not protected from reading
|
17 | #FUSES NOWRT //Program memory not write protected
|
18 | #FUSES NODEBUG //No Debug mode for ICD
|
19 | #FUSES NOCOE //Device will reset into operational mode
|
20 | #FUSES ICS0 //ICD communication channel 0
|
21 | #FUSES RESERVED //Used to set the reserved FUSE bits
|
22 | #FUSES RESERVED //Used to set the reserved FUSE bits
|
irgendwie widerspricht sich das hier:
>>#FUSES HS //High speed Osc (> 4mhz)
>>#FUSES LP //Low power osc < 200 khz
stimmt das?
Danke für die Hilfe
MFG
Patrick