Hi I have made following selections in HALCoGen in pinmux: N2-> SCITX W3-> SCIRX I have also enabled only SCI driver in Driver Enable of HALCoGen and I have modified the code to following, but stll not able to receive any character on RX pin of MSP430 connected to NHET1[13] pin of RM48. /* USER CODE BEGIN (0) */ #include "sys_common.h" #include "sys_core.h" #include "system.h" #include "sci.h" #include "pinmux.h" /* USER CODE BEGIN (1) */ //stores user character #define TSIZE1 10 uint8 TEXT1[TSIZE1]= {'H','E','R','C','U','L','E','S',' ',' '}; #define TSIZE2 18 uint8 TEXT2[TSIZE2]= {'M','I','C','R','O','C','O','N','T','R','O','L','L','E','R','S',' ',' '}; #define TSIZE3 19 uint8 TEXT3[TSIZE3]= {'T','E','X','A','S',' ','I','N','S','T','R','U','M','E','N','T','S','\n','\r'}; /* USER CODE END */ /* USER CODE BEGIN (2) */ void sciDisplayText(sciBASE_t *sci, uint8 *text, uint32 length); void wait(uint32 time); /* USER CODE END */ void main(void) { /* USER CODE BEGIN (3) */ _enable_interrupt_(); sciInit(); muxInit(); while(1) /* continious desplay */ { sciDisplayText(scilinREG,&TEXT1[0],TSIZE1); /* send text code 1 */ wait(2000); }; /* USER CODE END */ } /* USER CODE BEGIN (4) */ void sciDisplayText(sciBASE_t *sci, uint8 *text,uint32 length) { while(length--) { while ((sciREG->FLR & 0x4) == 4); /* wait until busy */ sciSendByte(scilinREG,*text++); /* send out text */ }; } void wait(uint32 time) { time--; } /* USER CODE END */
↧