modtronix.com

SBC66 Range (16-Bit PIC board, mixed 3.3/5V) => Projects => Topic started by: modtro2 on April 17, 2014, 04:25:16 AM

Title: === RS232, RS485 & Ethernet with SBC66EC & PT66EI ===
Post by: modtro2 on April 17, 2014, 04:25:16 AM
This project is for a low cost RS232, RS485 and Ethernet board, using the SBC66EC (with a Ethernet and USB port). These boards are assembled on the PT66EI-10P prototyping board, and mounted in an enclosure. It uses the following parts:
- SBC66EC (http://www.netcruzer.com/sbc66ec.html) with Ethernet, USB port and PIC24FJ256GB206 16-bit CPU
- in485P-M (http://www.netcruzer.com/in485p) RS-485 iMod module
- im232P (http://www.netcruzer.com/im232p-tbp.html) RS-232 iMod module
- PT66EI-10P (http://www.netcruzer.com/pt66ei-10p-fpak.html) prototype board for SBC66 single board computer
- ENC2015S-BK-NZ (http://www.netcruzer.com/enc2015s-bk-nz.html) enclosure

The two 5 pin connectors, LEDs and prototyping space can be used for custom requirements.

The aim of this project is to provide skeleton C code, using the free XC16 C Compiler (http://www.netcruzer.com/nz/doc/devtools_xc16) and MPLAB X IDE (http://www.netcruzer.com/nz/doc/devtools_mplabx). It uses the Netcruzer Webserver (http://www.netcruzer.com/project-webserver) for basic functionality. For details on building projects, click here (http://www.netcruzer.com/nz/doc/building_projects/).

(http://www.netcruzer.com/img/prod/pt66ei/10p/pt66ei-10p_sbc66ec_im232p_in485p_t.jpg) (http://www.netcruzer.com/img/prod/pt66ei/10p/pt66ei-10p_sbc66ec_im232p_in485p.jpg)
(http://www.netcruzer.com/img/prod/pt66ei/10p/pt66ei-10p_sbc66ec_im232p_in485p_box_t.jpg) (http://www.netcruzer.com/img/prod/pt66ei/10p/pt66ei-10p_sbc66ec_im232p_in485p_box.jpg)
(http://www.netcruzer.com/img/prod/pt66ei/10p/pt66ei-10p_im232p_in485p_top_t.jpg) (http://www.netcruzer.com/img/prod/pt66ei/10p/pt66ei-10p_im232p_in485p_top.jpg)
(http://www.netcruzer.com/img/prod/pt66ei/10p/pt66ei-10p_sbc_im232p_in485p_box_t.jpg) (http://www.netcruzer.com/img/prod/pt66ei/10p/pt66ei-10p_sbc_im232p_in485p_box.jpg)
Click to enlarge

===== We will soon be adding source code for this project! =====
Title: Re: === RS232, RS485 & Ethernet with SBC66EC & PT66EI ===
Post by: renzo.rincon on April 22, 2014, 03:01:20 PM
Hello.
Im working on this board but have been struggling to make use of the usb as a CDC class device.
Could anyone give me a reference to a working USB library that works for this particular PIC model?
Even better if it has a working demo for this board and pic model, but any reference might help.

Additional information:
-Using xc16 compiler and mlab x IDE
-It doesnt need to include the netcruzer webserver, just a standalone USB device.
-It doesnt need to use the complete board, just the SBC66EC board, and even then just the usb port.
Title: Re: === RS232, RS485 & Ethernet with SBC66EC & PT66EI ===
Post by: modtro2 on May 30, 2014, 06:00:17 PM
Hi, sorry for late reply, only saw this post now. So, you only need the USB port configured as a CDC class, is that correct? You do not require any of the RS232, RS485 or Ethernet stuff? If this is the cast, I would suggest creating a new post for your question, and I can help you get it working.