Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I'm trying to make a code for Pic serial communication with Labview by serial RS-232. I'm using bootloader together, this is the code:
When I plug it in my computer (Windows 7 64bits), it appears a serial port (com4), but when I didn't receive any data by serial. I'm trying to send 'USP'...
I was reading Pic18f2550's datasheet and seems I could use TMR3 and TMR1 for PWM1 e PWM2, so there is a different frequency source for each PWM. But I couldn't make it work. Someone knows how to do it?
Thanks for helping.
I think it depends which compiler you are using. For example in C18 you just write #pragma config, for example: #pragma config FOSC = INTOSC_HS. You can set then outside code in mplab, you have to go in "configure", then "Configuration Bits".
I'm used to make codes for just one PWM, but now I need to control a step motor and a dc motor. My problem is I have to generate 2 very different frequencies. I'm using C18, and what I saw in datasheet is that I just can change the value in function OpenPWMx(XX), because TMR2 Prescale Value...
I need to do a program in Labview that send and receive a vector through USB. I'm trying to use Visa drive that has three functions for USB "Control in", "Control out", and another for interruption. Do anyone knows how to do it?
I found this drive for Labview called Visa, but I don't understand how it works. I want to communicate with the pic18f2550, is that possible using this driver? there is a easier way to do it?
Hi Red, it's a little dificult for me to understand this kind of thing. I have looked at ni website and I downloaded a driver called Visa, that seem to do what I'm trying to do, but I'm not succeeding to use that. Do you know this driver? Could it be what I'm looking for?
I'm trying for a long time to find a simple code example for using the USB output of the pic, in my project I just need to send a signal from pic to USB port of a computer. I'll use Labview to interpret this signal. My problem is that so far I don't find any tutorial that could help me...