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.


Messages - Joseph (Jiju)

Pages: [1] 2 3
1
SBC66EC & SBC66ECL / Re: SBC66EC - UART - PPS
« on: December 06, 2011, 09:08:36 PM »
Hi,
I've replaced the TTL-RS232 with another set of boards (3 different from another manufacturer), still the same result. Touching the pins on the TTL-RS232 boards produces no results, but if I touch it on the SBC66EC CON1, communcation resumes.

Any thoughts about this ?

Cheers,

2
SBC66EC & SBC66ECL / SBC66EC - UART - PPS
« 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 www.netcruzer.com, with a new forum at www.netcruzer.com/forum.
For all new posts relating to the Webserver Firmware, please USE THIS FORUM.



Hi,
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:
------------------------------8<------------------8<----------------------------------------------

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
PPSUnLock;

// 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
CloseUART2(); 


//__builtin_write_OSCCONL(OSCCON | 0x40);             // Lock PPS
PPSLock;
}
------------------------------>8--------------------------->8-------------------------------

Many Thanks.


3
SBC66EC & SBC66ECL / Re: Debugging SBC66EC
« on: December 04, 2011, 02:58:02 PM »
Apologies all,
It was my mistake, totally. Don't know why I didn't program the board after selecting MPLAB ICD 3 as the debugger. Even the error message was clearly asking me to "Please prorgram the board"!!!!

Apologies again for the post. May be not a good start for the day!

Cheers,

4
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 www.netcruzer.com, with a new forum at www.netcruzer.com/forum.
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'.

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

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.

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

My configuration bits are as below.

_CONFIG1(JTAGEN_OFF & GCP_OFF & GWRP_OFF & ICS_PGx2 & FWDTEN_OFF & FWPSA_PR32 & WDTPS_PS32768)
_CONFIG2( IESO_OFF & PLLDIV_NODIV & FNOSC_PRIPLL & FCKSM_CSDCMD & OSCIOFNC_ON & IOL1WAY_OFF & POSCMOD_EC)
_CONFIG3( SOSCSEL_EC & WPDIS_WPDIS & WPCFG_WPCFGDIS & WPEND_WPSTARTMEM)     

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


IDE: MPLAB IDE 8.80.00.00

Many thanks.

5
SBC66EC & SBC66ECL / Re: == New SBC66EC and SBC66ECL Boards ==
« on: November 23, 2011, 07:19:03 PM »
Hi Modtro2,
Any tentative date for the release of the custom/modified code for the SBC66EC?

Many thanks in advance.

6
USB Boards / Re: USB with 3 Serial ports
« on: November 05, 2011, 12:01:35 AM »
Hi,
Is the SBC66EC programmable using ICD2? Was reading some posts here where people were having issues with ICD2? Is there any update regarding this?

Cheers,

7
USB Boards / Re: USB with 3 Serial ports
« on: November 04, 2011, 03:52:21 PM »
Thanks a lot David! You made my day!!!!.

I've already placed the order for the SBC66EC. Will start the development and will be eagerly wait for the ECL.

I was seriously considering ATXMega as an option and even brought the development kit etc!! Then thought I should give PIC another try. Searched heaps in vain!!!

Good on you!

Cheers,

8
USB Boards / USB with 3 Serial ports
« on: November 01, 2011, 06:11:54 PM »
Folks,
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.

Thanks.

9
Hi Omarz,
Thanks for your concern and suggestions. I've tried to change the initial display, tried to change the contrast and everything. Recompiled, probed all the lines, but no luck.

Since it was a beta code from Modtro(David), I thought it has to be something wrong on my part. Well, I've got a promise from David to look into the matter, but as it was a long weekend in Australia, I expect to hear from him very soon.

Thanks a lot and have a good day mate!

10
It's nearly 10 days and I've haven't got any success and no body has even said a word? Is it something really a silly mistake that I am making or something really big? Very eager to hear something from someone, somewhere!!!

Regards,

Note : It was a loooooong weekend here in Australia!, so expect something soon!

11
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?

12
IOR5E / Re: IOR5E + SBC65EC : PortA as Digital Inputs
« on: February 01, 2008, 04:04:55 AM »
No luck yet! I have almost shelved that project. But will be doing another one in a week or so. Will keep posted if I get some hints.


13
Ethernet Boards (8-bit) / Re: 200 I/O lines with SBC65 / 68
« on: September 30, 2007, 05:50:29 PM »
Hi OmarZ,
Thanks a lot for your comments / suggestions. Well, the issue is that I don't want to go for PLCs (armtwisting policies of PLC manufacturers). Also, Ethernet is not omitted, it is in the picture. But, in the initial stage, I want to test and prove the RS485 communication. And wish to connect the bus to the Telemechanique PLC (modbus) in the main Panel. Once proven, I will port the things to Ethernet as well. Don't know why, but would like to be a bit cautious!

Also, have you ever implemented RS232 and RS485 on the SBC44BR2? I was looking forward to getting rid of the RS232 to RS485 converter hardware! I have changed the SJx links in the SBC44BR2 board. Now wondering how to implement the RS232 in software? Where to set the Baudrate and how to setup the interrupts (rising edge/ falling edge) for RB2 and RB3? Any leads will really help me.

Warm regards,

14
Ethernet Boards (8-bit) / Re: 200 I/O lines with SBC65 / 68
« on: September 28, 2007, 05:15:18 PM »
Hi,
Thanks for that! But, I am trying a different approach! I am planning to use the SBC28PC-IR4 as slaves and define a protocol where I can connect (32,128 or 247) slaves to control as many devices as possible. The SBC28PC gives me 5 analog lines and enough Digital lines! Still in a conceptual state, but surely keep the forum updated about the development. Waiting for the SBC28 boards and the I/O boards to arrive.

Regards,

15
MicroX Modules and SBC Boards / SBC44B R2 with RS485 and RS232
« on: September 27, 2007, 04:43:30 AM »
Hi,
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.

Regards,

Pages: [1] 2 3