I recently bought the K8048, built it and it all works. But all the examples are in ASM, I am a C programmer and havent done Assembly Language for years.
I have used the project wizard in MPLAB to create a PIC16F627 project and selected the CC5X C Compiler, but I cant get the MPLAB ICD2 programmer to connect to the 8048 board. I have selected Hardware Flow Control and disabled FIFO has suggested by MPLAB but it still wont connect.
Please can someone give me a pointer how to get started. I know how to program in C and C++ but cant get started as I cant get connected to the board.
Do I have to compile the compile something with MPLAB and use one of the tools that came with the 8048 to download it to the board, ie Velleman PIC Programmer?
Do anyone have a test C program for the PIC16F627 that comes with the 8048 to get me started please
I have no experience with C so I can’t help you with that, but once the .hex file is generated you can point the Velleman PIC Programmer to the file and load it onto the PIC from there.
I use a Basic compiler from mikroElectronika it’s a free download with a 2k limit on hex output files, but as i only use PIC16F628 there is only 2k of memory anyway. They also have C compilers as a free download
Hi, I assume that any PIC compiler that can generate a .hex file (directly or indirectly), readable by the “PicProg2.exe” program (delivered with the K8048) will do.
I myself use a Pascal compiler, but I am still using the programming software delivered with the K8048, which is “PicProg2”.
I do not know if other programming software can handle the K8048. So, I think the usage of PicProg2 (which is specially developed for the K8048) is obligatory.
I have written a demo program in C for K8048/VM111 using CC5X (FREE edition) and MPLAB IDE in Windows and Piklab in Kubuntu Linux. The files are here: http://www.df.lth.se/~mikaelb/micro/k8048/. There is more documentation in the program swleddemo.c. You also need config16f627.h.
Target platform is Velleman K8048/VM111 with Microchip PIC 16F627 micro controller with original configuration (JP3-4 on, all other jumpers off). It was developed in C using Piklab in Kubuntu Linux 8.04 and MPLAB IDE v8.10 in Windows 2000 with CC5X v3.3A (FREE edition) from B Knudsen Data. In MPLAB IDE with CC5X it is necessary to set Build Options For Project/CC5X C Compiler/Additional Command-Line Options to -p- in order to remove the effect of MPLAB’s chip definition.
In Windows I programmed the chip using ProgPIC2 V2.6.0 (included in K8048/VM111), and in Linux: K14 and Piklab (with delay 10 on my computer). In Linux you can usually install Piklab from the distribution, but it is a KDE program.