190 likes | 431 Views
Automotive Embedded Computer. dsPIC DSC. Informatii configurare Generare clock WDT Reset Protectie cod Codec AUDIO WM5810. Informatii configurare dsPIC. Generator clock – schema bloc. Executia instructiunilor. SURSE CLOCK. REGISTRU CONFIGURARE OSCILATOR – FOSC ( 0xF8000 ).
E N D
Automotive Embedded Computer dsPIC DSC Informatii configurare Generare clock WDT Reset Protectie cod Codec AUDIO WM5810
Functii pt. conf. oscilator /* from p33FJ32MC302.h _FOSCSEL( OPT1_ON & OPT2_OFF & OPT3_PLL ) Oscillator Source Selection: FNOSC_FRC Fast RC oscillator FNOSC_FRCPLL Fast RC oscillator w/ divide and PLL FNOSC_PRI Primary oscillator (XT, HS, EC) FNOSC_PRIPLL Primary oscillator (XT, HS, EC) w/ PLL FNOSC_SOSC Secondary oscillator FNOSC_LPRC Low power RC oscillator FNOSC_FRCDIV16 Fast RC oscillator w/ divide by 16 FNOSC_LPRCDIVN Low power Fast RC oscillator w/divide by N Two-speed Oscillator Startup : IESO_OFF Disabled IESO_ON Enabled */
/* • _FOSC( OPT1_ON & OPT2_OFF & OPT3_PLL ) • Clock switching and clock monitor: • FCKSM_CSECME Both enabled • FCKSM_CSECMD Only clock switching enabled • FCKSM_CSDCMD Both disabled • Single configuration for remappable I/O: • IOL1WAY_OFF Disabled • IOL1WAY_ON Enabled • OSC2 Pin function: • OSCIOFNC_ON Digital I/O • OSCIOFNC_OFF OSC2 is clock O/P • Oscillator Selection: • POSCMD_EC External clock • POSCMD_XT XT oscillator • POSCMD_HS HS oscillator • POSCMD_NONE Primary disabled • */ • _FWDT(FWDTEN_OFF);