CCS News

CCS Development Tools Reduce Cost of Diagnostic Serial Ports

Monday 25 July, 2011

CCS announced today that their optimizing C compiler, ICD-U64 programmer/debugger and CCSLoad programmer control software have been upgraded to support the streaming of serial data through the Microchip PIC® MCU ICSP™ interface. Repurposing the programming interface as a serial port reduces cost during product development, production and after deployment in the field.

When prototyping, developers can use the interface to gain valuable insight into program operation, almost in real-time. While software debuggers can be used with the ICSP interface, use often requires that the processor be halted to allow for examination and modification of variable values. This new streaming approach allows diagnostic and performance data to be output and charted without stopping execution, of particular importance when debugging multiprocessor systems.

During production, line personnel can display and set calibration data from a PC terminal, enter serial numbers and run special production tests. This is especially useful when the end product does not include I/O devices that could be used for these functions.

After the product is deployed, field engineers can access fault logs, monitor and diagnose problems. Operating parameters can be updated without having to reload an entirely new software image.

While use of serial ports to input and output text is not new, implementation of the serial port requires hardware resources that may not be needed during normal operation. A full duplex serial port normally consumes two MCU pins for the UART, plus an RS-232 level translator and connector on the target board. Production boards may eliminate the component cost by not populating the translator and connector, however the bare footprints still consume valuable real estate. This can negatively effect not only PCB cost, but also the end product.

A new CCS C compiler built-in function allows developers to use familiar "printf" and "getc" statements to stream data to a PC through the ICSP interface. The ICD-U64 serves as the physical interface, bridging the target's programming pins to the host PC's USB port. Users can access the data through CCSLoad or alternatively, a Window's terminal emulation program, DOS command line interface or the SIOW data graphing interface included in the CCC IDE Compilers. Remote internet access is provided via Telnet.

Updated versions of the CCS C compiler, CCSLoad and ICD-U64 firmware are now available online to users wishing to take advantage of this new capability.

To learn more and view a special offer, go to www.ccsinfo.com/PRSERIAL.

Review more CCS news stories