Chameleon-PIC Nurve Networks, Chameleon-PIC Datasheet - Page 237

MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)

Chameleon-PIC

Manufacturer Part Number
Chameleon-PIC
Description
MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)
Manufacturer
Nurve Networks
Datasheet

Specifications of Chameleon-PIC

Processor To Be Evaluated
PIC24
Data Bus Width
16 bit
Interface Type
USB, VGA, PS/2, I2C, ISP, SPI
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
#if DEBUG_XMODEM >= 2
#endif
} // end while
#if DEBUG_XMODEM >= 1
sprintf(sbuffer,"\rDownload Complete.\r%d Blocks.\rFile Size = %d.\r", xbytes_read/128, xbytes_read );
NTSC_Term_Print( sbuffer );
VGA_Term_Print( sbuffer );
#endif
// return bytes read
return ( xbytes_read );
} // end XModem_Receive
All that conditionally compilation code is to help you modify the function to add features to it since this is really the only
way to get “data” from the PC into the FLASH memory at the moment (unless you make something yourself).
Alright, now that you have an idea about X-Modem protocol, let’s take a step back and see how we are going to send X-
Modem files from the PC?
Sending X-Modem Files from the PC
Sending X-Modem files from the PC is almost the same as setting it up for serial communications, that is, you need a
program capable of X-Modem file transfer. Luckily, there are many of them available, but once again I suggest that you
use two of my favorites Absolute Telnet and ZOC which you can find online here:
Copies of them are also on the DVD-ROM here :
For this example, let’s use Absolute Telnet. Similarly, you need to install the program, then create a communications
profile for your USB serial COM port, but this time there is a difference, instead of 115,200 baud that we have been
communicating at, we are going to slow things down to 2400 baud. This is to reduce the potential error rate to near zero.
So your final setup should look something like the dialog shown in Figure 31.4 below.
default: break;
} // end switch
Zoc
Absolute Telnet
DVD-ROM:\ CHAM_PIC \ TOOLS \ COMMUNICATIONS \ *.*
} break;
{
// final EOT, send ACK, finish
UART_putc ( CHR_ACK );
NTSC_Term_Print("S:ACK");
NTSC_Term_Char( 0x0D );
// exit state machine
xstate_running = 0;
} // end if
Figure 31.4 – Setting up Absolute Telnet for X-Modem transfers.
http://www.emtec.com/zoc/
http://www.celestialsoftware.net/telnet/
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
237

Related parts for Chameleon-PIC