PDA

View Full Version : Debug Syntax



jblackann
- 26th May 2006, 18:17
Hello. I am trying to port code from a BASIC STAMP2P over to a PIC16F687 and I am having some problems. The code I have uses the Debug comment as listed below but I am having problems changing this to work with PBP. I have looked through the PBP manual and looked for examples of how to setup the syntax but I am not getting anywhere. Does anyone have advice or can provide me with a link to somewhere that will help me? I have looked on the MELABS page for the information from porting one to the other but I still have not found any good documentation.

From my the BASIC STAMP2P program:
DEBUG SDEC Occupant, CR

What would the equivalent be for PBP?
I have set up the defines beingDefine
DEBUG_REG PORTB ' set debug pin port
Define DEBUG_BIT 6 ' set debut pin bit
Define DEBUG_BAUD 2400 ' debug baud rate
DEFINE DEBUG_MODE 1:

Bruce
- 26th May 2006, 18:48
Occupant VAR BYTE
CR CON 13

DEBUG SDEC Occupant, CR