Перейти к содержанию
    

pic16f628а внутрисхемную отладку поддерживает ? The target device is not ready for debugging.

Quote

Since in-circuit debugging requires the loss of clock, data and MCLR pins, MPLAB® ICD 2 development with an 18-pin device is not practical. A special 28-pin PIC16F648A-ICD device is used with MPLAB ICD 2 to provide separate clock, data and MCLR pins and frees all normally available pins to the user. Debugging of all three versions of the PIC16F627A/628A/648A is supported by the PIC16F648A-ICD.
This special ICD device is mounted on the top of a header and its signals are routed to the MPLAB ICD 2 connector. On the bottom of the header is an 18-pin socket that plugs into the user’s target via an 18-pin stand-off connector.
When the ICD pin on the PIC16F648A-ICD device is held low, the In-Circuit Debugger functionality is enabled. This function allows simple debugging functions when used with MPLAB ICD 2. When the microcontroller has this feature enabled, some of the resources are not available for general use. Table 14-19 shows which features are consumed by the background
debugger.

pic16f628а внутрисхемную отладку не поддерживает ?

Ругается: "Programming/Verify complete The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings."

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

On 1/3/2024 at 1:38 AM, girts said:

Вполне возможно, что задействовали внешний кварц. И оно чуть конфликтует.

#include <xc.h>
#pragma config FOSC = INTRCCLK  // Oscillator Selection bits (INTOSC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN)
#pragma config WDTE = OFF       // Watchdog Timer Enable bit (WDT disabled)
#pragma config PWRTE = OFF      // Power-up Timer Enable bit (PWRT disabled)
#pragma config MCLRE = ON       // RA3/MCLR pin function select (RA3/MCLR pin function is MCLR)
#pragma config BOREN = ON       // Brown-out Detect Enable bit (BOD enabled)
#pragma config CP = OFF         // Code Protection bit (Program Memory code protection is disabled)
#pragma config CPD = OFF        // Data Code Protection bit (Data memory code protection is disabled)
/*========================================================*/
void __interrupt()  timer_isr(void)
{  
    if(TMR0IF==1)
    {
        TMR0= 101;     
        TMR0IF=0;      
    } 
    if(TMR1IF==1)
    {
        TMR1= 101;     
        TMR1IF=0;      
    }       
    RC2=~RC2;       
}
/*========================================================*/
void main(void) 
{
  int i;
  
  TRISC2= 0;
  TRISC3= 0;
  OPTION_REG = 0x07;  // Timer0 with external freq and 32 as prescalar
  TMR0=100;       // Load the time value for 1ms delay
  TMR0IE=1;       //Enable timer interrupt bit in PIE1 register
  GIE=1;          //Enable Global Interrupt
  PEIE=1;         //Enable the Peripheral Interrupt
  while(1)
  {
    for(i=0 ; i < 10000; i++)
        continue;    
    RC3=0;
    for(i=0; i < 10000; i++)
        continue;
    RC3=1;
  }  
}
Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.09
Firmware type..............Midrange

Target voltage detected
Target device PIC16F630 found.
Device Revision ID = 4

Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x63
configuration memory
Programming/Verify complete
The target device is not ready for debugging. Please check your configuration bit settings and program the device before

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

https://www.newark.com/productimages/standard/en_US/04M5427-40.jpg


На фотке м/сх маркировка: PIC16F676-ICD

В простой PIC16F676 - не доклали отладчик ?

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

×
×
  • Создать...