I am mew to embedded programming an need to per form a loopback test on SCI of RM48L950 MCU HDK using Halcogen and CCS...please guide me with how to go about it...
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Akshay,
Halcogen does not support loop back mode for SCI.
Anyway, here is an easy way to workaround this limitation.
In Halcogen, create a project and select your device/board.
In the driver tab, enable SCI
In SCI tab, configure all the parameter for your SCI communication.
Generate the code.
Open SCI.c and search for the void sciInit(void)
In sciinit you will see the following statement:
/** - global control 1 */
sciREG->GCR1 = (1 << 25) /* enable transmit */
| (1 << 24) /* enable receive */
| (1 << 16) /* enable loopback mode */
| (1 << 5) /* internal clock (device has no clock pin) */
| ((2-1) << 4) /* number of stop bits */
| (0 << 3) /* even parity, otherwise odd */
| (0 << 2) /* enable parity */
| (1 << 1); /* asynchronous timing mode */
Add the blue statement to set the loop back bit.
Now, each time a character is sent on via the transmit buffer, it will be received in the receive buffer.
NOTE. Each time Halcogen is used to re-generate your code for your project, it will be necessary to add this blue line again.
thanks Jean...could you please tell me what is meant by base address of sci module that is..what is to be inserted in the place of "sci" in sciBASE_t *sci...?