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 had been designing a XILINX FPGA board recently. Now the design is finished and prototypes were tested as well. I have a couple of spare boards if anyone needs it.
First things first, you can not transfer data through a USB to Serial converter using outportb and base address. You have to use a serial port available on mother board. Even a PCI serial port expansion won't work.
If you are creating the program in Windows, use Win32 API. Find details here...
Are you using an off the shelf product or you are developing a new product ?
If it is an off the shelf product, you need to know how it expects data. On the other hand, if you are developing one, it is up to you how you want to transfer data.
Re: How to embedded a hex file into a exe file with Visual C
This is a very old post, but this information could help someone.
There are two ways to do this.
1. Define the content of the hex file (decoded to binary or as it is) as a C array and use that array in the program.
2. Add the hex...
I don't think the "char* bytes" parameter in usb_bulk_write function does mean you have to send ascii data. char is the fundamental data type that is equivalent to BYTE in C. You can for sure pass binary data there.
Go to menu Project>Build Options>Project . In the dialog box, select Directories tab. Select "Library Search Path" in the combo box and add new path "C:\MCC18\lib"(assuming C compiler is installed in C:\MCC18). Then rebuild the project.
Hope this helps.
Many Microchip PIC devices has built in USB peripheral. One PIC micro controller that I used recently is PIC18F14K50. This is a low cost controller that supports USB. You can download Microchip USB stack and sample firmware for free from https://www.microchip.com/usb. It took less than 30...
What I understand is you need to transfer data between two PIC devices. You may use I2C, SPI or UART for this purpose. study about one of these, there are many tutorials available online.
Use either typedef or keyword struct as in the following examples.
typedef struct information
{
.........
};
struct decoded
{
..........
information info;
long time;
};
OR
struct information
{
.........
};
struct decoded
{
..........
struct information info;
long time;
}...
I believe you could do simple things with PCI. First you need to read the configuration area and find the IO or memory base addresses and then use the base addresses to access device registers. Since these things are device dependent, you sure need the device's data sheet you want to access...
Re: how to measure voltage / current using PIC microcontroll
Couple of useful links here.
http://www.winpicprog.co.uk/pic_tutorial11.htm
**broken link removed**
Re: how to measure voltage / current using PIC microcontroll
Use ADC available in PIC to measure voltage. Current can be measured by measuring the voltage across a resistor. The practical issues can be different based on how much voltage and current you plan to measure. Usually PIC ADC can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.