The only reason I can think of for doing that is that you own stock in Maxim.Yep, that's why I recommended the MAX232![]()
The only reason I can think of for doing that is that you own stock in Maxim.Yep, that's why I recommended the MAX232![]()
The MAX232 is $6.95 at my local Jaycar, easy to get, easy to use. (No delivery cost)The only reason I can think of for doing that is that you own stock in Maxim.
If you can get the UART module in your PIC to work you can just talk to PuTTY using a serial adapter (if you have one). If you dont have one I like the FTDI's like this https://www.hobbypcb.com/index.php/products/accessories/ftdi232Hi guys,
I used to use Arduino, and it's very helpful to use the serial monitor for debugging.
Actually I'm using Mplab (for pic microcontroller). Does any one know if there is a similar tool on Mplab to a serial monitor, that can be used for debugging please ?
Thanks
sprintf(cbuffer, "%2.4f %2.4f %2.4f %2.4f ", q0, q1, q2, q3);
UART1_Write((uint8_t *) cbuffer, strlen(cbuffer));
sprintf(cbuffer, "%3.2f %3.2f %3.2f\n\r", accel[0], accel[1], accel[2]);
UART1_Write((uint8_t *) cbuffer, strlen(cbuffer));
SerialPort port = SerialPort.getCommPort("ttyACM0");
port.setBaudRate(115200);
port.setComPortTimeouts(SerialPort.TIMEOUT_SCANNER, 1, 1);
if (port.openPort() == false) {
System.err.println("Unable to open the serial port. Exiting.");
System.exit(1);
}
Scanner s = new Scanner(port.getInputStream());
Yes, that what I was doing till now, using the arduino (and it's serial monitor).Also an obvious answer that no one has said is to use your Arduino and the "SoftwareSerial.h" library - You can make a USART-USB converter with things that you already own![]()
Thanks @Jon Chandler, even though I didn't get every thing you said !! but I'm using Pickit 3 (I guess it works also for Pickit 3).If you use a PICkit 2 for loading the micro and the stand-alone GUI program, there's a neat trick to use the GUI's UART tool.
Set up a software UART in your code, with the receive and transmit pins corresponding to the ICSP pins used for loading code (I forget how ICSP clock and date match up to receive and transmit in the GUI UART tool but define the pins as needed), and tell the Mico software UART to invert the signals (as there's no MAX232 chip involved).
Then it's an easy matter to load code using the PICkit 2, then active the UART tool and see your messages from the micro.
I can provide details if desired. There are 2 options for updated PICkit 2 GUIs. One has been mentioned in another thread here recenting, which is a paid app. Another one I've seen recently is another forum is supposed to be very good, and it's free. If there's interest, I'll dig them out and post links.