huybo02
21-03-2007, 10:31 PM
Chân RB3 của PIC được dùng trong LVP ( Low Power Programing) và khi đó không được dùng như 1 port I/O. Mình có đọc 1 bài nói là khi dùng PIC mới thì cần nối đất cho RB3 thông qua 1 điện trở nếu không PIC có thể ko hoạt động.
"2.While in Low-Voltage ICSP mode, the RB3 pin can no longer be used as a
general purpose I/O pin.
3: When using Low-Voltage ICSP Programming (LVP) and the pull-ups on PORTB are enabled, bit 3 in the TRISB register must be cleared to disable the pull-up on RB3 and ensure the proper operation of the device.
4: RB3 should not be allowed to float if LVP is enabled. An external pull-down device should be used to default the device to normal operating mode. If RB3 floats high, the PIC16F87XA device will enter Programming mode.
5: LVP mode is enabled by default on all devices shipped from Microchip. It can be disabled by clearing the LVP bit in the CONFIG register.
6: Disabling LVP will provide maximum compatibility to other PIC16CXXX devices."
( data sheet 16F877A)
Mình muốn hỏi phải làm sao để có thể dùng RB3 như 1 cổng I/O( disable LVP)?? Cái này có lẽ liên quan đến chương trình nạp nhưng không biết làm sao. Trong IC-prog bên phần bên phải có phần "fuses" có tick tại ô LVP? bỏ ô này được không?? Và ý nghĩa của các option này ( WDT, PWRT, BODEN, LVP, CPD,CP, DEBUGGER) ?
"2.While in Low-Voltage ICSP mode, the RB3 pin can no longer be used as a
general purpose I/O pin.
3: When using Low-Voltage ICSP Programming (LVP) and the pull-ups on PORTB are enabled, bit 3 in the TRISB register must be cleared to disable the pull-up on RB3 and ensure the proper operation of the device.
4: RB3 should not be allowed to float if LVP is enabled. An external pull-down device should be used to default the device to normal operating mode. If RB3 floats high, the PIC16F87XA device will enter Programming mode.
5: LVP mode is enabled by default on all devices shipped from Microchip. It can be disabled by clearing the LVP bit in the CONFIG register.
6: Disabling LVP will provide maximum compatibility to other PIC16CXXX devices."
( data sheet 16F877A)
Mình muốn hỏi phải làm sao để có thể dùng RB3 như 1 cổng I/O( disable LVP)?? Cái này có lẽ liên quan đến chương trình nạp nhưng không biết làm sao. Trong IC-prog bên phần bên phải có phần "fuses" có tick tại ô LVP? bỏ ô này được không?? Và ý nghĩa của các option này ( WDT, PWRT, BODEN, LVP, CPD,CP, DEBUGGER) ?