PIC Vietnam

PIC Vietnam (http://www.picvietnam.com/forum/index.php)
-   Những câu hỏi thường gặp (http://www.picvietnam.com/forum/forumdisplay.php?f=54)
-   -   Không reset được cho PIC6F1947 cả mức thấp lẫn mức cao (http://www.picvietnam.com/forum/showthread.php?t=20639)

ntd_17689 25-05-2012 11:42 AM

Không reset được cho PIC6F1947 cả mức thấp lẫn mức cao
 
Hiện tại em đang làm việc với PIC6f1947
Không biết vì sao mà ko thể reset được cho chip
Em nghĩ là do phần Config trong code
Rất mong các bác chỉ giúp
Cảm ơn các bác nhiều
Đây là phần config của em
__CONFIG (CONFIG1 // Address 8007
//**************************//
// Oscillator Selection //
//**************************//
// & FOSC_ECH // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin
// & FOSC_ECM // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin
// & FOSC_ECL // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin
// & FOSC_INTOSC // INTOSC oscillator: I/O function on CLKIN pin
// & FOSC_EXTRC // EXTRC oscillator: External RC circuit connected to CLKIN pin
&FOSC_HS // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins
// & FOSC_XT // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins
// & FOSC_LP // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins
//**************************//
// Watchdog Timer Enable //
//**************************//
// & WDTE_ON // WDT enabled
// & WDTE_NSLEEP // WDT enabled while running and disabled in Sleep
// & WDTE_SWDTEN // WDT controlled by the SWDTEN bit in the WDTCON register
& WDTE_OFF // WDT disabled
//**************************//
// Power-up Timer Enable //
//**************************//
// & PWRTE_OFF // PWRT disabled
& PWRTE_ON // PWRT enabled
//**************************//
// MCLR Pin Function Select //
//**************************//
& MCLRE_ON // MCLR/VPP pin function is MCLR
// & MCLRE_OFF // MCLR/VPP pin function is digital input
//**************************//
//**************************//
// Flash Program Memory Code Protection
//***************************/
// & CP_OFF // Program memory code protection is disabled
& CP_ON // Program memory code protection is enabled
//***************************/
// Data Memory Code Protection
//***************************/
// & CPD_OFF // Data memory code protection is disabled
& CPD_ON // Data memory code protection is enabled
//***************************/
// Brown-out Reset Enable //
//***************************/
& BOREN_ON // Brown-out Reset enabled
// & BOREN_NSLEEP // Brown-out Reset enabled while running and disabled in Sleep
// & BOREN_SBODEN // Brown-out Reset controlled by the SBOREN bit in the BORCON register
// & BOREN_OFF // Brown-out Reset disabled
//***************************/
// Clock Out Enable //
//***************************/
// & CLKOUTEN_OFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin
& CLKOUTEN_ON // CLKOUT function is enabled on the CLKOUT pin
//***************************/
// Internal/External Switchover
//***************************/
// & IESO_ON // Internal/External Switchover mode is enabled
& IESO_OFF // Internal/External Switchover mode is disabled
//***************************/
// Fail-Safe Clock Monitor Enable
//***************************/
// & FCMEN_ON // Fail-Safe Clock Monitor is enabled
& FCMEN_OFF // Fail-Safe Clock Monitor is disabled
//***************************/
);

__CONFIG (CONFIG2 // Address 8008
//**************************//
// Flash Memory Self-Write Protection
//**************************//
// & WRT_OFF // Write protection off
// & WRT_BOOT // 000h to 1FFh write protected, 200h to 3FFFh may be modified by EECON control
& WRT_HALF // 000h to 1FFFh write protected, 2000h to 3FFFh may be modified by EECON control
// & WRT_ALL // 000h to 3FFFh write protected, no addresses may be modified by EECON control
//**************************//
// Voltage Regulator Capacitor Enable
//**************************//
// & VCAPEN_OFF // VCAP pin functionality is disabled
& VCAPEN_ON // VCAP functionality is enabled on VCAP pin
//**************************//
// PLL Enable //
//**************************//
// & PLLEN_ON // 4x PLL enabled
& PLLEN_OFF // 4x PLL disabled
//**************************//
// Stack Overflow/Underflow Reset Enable
//**************************//
// & STVREN_ON // Stack Overflow or Underflow will cause a Reset
& STVREN_OFF // Stack Overflow or Underflow will not cause a Reset
//**************************//
// Brown-out Reset Voltage Selection
//**************************//
& BORV_19 // Brown-out Reset Voltage (VBOR) set to 1.9 V
// & BORV_25 // Brown-out Reset Voltage (VBOR) set to 2.5 V
//**************************//
// Low-Voltage Programming Enable
//**************************//
// & LVP_ON // Low-voltage programming enabled
& LVP_OFF // High-voltage on MCLR/VPP must be used for programming
//**************************//
);

cuongadn90 13-11-2012 07:24 PM

tình hình là mình không thể reset pic 16ff887
mạch reset đâu dùng trở 10k cùng với 1 điện trở thôi , nhưng không thể reset được khi ấn nut, có bác nào có ý kiến j thì cho phản biện nào


Múi giờ GMT. Hiện tại là 09:54 AM.

Tên diễn đàn: vBulletin Version 3.8.11
Được sáng lập bởi Đoàn Hiệp.
Copyright © PIC Vietnam