This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

agsi serial interface simulate problem

Dear all: I'm trying to use the agis serial interface to simulate a uart(using the VC2008 debug tool),and meet a problem--when i try to enter a character like 'a' to the serial from the Serial Window,the S0IN VTReg can only receive "0x00",but not the character of 'a'.However S0IN can receive the exact data through the Commond Window when i enter a character like 'a' or 'b'.

the source code are as follows: //Set watch on S0IN VTReg when initial: ret &= Agsi.SetWatchOnVTR(S0IN,r_uart0_rbr, AGSIREADWRITE);

//The callback funcation:
void r_uart0_rbr (void) {
Agsi.ReadVTR(S0IN, &uart0_rbr);
}

0