USART Communication with PC (stm8al3l68)
Hello,
I'm trying to implement serial communication between a stm8al3l68 an a serial terminal installed on my PC.
The problem is that there is no virtual port on my STM8 as on STM32.
How can I communicate with the PC if there is no virtual Port. What kind of hardware should i buy ?
--> HCCABL0015 USB to RS232 TTL Serial Interface Cable like explained there : http://www.colecovision.eu/stm8/STM8S-DISCOVERY%20Serial.shtml
And when I'll have this hardware, i just have to init USART with :
STM_EVAL_COMInit(COM1, (uint32_t)115200, USART_WordLength_8b, USART_StopBits_1,
USART_Parity_No, (USART_Mode_TypeDef)(USART_Mode_Tx | USART_Mode_Rx));
USART_Cmd(EVAL_COM1, ENABLE);and send data with
void USART_SendData8(USART_TypeDef* USARTx, uint8_t Data)Another question, how can I know if I have to include stm8l1526_eval.h or stm8l1528_eval.h header files ?
I'm really lost with STM8 MCU, need some help ! Thank you all !
Best Regards,
AJT
