Jump to content

logic analyzer plug-in kills picAnt

Recommended Posts



I just installed and registered the additional plug-ins.  The LED blocks work as anticpated, but the logic analyzer does not.  Actually several things are happening:


With PicAnt running and my most recent workspace loaded - button block and logic analyzer appear close to where I left them previously - then:


1:  I click on the debug Icon

   Now logic analyzer is replaced with I2c EEprom -

2: Close the I2cEEprom

3: Restart the analyzer from the drop down menu

4: Undock the analyzer and re-size it

5: Click on Run icon

  Now Analyzer shows white "follow line" streak across display.

  Now display is frozen.  Trying to close any PicAnt window results in a "not responding" warning/error from Windows XP (professional) and results in entire program shutting down.


Code is fairly simple and follows





#include <system.h>
#include "tx.h"

// If this is the 16C84 then carry over some of the 12C508A variables from p12c508a.h
#ifdef _PIC16C84
// Registers
char osccal@0x0005;
char gpio@0x0006;

// STATUS Bits
#define         GPWUF           0x0007 
#define         PA0             0x0005     	 

// OPTION Bits
#define         NOT_GPWU        0x0007                                                                                         
#define         NOT_GPPU        0x0006 

// OSCCAL Bits	
#define         OSCFST          0x0003                                                                                         
#define         OSCSLW          0x0002   

// Configuration Bits	
#define         _MCLRE_ON       0x0FFF                                                                                         
#define         _MCLRE_OFF      0x0FEF                                                                                         
#define         _IntRC_OSC      0x0FFE

char pin = 0x1;

gpio = 0;  // Clear I/O

// Setup I/O mask
*	12c508a:
*  movlw 0x3E   ; load w with mask
*  tris gpio    ; put mask on I/O port
*	16c84:
*  movlw 0x3E  ; load w with mask
*  movwf trisb  ; put mask on I/O port

asm movlw 0x3e  ; //00111110
#ifdef _PIC16C84
 asm movwf TRISB ;
 asm tris GPIO   ;

while (1)
 gpio = pin;	
 pin = pin + 0x1;


Target is 16c84


- Christopher

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...