It's a shame PBP doesn't support a lot of the newer pics.Now if some coding genius (that leaves me out) could just port the "C" over to PBP for us basic heads then we could all have fun with it
This one is a dspic33j64gp802.
It's a shame PBP doesn't support a lot of the newer pics.Now if some coding genius (that leaves me out) could just port the "C" over to PBP for us basic heads then we could all have fun with it
This one is a dspic33j64gp802.
The http://art.redirectme.net:8181/ works fine. The other nop.
I once wanted to do this in PBP, but got disappointed. My next idea was to use Tibbo products.
Ioannis
Probably a dumb question ... but... Do you think the code from Microchip's AN833 could be compiled into assembly include files? Changing the below code for PBP looks doable, just not sure about the possibility of getting the C files (StackTsk.h, Tick.h and http.h) into includes for PBP in some way.
http://ww1.microchip.com/downloads/e...tes/00833c.pdf
Here is a product that uses the hardware mentioned in this application note:Code:// Declare this file as main application file #define THIS_IS_STACK_APPLICATION #include “StackTsk.h” #include “Tick.h” #include “dhcp.h” // Only if DHCP is used. #include “http.h” // Only if HTTP is used. #include “ftp.h” // Only if FTP is used. // Other application specific include files ... // Main entry point void main(void) { // Perform application specific initialization ... // Initialize Stack components. // If StackApplication is used, initialize it too. TickInit(); StackInit(); HTTPInit(); // Only if HTTP is used. FTPInit(); // Only if FTP is used. // Enter into infinite program loop while(1) { // Update tick count. Can be done via interrupt. TickUpdate(); // Let Stack Manager perform its task. StackTask(); // Let any Stack application perform its task. HTTPServer(); // Only if HTTP is used. FTPServer(); // Only if FTP is used. // Application logic resides here. DoAppSpecificTask(); } }
http://www.sparkfun.com/commerce/pro...oducts_id=7829
Last edited by ScaleRobotics; - 8th April 2010 at 14:25.
I find it difficult. But if one knows C at a level that can read the code, why botherdo it in PBP?
Ioannis
Thanks Ionnis. Unfortunately, I can't do C ... well other than flash an LED.
It is unfortunate though. All the Microchip's ANxxx used to be written in assembly. With some modifications, we were able to use these as includes files with our PBP. Now Microchip seems to be using C exclusively in their more recent examples, and I don't see any assembly examples. Without a way to include the C files, we can't use the examples, and that it is a shame.
Dumb question...
When a C file is compiled in MPLAB is an ASM file generated?
Or does it go straight to HEX?
Dave
Always wear safety glasses while programming.
I am sure that compiler outputs both asm and hex files.
I smell wat you are cooking, but I believe that the produced asm file is quite difficult to read.
Ioannis
When you're using a Microchip C compiler there is no asm file.
There appear to be a few files on the way to hex, but at a glance,
there doesn't look to be anything I can read.
This code ends up on a 16 bit dspic that PBP doesn't support.
The code in this server is based on what you have posted here,
but with addition of SD card support and some other things.
Bookmarks