HOME

PROJECTS

TUTORIALS

C FUNCTIONS

PROGRAMS

PRODUCTS

VIDEOS

COMPANY

SPANISH

                 

Testing the serial port in Bolt 18F2550 system

 

 

We provide a test program that allows communication and remote control between a PC and the electronic Bolt module, using a serial cable, at 9600 bps. In the C18 compiler project, you must include also the standard library for the serial port <usart.h>.

Testing may be done using a Laptop computer with a USB-Serial interface and an external wall transformer to power Bolt 18F2550 system, as shown in the photo (jumper JP1 must be placed in external power supply mode).

Use a terminal emulator software -as Hyperterminal- to do your testing. Configuration is 9600,n,8,1

Load from the table below the test program (.hex file) in Bolt 18F2550 and try the commands listed in the table below.

 

TEST PROGRAM

DESCRIPTION

C18-BOLT-REMOTE CONTROL-SERIAL-PORT.c User may control Bolt system through commands via a serial cable
C18-BOLT-REMOTE CONTROL-SERIAL-PORT.hex  

 

COMMANDS 9600 BPS

Response of Bolt 18F2550

Comments

OK>R1 Activates relay  
OK>R0 Desactivates relay  
OK>T (CR) Sends text: "TIEMPO=" User must enter number of seconds (CR)
TIEMPO=12 (CR) Sends text: "12 SEGUNDOS" Activates relay the numbre of seconds stated above
OK>S Sends text: "S=15". Sends decimal value of microswitches (0...15)