Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
Gwmbwr Ramchiary
Ramchiary

posted on 2014/01/03 05:35:16 AM CET

Audio & Speech

transfer set of integers

I have been using mikroc 89c52 and i want to transfer a set of
integer values from micro controller to USART terminal
CN u plz help me??
i have tried the following examples
but i couldn't do it
char uart_rd;
void main() {
int a[4]={1,2,3,4};
UART1_Init(9600);
Delay_ms(100);
UART1_Write_Text("S");
while (1) { // Endless loop
if (UART1_Data_Ready()) { // If data is received,
uart_rd = UART1_Read(); // read the received data,
UART1_Write(a[4]); // and send data via UART
}
}