Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12620 Discussions

Transmit data in VB's MSCOMM32.OCX(UART)

Altera_Forum
Honored Contributor II
1,112 Views

sorry, my english is poor. 

 

I transmit a wavfile to Nios II within MSCOMM32.OCX 

 

baud rate=115200 bps 

data bit=8 

parity bit=none 

stop bit=1 

 

RECEIVER in Nios II IDE 

 alt_16 buf;  for(i=0;i<160;i++){      fread(&buf, sizeof(alt_16), 1, uart);    //read data from file            if(buf==0x4F4B) break;    //"OK"            IOWR(USER_RAM_BASE, i, buf);    //write data to RAM and play sound  } 

 

My transmitter transmit data to receiver, but receiver get only incomplete data. 

 

eg. I transmit 0x2353, 0x6411, 0x4235, receiver get only 0x2353, 0x6435, etc. 

 

I guess that transmit speed too fast and transmit buffer too small. 

 

But I can&#39;t how to solve it. 

 

thx 

 

Orz
0 Kudos
0 Replies
Reply