03-17-2006 11:38 AM
03-20-2006 12:07 PM
Hi,
Although NI has some versions of LabVIEW that can program microcontrollers directly (see ni.com/embedded), they are typically limited to 32-bit microprocessors and DSPs and thus are not compatible with the 8-bit PIC. I'm sorry that the news is not better.
Regards,
P.J.
03-20-2006 12:51 PM
03-20-2006 01:21 PM
Greetings,
I would recommend using an embedded bootloader (protected block) and programming the PIC serially with your application (normal production use). Use a max232 chip for the TTL to RS232 conversion or alternatively use an Silicon Labs or FTDI usb chip with the virtual serial port drivers (VCP). Access the PC's serial port from LabView using VISA (numerous examples) to send the hex file. The bootloader is normally programmed into the microprocessor with a standard programmer (PICStartPlus, ICD2, ICDU40, etc).
I have used the CCS C Compiler for PICs with exceptional results (easy to use, not extremely expensive, numerous examples, library of functions). Hi-tech also provides a demo of their C compiler with example code posted on Microchip's website. The protocol and hex file format should be apparent from the bootloader example code (CCS bootloader.h/c loader.c). The best source of information is Microchip's website. They provide data sheets, application notes, etc.
Hopefully I haven't mis-interpretted your posting and your goal isn't to emulate a device programmer from LabView. If I have, my bad. Microchip has numerous data sheets on the programming spec (voltage levels, bit timing, sample circuits, etc).
Cheers,
JMA_eng
03-20-2006 01:29 PM