Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Joseph (Jiju)

Pages: [1]
« on: December 06, 2011, 03:22:26 PM »

Update June 2012
Our Netcruzer range of products has now got it's own web site at, with a new forum at
For all new posts relating to the Webserver Firmware, please USE THIS FORUM.

I am trying to enable and use 4 USART on the SBC66EC, using the Peripheral Pin Select. I am using a WaveShare TTL-RS232 converter.

So far, all good, except that I have to touch CON1 pins with my finger to get the communication going!

What could be the reason? I've tried 4 different WaveShare TTL-RS232 converters. Same result.

I am trying to replace the WaveShare TTL-RS232 converter with another brand/make. Will get them in hand some time tomorrow.

In the meantime, I thought may be someone else might have faced this situation!

Code used:

void ConfigUsedPins(void)
ANSBbits.ANSB0 = 0;                 // RB0 as Digital, CTS
ANSGbits.ANSG6 = 0;                 // RG6 as Digital, TX
ANSGbits.ANSG7 = 0;                 // RG7 as Digital, RX

TRISBbits.TRISB0 = 1;               // RB0 as Input, CTS
TRISGbits.TRISG6 = 0;               // RG6 as Output, TX
TRISGbits.TRISG7 = 1;               // RG7 as Input, RX

AD1CON1bits.ADON = 0;           // disable ADC

TRISBbits.TRISB6 = 0;           // System LED Output


void SetPeripheral()
//__builtin_write_OSCCONL(OSCCON & 0xBF);             // Unlock PPS

// COM1
iPPSInput(IN_FN_PPS_U2RX, IN_PIN_PPS_RP21);         // Assign U2RX to pin RP21
iPPSOutput(OUT_PIN_PPS_RP26, OUT_FN_PPS_U2TX);      // Assign U2TX to pin RP26
iPPSInput(IN_FN_PPS_U2CTS,IN_PIN_PPS_RP0);    //Assing U2CTS to pin RP32

//__builtin_write_OSCCONL(OSCCON | 0x40);             // Lock PPS

Many Thanks.

SBC66EC & SBC66ECL / Debugging SBC66EC
« on: December 04, 2011, 02:47:59 PM »

Update June 2012
Our Netcruzer range of products has now got it's own web site at, with a new forum at
For all new posts relating to the Webserver Firmware, please USE THIS FORUM.

Hi Everyone,
I am trying to debug my SBC66EC using a very simple program. I can connect and program the board using the X1 connector and the PGM02 Rev1 cable.  Though the board won't program if External power is connected. I had to remove the external power and select 'Power target circuit from MPLAB ICD 3'.

MPLAB ICD 3 detected
Connecting to MPLAB ICD 3...
Firmware Suite Version...... 01.26.81
Firmware type......................dsPIC33F/24F/24H
MPLAB ICD 3 Connected.

But I am unable to debug the board when I select MPLAB ICD 3 as the debugger. MPLAB ICD 3 is connecting fine with the SBC66EC when I select MPLAB ICD 3 as debugger. I get the following error when I try to run the program, with or without external power.

ICD3Err0040: The target device is not ready for debugging.
Please check your configuration bit settings and program
the device before proceeding.

My configuration bits are as below.


I think I am doing something wrong here. Is there any resource that can help me in successfully debugging the SBC66EC/program.


Many thanks.

USB Boards / USB with 3 Serial ports
« on: November 01, 2011, 06:11:54 PM »
I am looking for a board solution that can do the following:
1. Receive data on two Serial ports
2. Transmit the received data from the two serial ports over the 3rd Serial port and/or
3. Transmit the received data from the two serial ports over the USB port (CDC).
4. Minimum 4 DIO
5. Minimum 2 Analog inputs

Was looking at the SBC44U, but seems lacking any resources for the serial ports.

Anybody ever tried this? Any help/inputs will be very valuable for me.


I have downloaded the websrvr65_v307beta sample code and downloaded it onto my SBC65EC (HW : V3.01, BLN:V1.00, SW:V3.06).

