I am trying to debug using the ICD-U40 on a PIC16F690 - all works in debugger but the "Monitor" section does not seem to work. I have the "#use RS232(DEBUGGER)" set and nothing shows in the monitor and it does not allow me to send characters as well - I cannot find any good documentation on using the debugger in the PCW.
Thanks.
schmez
Joined: 14 Jun 2011 Posts: 24 Location: St. Louis
Sample code being tested
Posted: Tue Apr 17, 2012 10:28 am
Here is a sample code I am testing - it will not show Hello World in the monitor window in the PCW software debugger:
#include <16F690.h>
#device adc=16
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NOBROWNOUT //No brownout reset
#use delay(clock=20000000)
#include <stdio.h>
#include <string.h>
#use rs232(DEBUGGER)
main()
{
printf("Hello World \n\r");
while(1);
}
schmez
Joined: 14 Jun 2011 Posts: 24 Location: St. Louis
B3 is not supported in 16F690
Posted: Fri Apr 20, 2012 12:49 pm
Have to connect wire from pin 6 of J2 on header to a xmit pin on emulator.
For example:
#use RS232(DEBUGGER, xmit=PIN_B7, RCV=PIN_B7)
Pin B7 on the header emulator was connected to pin 6 of J2 (the RJ45 plug for the debugger).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum