Hi,
I use NHET2 module for serial communication and I found a code and ı try that.(code is in this page "http://e2e.ti.com/support/microcontrollers/hercules/f/312/p/addpost.aspx" Haixiao Weng on Mar 26 2013 09:51 AM )
This code work without problem but if I want to sent many byte, sometimes program wait in here
void HetUART1PutChar(char Data)
{
unsigned int Tmp = Data;
Tmp <<= 1; // Shift in start bit (0)
Tmp |= 0x00000200; // Add stop bit (1)
while(hetRAM1->Instruction[2].Data != 0); -> waiting
hetRAM1->Instruction[4].Data = Tmp << 7; // Load TX buffer
hetRAM1->Instruction[2].Data = 10 << 7; // Load bit count
}
And so My program take watch dog reset. Why ? when I remove while loop, program send wrong data. Thank you for helping...