I've also connected an LCD2S board with an LCD to the micromatch connector. The cable that I am using is the one I made using the Micromatch connectors that I had brought from Modtronix. When I power on the board, the display shows "Modtronix Serial LCD Display".

Then I try to send strings from the webpage, but nothing happens. Also tried setting/changing the Contrast and Brightness. No luck. I've tried all the combinations of the DIP switches ('00','10','01'), but no luck. What could be wrong?

Any body tried the LCD2S with SBC65EC and the websrvr65_v307beta code?

MicroX Modules and SBC Boards / SBC44B R2 with RS485 and RS232
« on: September 27, 2007, 04:43:30 AM »
Has any body configured the SBC44B R2 with both RS485 and RS232 together? I have a PIC 18F452. I have disconnected the S2 and S3 and connected SJ4 and SJ5. Now, as far as I understand RS485 should be operational now. Is the RS485 by default, in Rx mode? B7 is shorted, or do I have to explicitly clear RB7?

But, what about RS232? How to set the baudrate? How to detect Rx and initiate Tx?

I have been using RS232 to RS485 converters all these time and now thought of getting rid of the extra piece of hardware.

Any information will be of great help.


Has any body come across/developed a design for a top mounting daughter board like the IOR44-42 board(this one connects to the front end connectors) ? I was looking for a ready made solution for a digital I/O board and an Analog I/O board for the SBC28PC-IR4.

Any suggestions will be of great help.


Joseph (jiju).

Ethernet Boards (8-bit) / 200 I/O lines with SBC65 / 68
« on: September 12, 2007, 06:33:10 AM »
I am in need of 200 Digital I/Os and 8 Analog I/O for a particular application!

Any comments / suggestions about how to achieve this using SBC 65 /68 boards?

Multiple SBCs or single SBC and multiplexer?

What are the chances of a modified IOR5E or a MXD2R ?

The application is to monitor the ON / OFF and Trip status of 51 Motors. I don't want to use any PLCs. Has anyone tried this kind of application where a large number of I/Os are required?

Any help / suggestions will be great!!!

IOR5E / IOR5E + SBC65EC : PortA as Digital Inputs
« on: July 23, 2007, 06:28:09 AM »
Hi Everyone,
I am trying to use the PORTA as Digital Inputs on my SBC65EC mounted on an IOR5E board. When I power up the board(s), I get erratic voltages on the I/O lines (PORTA) for a fraction of seconds and then they settle. But, again when I apply 5 Volt (shorted from the IOR5E 5V) any 1 of the 6 IO lines, one or two adjacent IO also shows the voltages!

I have a piece of code that checks the voltage level and turns the LED (Green I/O LEDs)  ON for the I/O which has a high value. The problem is more when I power up the boards. After a while it tries to settle a bit.

What could be the reason?

Anybody faced this problem? What is that I am doing wrong or haven't done?


MicroX Modules and SBC Boards / RS232 and RS485 on SBC44BR2
« on: May 22, 2007, 08:44:20 PM »
I am looking for some help in setting up (enabling) the RS485 too on the SBC44BR2, so that I can connect one device on the RS232 and one on the RS485!

My Application is : A RS485 compatible Meter on RS485 port and a PC on the RS232 port. Capture data from the RS485 and convert it to RS232 logic.

I need help in configuring the SBC44BR2 and to implement RS232 in software!

Warm regards.

Ethernet Boards (8-bit) / Serial Communicaton : SBC44B, 65 and 68
« on: May 20, 2007, 10:15:50 AM »
I am connecting an SBC44B to a GSM modem through the serial port on the SBC. The SBC can send SMS via the GSM Modem, but cannot receive anything from the modem. But the SBC communicates perfectly to HyperTerminal (Tx and Rx to PC from the SBC). The Modem works perfectly with the PC. I have even written a console application which sends and receives SMS from the modem. But, the SBC cannot receive anything from the modem.

Has anybody faced such a situation? Is the 3 wire RS232 implementation on the SBC causing the problem?

Any type of help/suggestions will really help me in solving this issue.

Note: PC to Modem Works perfect. SBC to PC works perfect. SBC to Modem, only the SBC can transmit, cannot receive anything.

Pages: [1]